
Originally Posted by
Darrel Taylor
As long as none of the complex math or logical conditions are in the Interrupt handlers themselves, ...
you can open the ReEnterPBP.bas file and comment the ERROR "Temp variables exceeding T4" line with a semicolon (;).
Just to understand it correctly, I want to ask you few more questions:
1) Can I use the following statements:
Code:
ToggleLED1:
goto main ' Is it ok to send the program to a label. Also no complex match or logical conditions here
@ INT_RETURN
main:
'All complex code and calculations are here
@INT_ENABLE INT_INT 'Can I place this statement here?
@SLEEP 'Since my application is battery powered, so PIC to sleep if no command is present
Goto main
2) Will the next interrupt only be enabled after the code encounters @INT_ENABLE (Regardless of where I put it in the code)?
BIG thanks for the help upto now.
Bookmarks