Corrected interrupts for pic18f6720 demo.

This commit is contained in:
skarg
2007-02-02 19:10:47 +00:00
parent ba7a1ad750
commit e89637f1f9
4 changed files with 132 additions and 43 deletions
+9
View File
@@ -252,6 +252,15 @@ enum INT_STATE { INT_DISABLED, INT_ENABLED, INT_RESTORE };
BRA LOOP \
_endasm }
#endif
#define setup_timer4(mode, period, postscale) \
T4CON = (mode | (postscale - 1) << 3); \
PR4 = period
#define setup_timer2(mode, period, postscale) \
T2CON = (mode | (postscale - 1) << 3); \
PR2 = period
/* Global Vars */
extern volatile LED_REGS LEDS;