Well here is the modification:
Code:
DEFINE INTHAND _FiveMicroSec
GOTO MAIN
'---[TMR2 - interrupt handler]--------------------------------------------------
FiveMicroSec:
LATG = LATG ^ 4 ; TOGGLE EN1
CNT =CNT+1
PORTC = PORTA
PIR1.1 = 0 ; clear the interrupt flag
@ RETFIE
Main: 'DO WHATEVER YOU WANT HERE
As you can see. the only change between last post and this is
addition of goto main and changed LATF to LATG. The goto main does seem to make it start better, but still can't rem the LATG - LATG ^4.
Bookmarks