Hello,
I have been using Timer interrupts in PBP3 for ages without any problems.
Right now I'm struggling with Swordfish. I can only go by the information given in the Help menu but there is a problem.
"Help" gives a nice long (appreciated) example of the code you should write, but I get a compile error.
Any help would really be useful.
Error:
Dim Timer1 as word(TMR1L)
Compiler: Error "," expected.
Now my project is hanging. Soon I will be hanging.
Help please. Am I missing something ?
(I am using the PIC18F4550)
Interrupt Handling
Moderators: David Barker, Jerry Messina
Re: Interrupt Handling
You need to change the code to something like.
Check out Alias and Modifiers in the help file.
I hope this helps.
Code: Select all
Dim Timer1 as TMR1L.AsWord
I hope this helps.
-
- Posts: 20
- Joined: Wed Jan 22, 2014 9:48 pm
Re: Interrupt Handling
Thanks a million !!!!! It worked. I'm very grateful for your fast response.