Prerequisite – 8259 PIC Microprocessor 8251 universal synchronous asynchronous receiver transmitter (USART) acts as a mediator between microprocessor and peripheral to transmit serial data into parallel form and vice versa.
- It takes data serially from peripheral (outside devices) and converts into parallel data.
- After converting the data into parallel form, it transmits it to the CPU.
- Similarly, it receives parallel data from microprocessor and converts it into serial form.
- After converting data into serial form, it transmits it to outside device (peripheral).
Block Diagram of 8251 USART – It contains the following blocks:
- Data bus buffer – This block helps in interfacing the internal data bus of 8251 to the system data bus. The data transmission is possible between 8251 and CPU by the data bus buffer block.
- Read/Write control logic – It is a control block for overall device. It controls the overall working by selecting the operation to be done. The operation selection depends upon input signals as: In this way, this unit selects one of the three registers- data buffer register, control register, status register.
- Modem control (modulator/demodulator) – A device converts analog signals to digital signals and vice-versa and helps the computers to communicate over telephone lines or cable wires. The following are active-low pins of Modem.
- DSR: Data Set Ready signal is an input signal.
- DTR: Data terminal Ready is an output signal.
- CTS: It is an input signal which controls the data transmit circuit. RTS: It is an output signal which is used to set the status RTS.
- Transmit buffer – This block is used for parallel to serial converter that receives a parallel byte for conversion into serial signal and further transmission onto the common channel.
- TXD: It is an output signal, if its value is one, means transmitter will transmit the data.
- Transmit control – This block is used to control the data transmission with the help of following pins:
- TXRDY: It means transmitter is ready to transmit data character.
- TXEMPTY: An output signal which indicates that TXEMPTY pin has transmitted all the data characters and transmitter is empty now.
- TXC: An active-low input pin which controls the data transmission rate of transmitted data.
- Receive buffer – This block acts as a buffer for the received data.
- RXD: An input signal which receives the data.
- Receive control – This block controls the receiving data.
- RXRDY: An input signal indicates that it is ready to receive the data.
- RXC: An active-low input signal which controls the data transmission rate of received data.
- SYNDET/BD: An input or output terminal. External synchronous mode-input terminal and asynchronous mode-output terminal.
Versatility: The 8251 USART can be used for both synchronous and asynchronous communication, making it a versatile peripheral.
Error detection: The USART includes built-in error detection features, such as parity checking, which help to ensure the accuracy of transmitted data.
Flow control: The USART includes flow control features, which allow for the regulation of data transmission and reception, preventing data loss and overloading.
Compatibility: The 8251 USART is compatible with a wide range of microprocessors, making it a popular choice for serial communication in many different systems.
Ease of use: The USART includes simple interface pins and registers, making it relatively easy to use and program.
Limited speed: The 8251 USART has a relatively low maximum data transfer rate of 115.2 kbps, which may be insufficient for some applications.
Limited buffer size: The USART has a small internal buffer size, which may result in data loss if data is not read from the buffer in a timely manner.
Complex programming: Although the interface pins and registers of the USART are relatively simple, programming the USART can be complex, requiring careful attention to timing and other parameters.
Cost: While the 8251 USART is relatively affordable, it does add cost to a system, particularly if multiple USARTs are required.
Limited functionality: While the 8251 USART is a useful peripheral for serial communication, it does not include more advanced features, such as DMA (direct memory access) or advanced error correction.
Share your thoughts in the comments
Please Login to comment...