I am picbasic pro user
I made this program to send serial signal from PIC to PC

define osc 4
include "bs2defs.bas"

key1 var porta.2

findkey:
if key1 = 0 then press1

press1:
SEROUT PORTa.0,N9600,["KINDOWS 1 "]
goto findkey

by this program if I make port a.2 = 0 the program send this [kindows] as a serial signal from port a.0.

Now I need If I send serial signal from PC to PIC
If I send this [k] from PC to PIC and then PIC make any port like RA1 high to active a relay.
Please some one help me soon.