Reading data in bytes from RS232

A

Thread Starter

Anand

I need to read 2 frames of data from RS232 using C, each frame of data is 1 sec long.
In 1sec/1 frame the data is for a duration of 200ms and the remaning 800ms is just a high input. In 200msec i have to read 81 bytes.
Each byte begins with a start bit which goes from high to low, followed by 8bit of data and ends
with two high bits.
This way I have to read 81 bytes for 200ms.
The remaning 800ms is a high input to be read.
It will be of great help if I can get the whole program in C .
 
Z
I posted a link to some code to a similar question:"Serial Port Communication in C++" in it, you can read data in form of bytes. Please have a look at this code and get what you want out of it, i believe its what you want.

Best Regards,
 
Top