App=Countdown using a "dumb" LCD
I'm trying to use SLEEP between the counts...and in order to do that i have to:
-enable all unmasked peripheral interrupts (PEIE bit)
INTCON.6=1
-enable LCD interrupts (LCDIE bit)
PIE2.4 = 1
-enable the LCD in SLEEP mode (SLPEN bit)
LCDCON.6 = 0
Even whitout the SLEEP function (inside the FOR...NEXT countdown cycle), i coudn`t see the interrupt on the PIR2.4 register (LCDIF bit)
Any ideea?
Best regards,
Bogdan
Bookmarks