Here's my take on what's going on. From the top:
Pre-scale Bits 4 & 5 set at zero for 65536 count - TMR1ON bit zero set to zero (not on).Code:T1CON = %00000000
But: TMR1IE = PIE1.0 so PIE1.0 = 1Code:TMR1IE = 1
bits 6 & 7 Peripheral & global interrupt bits set.Code:INTCON = %11000000
So Timer1 bit.0 = 1 Timer1 turned on and count starts........MAIN:
' Fire up Timer1 before entry to serial input routine
T1CON.0 = 1
If the count reaches 65536ms then the Interrupt flag TMR1IF PIR.0 goes to 1 then the program jumps to:
I think this a kind of GOTO ASM in 65.5ms (Timer1) if no data comes in. If data had come in the program would have continued.Code:DEFINE INTHAND RESET_VT
Not very well explained I'm afraid, how did I do..........?.....Gulp.
Dave




Bookmarks