Yes, this *WILL* be part of a much bigger program!
I made some changes -
I cleared INTCON.1 before I re-enabled it in the
Donebyte routine
Code:
Donebyte
movff _rcv_byte,_rcv_buffer
movff _rcv_buffer,PORTD ; this is a debug, just to see rec'd byte on LEDS
bcf PIR3,3 ; clear the int flag
bcf INTCON,1
bsf INTCON,4 ; turn on the INT0 interrupt for next byte
INT_RETURN
But that didn't help. It shouldn't have been set anyway, since I clear it
after I shut off INT0 in the
GetStart section.
I changed the TMR4 reload value to 0x61
I put the variables in BANK0
I made the change recommend by Jerson to take one line out of the setb/clrb
sequence.
Still, when I hit ANY character, all the LEDs on PORTD light up (high).
Something small still isn't right.
Bookmarks