Thanks a lot. Problem solved.
Thanks a lot. Problem solved.
___________________
WHY things get boring when they work just fine?
This time the problem is with 16F676. While compiling I get the following errors
I am using DT-Interrupts in this code. Can some1 help me to get rid of these problems and what can I comment out in the ReEnterPBP or the other DT_INTS-14. ThanksCode:ERROR: Unable to fit variable RM2_Save ERROR: Unable to fit variable RR1_Save ERROR: Unable to fit variable RR2_Save ERROR: Unable to fit variable RS1_Save ERROR: Unable to fit variable RS2_Save
___________________
WHY things get boring when they work just fine?
The only thing I am doing in the ISR is the following:
Code:ToggleLEDF: If F1=1 then Toggle PortA.0 If F2=1 then Toggle PortA.1 If F3=1 then Toggle PortA.2 @ INT_RETURN '---[TMR2 - interrupt handler]-------------------------------------------------- ToggleLEDS: If S1=1 then Toggle PortA.0 If S2=1 then Toggle PortA.1 If S3=1 then Toggle PortA.2 pause 100 @ INT_RETURN
___________________
WHY things get boring when they work just fine?
Sure 64 Bytes of SRAM is a bit weak to handle DT-Interrupts ....
Try to spare (re-use ) 5 of your byte variables ... may be you can re-use B,C,D and two other temporary variables elsewhere in your Program ...
@ first C can be declared as a BIT ... probably others too ...
Or change for a Wider RAM Chip
Or Ask Darrel for a "Fast Interrupt" Option saving only the " live " registers and letting you choose which variables really need to be saved ... such C " #pragma disablecontexsaving " directive ( I'd love such an option !!! )
Alain
Last edited by Acetronics2; - 11th April 2010 at 15:09.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks