
Transmission
RS422 transmission is simple to implement. The AUTO feature of the 
To transmit a string of data, the transmitter must first check Bit 5 of the Line Status Register at Base Address +5. That bit is the 
The following C code fragment demonstrates this process:
outportb(BASEADDR +4, inportb(BASEADDR +4)0x02); /*Set RTS bit without altering states of other bits*/
while(data[i]); /*While there is data to send*/
{
while(!(inportb(BASEADDR +5)&0x20)); /*Wait until transmitter is empty*/ outportb(BASEADDR,data[i]);
i++;
}
outportb(BASEADDR +4, inportb(BASEADDR +4)&0xFD); /*Reset RTS bit without altering states of other bits*/
| Page  | Manual  | 
