PIR1,5 is a read only register, so you can't aletr it. To clear the RCIF flag, you need to read RCREG untill it's empty.
Code:
' Interrupt handler
Disable ' No interrupts past this point
myint:
While RCREG
Dump=RCREG
WEND
lcdout $FE, LcdLine2, " Connected "
pause 1000
Resume ' Return to main program
Enable
end
and then, as you don't use any HSERIN/HSEROUT, you need to change
Code:
DEFINE HSER_RCSTA 90h 'Hser receive status init
DEFINE HSER_TXSTA 20h 'Hser transmit status init
DEFINE HSER_BAUD 2400 'Hser baud rate
to
Code:
RCSTA = $90 ' Enable serial port & continuous receive
TXSTA = $20 ' Enable transmit, BRGH = 0
SPBRG = 25 ' 2400 Baud @ 4MHz, 0.17%
and...
Code:
INTCON.6 = 1' = $C0 ' Enable INTE interrupt
to
maybe i forgot few things... try it
Bookmarks