Hi Steve

Thank you verymuch for your feedback, here is my code?

<pre>
DEFINE OSC 4
DEFINE LOADER_USED 1 ' bootloader
DEFINE HSER_RCSTA 90h ' enable serial port,
' enable continuous receive
define HSER_TXSTA 24h ' enable transmit,
' BRGH=1
define HSER_SPBRG 103 ' set baudrate to 2400
DEFINE HSER_CLOERR 1 ' automatic clear overrun error

RCIF VAR PIR1.5 ' Receive interrupt flag (1=full , 0=empty)
TXIF VAR PIR1.4 ' Transmit interrupt flag (1=empty, 0=full)

SerialData var byte
SWITCHPIN VAR PORTD.1
BUZZER Var PORTC.2

Main:
TRISC = %10000000 ' PORTC.7 is the RX input, PORTC.6 is the TX output
pause 10 'safe start-up delay
high SWITCHPIN
high buzzer
pause 1000
low buzzer

if RCIF then ' incomming data?
hserin [Serialdata] ' take it
hserout ["x=",serialdata] ' send it
endif
goto main
End
</pre>