just tried your "red" code in the isr on a pic18f45k20
you are right
bsf INTCON,6 ;PEIE = 1 Enable peripheral interrupts
bsf PIE1,0 ; TMR1IE= 1 Enable TMR1
these two lines lock it up. can't see why yet
it looked harmless but its not ,its much worse than useless
Bookmarks