-
HSERIN 5 bytes from PC
How do I receive 5 bytes in 1 packet send from PC serial port?
From C code in PC,
BYTE data_out[10]
data_out[0]=1
data_out[1]=2
data_out[2]=3
data_out[3]=4
data_out[4]=5
serial.Write(data_out,5)
Using the following, I can't seem to get it to work. if send and receive 1 byte, then it is ok. The baud rate setting is correct.
Code:
data_in var byte[10]
HSERIN [DEC5 data_in]
I'm using DT serial interrupt.
Pls help.
-
-
-
Quote:
Originally Posted by
Pic2008
Thanks for the solution.
It really worked? :eek: