Hi,
The RS-232C standard describes a communication method where information is sent bit by bit on a physical channel. The information must be broken up in data words. The length of a data word is variable. On PC's a length between 5 and 8 bits can be selected. This length is the netto information length of each word. For proper transfer additional bits are added for synchronisation and error checking purposes.
To send your 16-bit value over RS232 you will need two data words.
1 START BIT + 8 DATA BITS + 1 STOP BIT (total 10 bits)
1 START BIT + 8 DATA BITS + 1 STOP BIT (total 10 bits)
You will also need to ensure the integrity and correctness of the transmitted data.
Example of a simple ASCII message-based protocol suitable for use on serial lines:
http://www.embedded.com/1999/9911/9911feat3.htm
Best regards,
Luciano




Bookmarks