well the compiler does; my interrupt doesn't work and i can't find out why.Originally posted by mister_e
Great to know everything is working now![]()
I made my code as easy as possible to debug, if I send a serial signal to it it doesn't jump to the interrupt handler and ingreas teller by 1Code:DEFINE OSC 40 DEFINE HSER_TXSTA 24h 'enable TXEN and BRGH=1 DEFINE HSER_RCSTA 90h DEFINE HSER_SPBRG 129 intcon = %11000000 ' enable global and Peripheral interrupt pie1.5 = 1 ' enable interrupt on usart receive pir1.5 = 0 ' clearing interrupt flags adcon1 = %00001110 ' setting all pin's to digitall i/o pins teller var byte on interrupt GoTo handle main: lcdout dec(teller) goto main Disable ' interrupt handler Handle: Teller = Teller + 1 pir1.5 = 0 ' clearing interrupt flags Resume Enable




Bookmarks