
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
suchitra schrieb: > I wanted to know how can we configure com port for 9 bit > communication. > I intend to use the 9th bit as Address/data bit..since i want to > communicate with more than one devices. > I am using turbo c compailer if some one can give me some reference > code that will be great.. While most, if not all, embedded controllers have this ability with their UARTs, I fear that the standard PC COM port has not... Perhaps setting parity to "mark" for address and to "space" for data could work, as Peter already mentioned. Eventually you will need pauses between bytes to ensure you don't change the parity settings while sending is in progress. You might also consider using 8 bits with the MSB as a/d bit, reducing the information content to 7 bits per byte. -- Dipl.-Ing. Tilmann Reh Autometer GmbH Siegen - Elektronik nach Maß. http://www.autometer.de ================================================================== In a world without walls and fences, who needs Windows and Gates ? (Sun Microsystems)
| <-- __Chronological__ --> | <-- __Thread__ --> |