[QUOTE=mister_e]On the PC-Side you can send your Byte in Text, wich will send 3 bytes 1,2,7 OR simply send the decimal Value 127, or.. or.. or...

ON the PIC Side, depending the way you sent the data on the PC side, you may need to use Serial qualifier like DEC or else

PBP manual in SERIN2 section for detailed explanation.

And if you search just a little bit on this forum, you may found 1-2 threads about serial communication.[/QUOT

Hi, mister_e,

On the PC side,i will send 3 bytes 1,2 and7...and then pic will do the on interupt routine to check the incoming bytes received was 127 or not? if nope will go to ERROR routine to clear all the variables inside pic...

The way i sent the data on the PC side, i design a GUI by using Visual Basic 6.0...i think should be nope problem.

By the way, can help me check my code, i think got some problems.

First, when PC send 127, PC will receive back two characters, first character is unknow word or number, the second character is 127d.

after that, PC send 000, PC will receive 0d, then PC send 127 again, PC will receive 127,127 prefect. However, i try to send any number from PC, PC cannot receive any character? So, what is problem?

Cheers, n thanks
By, steven