KBS SerialPort
KBS SerialPort
KBS SerialPort
Kamalanath Samarakoon
Serial communication protocols
• Slow
– RS 232 (moderate distance)
– RS485 (long distance)
• Equipment
– Female
• Cable
– Male
Use of RS232 Link
XX
To connect two devices without a modem
No Handshake
Full Handshake
Loop back Handshake
USART Universal Asynchronous
Receiver/Transmitter
• IC Module inside the IC for serial
communication
• Do parallel in PC to serial in RS232 conversion
and back
• Supports Half duplex and Full Duplex
• Provide all standard RS232 handshaking and
control lines
• 8250 57600 bps
• 16450 115200 bps
• 16550 16 Bytes FIFO Buffers
• 16650 32 Byte FIFO Buffers
• 16750 64 Byte FIFO Buffers 230,400 bps
Flow control
• Hardware
– Use RTS and DTS lines
Asynchronous communication
• How many data bytes it can transmit per second when data
format is 7E1? 840 bytes
Full-duplex:
Independent
Receive and
Transmit Registers
TX, Rx pins to o
devices
Configuration
/Monitor
Registers
Clock Generation