I want capture hex code (FE CA) from another pic using serin command.


B1 = First Byte
B2 = Second Byte



command for Sending : Serout TX_t,t9600,[$FE,$CA]

command for capture : Serin RX_r,t9600,B1
Serin RX_r,t9600,B2

so.... B1 = FE and B2 = CA

For this situation after sending FE CA, This PIC will receive FE CA for a 30 second, if done portb0. = high or if fail portb.1 = high.