We set timer interrupt but same time work soma time not with same code below. Found code run replate on line 5 to 11 alway not go to main loop
DEFINE LOADER_USED 1
DEFINE OSC 4
'DEFINE OSC 20
Line 1 DEFINE HSER_RCSTA 90h
Line 2 DEFINE HSER_TXSTA 24h
Line 3 DEFINE HSER_SPBRG 12 ' 19200 BaudsLine 1
Line 4
Line 5 Clear ' clear all RAM (sets all VAR declarations to zero)
Line 6 TMR0=0
Line 7 OPTION_REG = %00000111 ' Set TMR0 configuration
Line 8 INTCON = %11100000 ' Enable TMR0 interrupts
Line 9 On Interrupt Goto Timer_0_int
Line 10 Enable Interrupt
Line 11 TRISA = %00000000
Line 12 TRISB = %000000
Main:
............
...........
goto main
Timer_0_int:
............
Resume
Enable
Bookmarks