SlideShare a Scribd company logo
1 of 9
Download to read offline
UNIVERSAL ASYNCHRONOUS
RECEIVER/TRANSMITTER - UART-RS232
The Universal Asynchronous Receiver/Transmitter (UART) controller is the key
component of the serial communications subsystem of a microprocessors, microcontrollers and
computers. The UART can take bytes of data in parallel fashion and transmits the individual bits
in a sequential fashion. At the same time, a second UART can receive serial bits sent by UART
and convert the bits into complete bytes. There are two types of serial transmission: Synchronous
and Asynchronous. The asynchronous communication is known as UART and asynchronous is
known as Universal Synchronous-Asynchronous Receiver/Transmitter (USART). Latest
standard UART employ FIFO buffer for improved functional capability. UARTs are generally
used to modem control functions. Hence they have several functional control registers using
which efficient interface can be established with host processor. Embedded processors employ
built in hard core UART block while soft IP UART provide programmable and reconfigurable
flexibilities which are very much advantages in FPGA applications. Hardware Descriptive
Languages (HDL) like verilog can be used for the behavioral description of the UART.
The UART device changes incoming parallel data to serial data which can be sent on a
communication line. A second UART is used to receive the information which converts serial
data to parallel. The UART performs all the tasks, timing, parity checking, etc. needed for the
communication. The UART requires external line drivers (EIA RS 232 C interface) to interface
to external world. In computer systems, the UART is connected to circuitry that generates signals
that comply with the EIA RS232-C specification. There is also a CCITT standard
named V.24 that resembles the specifications included in RS232-C. Registers are accessible to
set or review the communication parameters to use the UART in different environments. Using
these registers the communication speed (baud rate), the type of parity check, and the way
incoming information is signaled to the running software are set according to the requirement of
host processor.
Serial UART types
PC compatible serial communication started with the 8250 UART in the IBM XT
machines. Then UART is upgraded to 8250A, 8250B and then 16450 (manufactured by
National Semiconductor) which is implemented in the AT machines. The higher bus speed
could not be reached by the 8250 series but newer 16450 were capable of handling a
communication speed of 38.4 kbs. 16450 had 1 byte FIFO. The later improved
version16550A contained two on-board FIFO buffers, each capable of storing 16 bytes.
One buffer for transmitter and one buffer for receiver. This made it possible to increase
maximum reliable communication speeds to 115.2 kbs and use effectively in modems with
on-board compression. DMA access ability is provided in 16550. Two pins were redefined
for this purpose. DMA transfer is not used with most applications. The most
common UART used is16550A. Newer versions such as 16650 contain two 32 byte FIFO's
and on board support for software flow control are latest advancements in industry. Texas
Instruments is developing the 16750 which contains 64 byte FIFO's.
A UART usually contains the following components:
· Baudrate clock generator: Multiple of the bit rate to improve sampling in the middle
of a bit period. For generating this timing information, each UART uses an oscillator
generating a frequency of about 1.8432 MHz. This frequency is divided by 16 to generate
the time base for communication. Hence the maximum allowed communication speed is
115200 bps. UARTs like the 16550 are capable of handling higher input frequencies up to
24 MHz which makes it possible to communicate with a maximum speed of 1.5 Mbps.
· Input and output shift registers: Each UART contains a shift register which is the
fundamental method of conversion between serial and parallel forms. These registers shifts
the data that has to be serially transmitted or serially received.
· Transmit and receive control: This control logic checks for the control signals from
host processor to start or stop the transmission and reception of the data bits. In case of
any error it also generates error signals.
· Optional transmit and receive buffers: Buffers can be used to hold the data
temporarily.
· Optional parallel data bus buffer: This buffer improves the speed.
· Optional FIFO: The UART works by writing data from the host processor to its FIFO
buffers, and feeding the data from the buffer to the serial device in the format dictated by
the user (typically 8-N-1).
Serial Data Format and Asynchronous Serial Transmission
As the name indicates, asynchronous transmission need not send clock signal to send the
data to the receiver. The sender and receiver must agree on timing parameters in advance and
special bits such as start and stop bits are added to each word which is used to synchronize the
sending and receiving units. The UART serial data format is shown in Figure (1).
Figure (1) Serial Data Format
A bit called the "Start Bit" is added to the beginning of each word that is to be
transmitted. The Start Bit indicates the start of the data transmission and it alerts the receiver
that a word of data is about to be sent. Upon reception of start bit the clock in the receiver goes
into synchronization with the clock in the transmitter. The accuracy of these two clocks should
not deviate more than 10% during the transmission of the remaining bits in the word.
The individual bits of the word of data are sent after the start bit. Least Significant Bit
(LSB) is sent first. The transmitter does not know when the receiver has read at the value of the
bit. The transmitter begins transmitting the next bit of the word on next clock edge.
Parity bit is be added when the entire data word has been sent. This bit can be used to
detect errors at the receiver side. Then one Stop Bit is sent by the transmitter to indicate the end
of the valid data bits.
On the receiver side once it receives all of the bits in the data word, it can check for
theParity Bits. To accomplish this task both transmitter and receiver must agree on whether a
Parity Bit is to be used. Then Stop Bit is encountered by receiver. A missing stop bit may result
entire data to be garbage. This will cause a Framing Error and will be reported to the host
processor when the data word is read. Framing Error can be caused due to mismatch of
transmitter and receiver clocks.
The UART automatically discards the Start, Parity and Stop bits irrespective of whether
data is received correctly or not. If the sender and receiver are configured identically, these bits
are not passed to the host. To transmit new word, the Start Bit for the new word is sent as soon as
the Stop Bit for the previous word has been sent.
The transmission speed in asynchronous communication is measured by Baud Rate. A
Baud Rate represents the number of bits that are actually being sent over the media. The Baud
rate includes the Start, Stop and Parity bits. The Bit rate (Bits per Second-bps) represents the
amount of data that is actually sent from the transmitting device to the other device. Speeds for
UARTs are in bits per second (bit/s or bps), although often incorrectly called the baud rate.
Standard baud rates are: 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600,
76800, 115200, 230400, 460800, 921600, 1382400, 1843200 and 2764800 bit/s.
UART Registers
Twelve registers control the communication between the processor and
the UART.Behavior of the communication can be changed by reading or writing registers.
Each register is eight bits wide. On PC compatible devices, the registers are accessible in
the I/O address area. The function of each register is discussed here in brief. The registers
are shown in Figure
Figure (2) The 16550 UART registers
RBR: Receiver buffer register
The Receiver Buffer Register (RBR) contains the byte received if no FIFO is used,
or the oldest unread byte with FIFO's. If FIFO buffering is used, each new read action of the
register will return the next byte, until no more bytes are present. Bit 0 in the Line Status
Register (LSR) can be used to check if all received bytes have been read. This bit will
change to zero if no more bytes are present.
THR: Transmitter holding register
Transmitter Holding Register (THR) is used to buffer outgoing characters. Without
FIFO buffering, only one character can be stored. Otherwise the amount of characters
depends on the type of UART. To check if new information must be written to THR Bit 5 in
theLine Status Register (LSR) can be used. Empty register is indicated by the value 1. If
FIFO buffering is used, more than one character can be written to the transmitter holding
register when the FIFO is empty.
IER: Interrupt enable register
In interrupt driven configuration, the UART will signal each change by generating a
processor interrupt. A software routine must be read interrupt signal to handle the interrupt
and to check what state change was responsible for it. Interrupt enable register (IER) is
used to enable the interrupt.
IIR: Interrupt identification register
The Interrupt Identification Register (IIR) bits show the current state of
the UART and which state change caused the interrupt to occur. Based on bit values of the
IIR interrupt can be serviced.
FCR: FIFO control register
The FIFO control register (FCR) is present starting with the 16550 series. The
behavior of the FIFOs in the UART is controlled by this register. If a logical value 1 is written
to bits 1 or 2, the function attached is triggered. The other bits are used to select a specific
FIFO mode.
LCR: Line control register
The Line Control Register (LCR) is used at initialization to set the communication
parameters such as parity, number of data bits etc. The register also controls the
accessibility of the DLL and DLM registers.
MCR: Modem control register
Handshaking actions with the attached device are accomplished by the Modem
Control Register (MCR). In the UART series 16550, setting and resetting of the control
signals must be done by software. But in the new 16750, flow control automatically handled.
LSR: Line status register
The Line Status Register (LSR) shows the current state of communication. Errors,
the state of the receiver and transmit buffers are available.
MSR: Modem status register
The Modem Status Register (MSR) contains information about the four incoming
modem control lines on the device. The four most significant bits contain information about
the current state of the inputs. The least four significant bits are used to indicate state
changes. Each time the register is read the four LSB's are reset.
DLL and DLM: Divisor latch registers
The communication speed of the UART is changed by using a programmable value
stored in Divisor Latch Registers DLL and DLM which contains the least and most
significant registers.
UART Transmitter
The block representation of serial data transmission is depicted in Figure (3).The serial
transmit block has FIFO buffer into which data is written by the host processor. After the data is
written into the buffers it is transmitted serially onto tx. As long as the FIFO is not full the serial
transmit block sets the signal tx_en high.
Figure (3) Serial data transmission
Transmit FIFO
The FIFO is 8-bit by 32-word. It receives control signals from the serial transmit block.
The data on signal data_bus is written into its buffer. At the same time the write pointer is
incremented. The data is read onto FIFO and the read pointer is reset when the read pointer has
reached its maximum. The write pointer is cleared when the write pointer has reached its
maximum. The tx_en is set low when the FIFO is full.
Serial Transmit Block
This component is responsible for serial transmission of data onto tx. It generates the
requisite control signals for reading and writing the transmit FIFO. This signal is used as an
enable by the transmit data counter, and the transmit block. The transmit data counter keeps
count of the number of data bits transmitted onto tx. These signals are provided by the transmit
control block. The parity counter counts the number of bits that were high in the eight bits of
data being transmitted. The transmit control block controls the whole process of transmission. It
is modeled in the form of a state machine.
UART-Receiver
The block representation of serial data reception is depicted in Figure (4).The serial
receive block can also has a FIFO buffers. The block checks for the parity and the validity of the
data frame on the rx input and then writes correct data into its buffers. It also sets the
signal byte_ready low if its FIFO is empty.
Receive FIFO
The FIFO is 8-bit wide and 32 byte deep. It receives control signals from the serial
receive block. The data received from the receive block written into its buffer. The write pointer
is cleared when the write pointer reaches its maximum limit before further increment.
Figure (4) Serial data reception
Serial Receive Block
Serial data is received by this component. It generates the requisite control signals for
reading and writing the receive FIFO. It generates required sample clock to sample the incoming
data and determine the baud rate of the incoming data.
UART Errors
Overrun Error
An "overrun error" occurs when the UART cannot process the byte that just came in
before the next one arrives. The host processor must service the UART in order to remove
characters from the buffer. If the host processor does not service the UART and the buffer
becomes full, then Overrun Error will occur.
Framing Error
A "Framing Error" occurs when the designated "start" and "stop" bits are not valid.
Start bit acts as a reference for the remaining bits. When the "stop" bit is expected if the
data line is not in the expected idle state a Framing Error will occur.
Parity Error
A "Parity Error" occurs when the number of "active" bits does not agree with the
specified parity configuration of the UART.
External Interface
The external signalling levels that are used between different equipment are not
generated by UART. An interface is used to convert the logic level signals of the UART to
the external signalling levels. Examples of standards for voltage signalling are RS-232, RS-
422and RS-485 from the EIA. For embedded system applications UARTs are commonly
used with RS-232. It is useful to communicate between microcontrollers and also with
PCs. MAX 232 is one of the example ICs which provide RS232 level signals.
Source : http://asic-soc.blogspot.in/2007/12/universal-asynchronous.html

More Related Content

What's hot

Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul Verma
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp portTeju Kotti
 
Wireless UART Controller: XR18W750
Wireless UART Controller: XR18W750Wireless UART Controller: XR18W750
Wireless UART Controller: XR18W750Premier Farnell
 
Universal asynchronous receiver-transmitter UART Dsa project report
Universal asynchronous receiver-transmitter UART Dsa project reportUniversal asynchronous receiver-transmitter UART Dsa project report
Universal asynchronous receiver-transmitter UART Dsa project reportShahrukh Javed
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart socSatyam Sharma
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTSai_praneeth
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
Serial Communication In Atmega 16
Serial Communication In Atmega 16Serial Communication In Atmega 16
Serial Communication In Atmega 16Suren Kumar
 
UART Communication
UART CommunicationUART Communication
UART Communicationdattatraya1
 
Serial communication
Serial communicationSerial communication
Serial communicationVikas Dongre
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16Techvilla
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERVarun Kambrath
 

What's hot (20)

UART
UARTUART
UART
 
Mridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UARTMridul_Verma_Intern_Tech_Adityaa_UART
Mridul_Verma_Intern_Tech_Adityaa_UART
 
8051 serialp port
8051 serialp port8051 serialp port
8051 serialp port
 
Wireless UART Controller: XR18W750
Wireless UART Controller: XR18W750Wireless UART Controller: XR18W750
Wireless UART Controller: XR18W750
 
Universal asynchronous receiver-transmitter UART Dsa project report
Universal asynchronous receiver-transmitter UART Dsa project reportUniversal asynchronous receiver-transmitter UART Dsa project report
Universal asynchronous receiver-transmitter UART Dsa project report
 
Xilinxaxi uart16550
Xilinxaxi uart16550Xilinxaxi uart16550
Xilinxaxi uart16550
 
UART
UARTUART
UART
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
 
UART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPTUART(universal asynchronous receiver transmitter ) PPT
UART(universal asynchronous receiver transmitter ) PPT
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Uart 16550
Uart 16550Uart 16550
Uart 16550
 
Serial Communication In Atmega 16
Serial Communication In Atmega 16Serial Communication In Atmega 16
Serial Communication In Atmega 16
 
Uart
UartUart
Uart
 
Uart
UartUart
Uart
 
Uart
UartUart
Uart
 
UART Communication
UART CommunicationUART Communication
UART Communication
 
Serial communication
Serial communicationSerial communication
Serial communication
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
 
4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc4 ql uart_psb_ds_revc
4 ql uart_psb_ds_revc
 

Similar to Universal asynchronous receiver_transmitter_uart_rs232

Implementation of UART with Status Register using Multi Bit Flip-Flop
Implementation of UART with Status Register using Multi Bit  Flip-FlopImplementation of UART with Status Register using Multi Bit  Flip-Flop
Implementation of UART with Status Register using Multi Bit Flip-FlopIJMER
 
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...IJERA Editor
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUsPremier Farnell
 
Synthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft CoreSynthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft Coreijsrd.com
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGTotal Project Solutions
 
UART Serial Communication Module Design and Simulation Based on VHDL
UART Serial Communication Module Design and Simulation Based on VHDLUART Serial Communication Module Design and Simulation Based on VHDL
UART Serial Communication Module Design and Simulation Based on VHDLIJERA Editor
 
Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)cairo university
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & InterrruptsSharmilaChidaravalli
 
Implementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterImplementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterIJERA Editor
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.parthi_arjun
 
Vlsi implementation ofdm
Vlsi implementation ofdmVlsi implementation ofdm
Vlsi implementation ofdmManas Verma
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )Tarun Khaneja
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUsPremier Farnell
 

Similar to Universal asynchronous receiver_transmitter_uart_rs232 (20)

Uart wiki
Uart wikiUart wiki
Uart wiki
 
Implementation of UART with Status Register using Multi Bit Flip-Flop
Implementation of UART with Status Register using Multi Bit  Flip-FlopImplementation of UART with Status Register using Multi Bit  Flip-Flop
Implementation of UART with Status Register using Multi Bit Flip-Flop
 
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...
Achieving Reduced Area and Power with Multi Bit Flip-Flop When Implemented In...
 
Uart receiver
Uart receiverUart receiver
Uart receiver
 
Tutorial
TutorialTutorial
Tutorial
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
Overview of LPC214x MCUs
Overview of LPC214x MCUsOverview of LPC214x MCUs
Overview of LPC214x MCUs
 
Synthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft CoreSynthesis & FPGA Implementation of UART IP Soft Core
Synthesis & FPGA Implementation of UART IP Soft Core
 
AN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACINGAN INTRODUCTION TO SERIAL PORT INTERFACING
AN INTRODUCTION TO SERIAL PORT INTERFACING
 
USART.pptx
USART.pptxUSART.pptx
USART.pptx
 
UART Serial Communication Module Design and Simulation Based on VHDL
UART Serial Communication Module Design and Simulation Based on VHDLUART Serial Communication Module Design and Simulation Based on VHDL
UART Serial Communication Module Design and Simulation Based on VHDL
 
Lecture 10 (serial communication)
Lecture 10 (serial communication)Lecture 10 (serial communication)
Lecture 10 (serial communication)
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
 
UART.pptx
UART.pptxUART.pptx
UART.pptx
 
Implementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and TransmitterImplementation of Universal Asynchronous Receiver and Transmitter
Implementation of Universal Asynchronous Receiver and Transmitter
 
Peripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controllerPeripheral 8245,16550&8237 dma controller
Peripheral 8245,16550&8237 dma controller
 
PIC 16F877A by PARTHIBAN. S.
PIC 16F877A   by PARTHIBAN. S.PIC 16F877A   by PARTHIBAN. S.
PIC 16F877A by PARTHIBAN. S.
 
Vlsi implementation ofdm
Vlsi implementation ofdmVlsi implementation ofdm
Vlsi implementation ofdm
 
UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )UART project report by Tarun Khaneja ( 09034406598 )
UART project report by Tarun Khaneja ( 09034406598 )
 
Overview of LPC213x MCUs
Overview of LPC213x MCUsOverview of LPC213x MCUs
Overview of LPC213x MCUs
 

More from Shahrukh Javed

Chapter 12 linear_programming
Chapter 12 linear_programmingChapter 12 linear_programming
Chapter 12 linear_programmingShahrukh Javed
 
Chapter 11 three_dimensional_geometry
Chapter 11 three_dimensional_geometryChapter 11 three_dimensional_geometry
Chapter 11 three_dimensional_geometryShahrukh Javed
 
Chapter 10 vector_algebra
Chapter 10 vector_algebraChapter 10 vector_algebra
Chapter 10 vector_algebraShahrukh Javed
 
Chapter 9 differential_equations
Chapter 9 differential_equationsChapter 9 differential_equations
Chapter 9 differential_equationsShahrukh Javed
 
Chapter 8 application_of_integrals
Chapter 8 application_of_integralsChapter 8 application_of_integrals
Chapter 8 application_of_integralsShahrukh Javed
 
Chapter 6 application_of_derivatives
Chapter 6 application_of_derivativesChapter 6 application_of_derivatives
Chapter 6 application_of_derivativesShahrukh Javed
 
Chapter 5 continuity_and_differentiability
Chapter 5 continuity_and_differentiabilityChapter 5 continuity_and_differentiability
Chapter 5 continuity_and_differentiabilityShahrukh Javed
 
Chapter 4 determinants
Chapter 4 determinantsChapter 4 determinants
Chapter 4 determinantsShahrukh Javed
 
Chapter 2 inverse_trigonometric_functions
Chapter 2 inverse_trigonometric_functionsChapter 2 inverse_trigonometric_functions
Chapter 2 inverse_trigonometric_functionsShahrukh Javed
 
Chapter 1 relations_and_functions
Chapter 1 relations_and_functionsChapter 1 relations_and_functions
Chapter 1 relations_and_functionsShahrukh Javed
 
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...Shahrukh Javed
 
Heart rate counter explanation
Heart rate counter explanationHeart rate counter explanation
Heart rate counter explanationShahrukh Javed
 
Wireless power transmission
Wireless power transmissionWireless power transmission
Wireless power transmissionShahrukh Javed
 
Why children absorb more microwave radiation than adults the consequences
Why children absorb more microwave radiation than adults the consequencesWhy children absorb more microwave radiation than adults the consequences
Why children absorb more microwave radiation than adults the consequencesShahrukh Javed
 
Radiation exposure of cell phones & its impact on humans
Radiation exposure of cell phones & its impact on humansRadiation exposure of cell phones & its impact on humans
Radiation exposure of cell phones & its impact on humansShahrukh Javed
 

More from Shahrukh Javed (20)

Class xii
Class xiiClass xii
Class xii
 
Chapter 12 linear_programming
Chapter 12 linear_programmingChapter 12 linear_programming
Chapter 12 linear_programming
 
Chapter 11 three_dimensional_geometry
Chapter 11 three_dimensional_geometryChapter 11 three_dimensional_geometry
Chapter 11 three_dimensional_geometry
 
Chapter 10 vector_algebra
Chapter 10 vector_algebraChapter 10 vector_algebra
Chapter 10 vector_algebra
 
Chapter 9 differential_equations
Chapter 9 differential_equationsChapter 9 differential_equations
Chapter 9 differential_equations
 
Chapter 8 application_of_integrals
Chapter 8 application_of_integralsChapter 8 application_of_integrals
Chapter 8 application_of_integrals
 
Chapter 7 integrals
Chapter 7 integralsChapter 7 integrals
Chapter 7 integrals
 
Chapter 6 application_of_derivatives
Chapter 6 application_of_derivativesChapter 6 application_of_derivatives
Chapter 6 application_of_derivatives
 
Chapter 5 continuity_and_differentiability
Chapter 5 continuity_and_differentiabilityChapter 5 continuity_and_differentiability
Chapter 5 continuity_and_differentiability
 
Chapter 4 determinants
Chapter 4 determinantsChapter 4 determinants
Chapter 4 determinants
 
Chapter 3 matrices
Chapter 3 matricesChapter 3 matrices
Chapter 3 matrices
 
Chapter 2 inverse_trigonometric_functions
Chapter 2 inverse_trigonometric_functionsChapter 2 inverse_trigonometric_functions
Chapter 2 inverse_trigonometric_functions
 
Chapter 1 relations_and_functions
Chapter 1 relations_and_functionsChapter 1 relations_and_functions
Chapter 1 relations_and_functions
 
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...
WHY CHILDREN ABSORBS MORE MICROWAVE RADIATION THAT ADULTS: THE CONSEQUENCES” ...
 
Heart rate counter explanation
Heart rate counter explanationHeart rate counter explanation
Heart rate counter explanation
 
BLACK BOX
BLACK  BOXBLACK  BOX
BLACK BOX
 
Wireless power transmission
Wireless power transmissionWireless power transmission
Wireless power transmission
 
Wireless charging
Wireless chargingWireless charging
Wireless charging
 
Why children absorb more microwave radiation than adults the consequences
Why children absorb more microwave radiation than adults the consequencesWhy children absorb more microwave radiation than adults the consequences
Why children absorb more microwave radiation than adults the consequences
 
Radiation exposure of cell phones & its impact on humans
Radiation exposure of cell phones & its impact on humansRadiation exposure of cell phones & its impact on humans
Radiation exposure of cell phones & its impact on humans
 

Recently uploaded

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidNikhilNagaraju
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 

Recently uploaded (20)

APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
main PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfidmain PPT.pptx of girls hostel security using rfid
main PPT.pptx of girls hostel security using rfid
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 

Universal asynchronous receiver_transmitter_uart_rs232

  • 1. UNIVERSAL ASYNCHRONOUS RECEIVER/TRANSMITTER - UART-RS232 The Universal Asynchronous Receiver/Transmitter (UART) controller is the key component of the serial communications subsystem of a microprocessors, microcontrollers and computers. The UART can take bytes of data in parallel fashion and transmits the individual bits in a sequential fashion. At the same time, a second UART can receive serial bits sent by UART and convert the bits into complete bytes. There are two types of serial transmission: Synchronous and Asynchronous. The asynchronous communication is known as UART and asynchronous is known as Universal Synchronous-Asynchronous Receiver/Transmitter (USART). Latest standard UART employ FIFO buffer for improved functional capability. UARTs are generally used to modem control functions. Hence they have several functional control registers using which efficient interface can be established with host processor. Embedded processors employ built in hard core UART block while soft IP UART provide programmable and reconfigurable flexibilities which are very much advantages in FPGA applications. Hardware Descriptive Languages (HDL) like verilog can be used for the behavioral description of the UART. The UART device changes incoming parallel data to serial data which can be sent on a communication line. A second UART is used to receive the information which converts serial data to parallel. The UART performs all the tasks, timing, parity checking, etc. needed for the communication. The UART requires external line drivers (EIA RS 232 C interface) to interface to external world. In computer systems, the UART is connected to circuitry that generates signals that comply with the EIA RS232-C specification. There is also a CCITT standard named V.24 that resembles the specifications included in RS232-C. Registers are accessible to set or review the communication parameters to use the UART in different environments. Using these registers the communication speed (baud rate), the type of parity check, and the way incoming information is signaled to the running software are set according to the requirement of host processor. Serial UART types PC compatible serial communication started with the 8250 UART in the IBM XT machines. Then UART is upgraded to 8250A, 8250B and then 16450 (manufactured by National Semiconductor) which is implemented in the AT machines. The higher bus speed
  • 2. could not be reached by the 8250 series but newer 16450 were capable of handling a communication speed of 38.4 kbs. 16450 had 1 byte FIFO. The later improved version16550A contained two on-board FIFO buffers, each capable of storing 16 bytes. One buffer for transmitter and one buffer for receiver. This made it possible to increase maximum reliable communication speeds to 115.2 kbs and use effectively in modems with on-board compression. DMA access ability is provided in 16550. Two pins were redefined for this purpose. DMA transfer is not used with most applications. The most common UART used is16550A. Newer versions such as 16650 contain two 32 byte FIFO's and on board support for software flow control are latest advancements in industry. Texas Instruments is developing the 16750 which contains 64 byte FIFO's. A UART usually contains the following components: · Baudrate clock generator: Multiple of the bit rate to improve sampling in the middle of a bit period. For generating this timing information, each UART uses an oscillator generating a frequency of about 1.8432 MHz. This frequency is divided by 16 to generate the time base for communication. Hence the maximum allowed communication speed is 115200 bps. UARTs like the 16550 are capable of handling higher input frequencies up to 24 MHz which makes it possible to communicate with a maximum speed of 1.5 Mbps. · Input and output shift registers: Each UART contains a shift register which is the fundamental method of conversion between serial and parallel forms. These registers shifts the data that has to be serially transmitted or serially received. · Transmit and receive control: This control logic checks for the control signals from host processor to start or stop the transmission and reception of the data bits. In case of any error it also generates error signals. · Optional transmit and receive buffers: Buffers can be used to hold the data temporarily. · Optional parallel data bus buffer: This buffer improves the speed. · Optional FIFO: The UART works by writing data from the host processor to its FIFO buffers, and feeding the data from the buffer to the serial device in the format dictated by the user (typically 8-N-1). Serial Data Format and Asynchronous Serial Transmission
  • 3. As the name indicates, asynchronous transmission need not send clock signal to send the data to the receiver. The sender and receiver must agree on timing parameters in advance and special bits such as start and stop bits are added to each word which is used to synchronize the sending and receiving units. The UART serial data format is shown in Figure (1). Figure (1) Serial Data Format A bit called the "Start Bit" is added to the beginning of each word that is to be transmitted. The Start Bit indicates the start of the data transmission and it alerts the receiver that a word of data is about to be sent. Upon reception of start bit the clock in the receiver goes into synchronization with the clock in the transmitter. The accuracy of these two clocks should not deviate more than 10% during the transmission of the remaining bits in the word. The individual bits of the word of data are sent after the start bit. Least Significant Bit (LSB) is sent first. The transmitter does not know when the receiver has read at the value of the bit. The transmitter begins transmitting the next bit of the word on next clock edge. Parity bit is be added when the entire data word has been sent. This bit can be used to detect errors at the receiver side. Then one Stop Bit is sent by the transmitter to indicate the end of the valid data bits. On the receiver side once it receives all of the bits in the data word, it can check for theParity Bits. To accomplish this task both transmitter and receiver must agree on whether a Parity Bit is to be used. Then Stop Bit is encountered by receiver. A missing stop bit may result entire data to be garbage. This will cause a Framing Error and will be reported to the host processor when the data word is read. Framing Error can be caused due to mismatch of transmitter and receiver clocks.
  • 4. The UART automatically discards the Start, Parity and Stop bits irrespective of whether data is received correctly or not. If the sender and receiver are configured identically, these bits are not passed to the host. To transmit new word, the Start Bit for the new word is sent as soon as the Stop Bit for the previous word has been sent. The transmission speed in asynchronous communication is measured by Baud Rate. A Baud Rate represents the number of bits that are actually being sent over the media. The Baud rate includes the Start, Stop and Parity bits. The Bit rate (Bits per Second-bps) represents the amount of data that is actually sent from the transmitting device to the other device. Speeds for UARTs are in bits per second (bit/s or bps), although often incorrectly called the baud rate. Standard baud rates are: 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, 115200, 230400, 460800, 921600, 1382400, 1843200 and 2764800 bit/s. UART Registers Twelve registers control the communication between the processor and the UART.Behavior of the communication can be changed by reading or writing registers. Each register is eight bits wide. On PC compatible devices, the registers are accessible in the I/O address area. The function of each register is discussed here in brief. The registers are shown in Figure Figure (2) The 16550 UART registers
  • 5. RBR: Receiver buffer register The Receiver Buffer Register (RBR) contains the byte received if no FIFO is used, or the oldest unread byte with FIFO's. If FIFO buffering is used, each new read action of the register will return the next byte, until no more bytes are present. Bit 0 in the Line Status Register (LSR) can be used to check if all received bytes have been read. This bit will change to zero if no more bytes are present. THR: Transmitter holding register Transmitter Holding Register (THR) is used to buffer outgoing characters. Without FIFO buffering, only one character can be stored. Otherwise the amount of characters depends on the type of UART. To check if new information must be written to THR Bit 5 in theLine Status Register (LSR) can be used. Empty register is indicated by the value 1. If FIFO buffering is used, more than one character can be written to the transmitter holding register when the FIFO is empty. IER: Interrupt enable register In interrupt driven configuration, the UART will signal each change by generating a processor interrupt. A software routine must be read interrupt signal to handle the interrupt and to check what state change was responsible for it. Interrupt enable register (IER) is used to enable the interrupt. IIR: Interrupt identification register The Interrupt Identification Register (IIR) bits show the current state of the UART and which state change caused the interrupt to occur. Based on bit values of the IIR interrupt can be serviced. FCR: FIFO control register The FIFO control register (FCR) is present starting with the 16550 series. The behavior of the FIFOs in the UART is controlled by this register. If a logical value 1 is written to bits 1 or 2, the function attached is triggered. The other bits are used to select a specific FIFO mode. LCR: Line control register
  • 6. The Line Control Register (LCR) is used at initialization to set the communication parameters such as parity, number of data bits etc. The register also controls the accessibility of the DLL and DLM registers. MCR: Modem control register Handshaking actions with the attached device are accomplished by the Modem Control Register (MCR). In the UART series 16550, setting and resetting of the control signals must be done by software. But in the new 16750, flow control automatically handled. LSR: Line status register The Line Status Register (LSR) shows the current state of communication. Errors, the state of the receiver and transmit buffers are available. MSR: Modem status register The Modem Status Register (MSR) contains information about the four incoming modem control lines on the device. The four most significant bits contain information about the current state of the inputs. The least four significant bits are used to indicate state changes. Each time the register is read the four LSB's are reset. DLL and DLM: Divisor latch registers The communication speed of the UART is changed by using a programmable value stored in Divisor Latch Registers DLL and DLM which contains the least and most significant registers. UART Transmitter The block representation of serial data transmission is depicted in Figure (3).The serial transmit block has FIFO buffer into which data is written by the host processor. After the data is written into the buffers it is transmitted serially onto tx. As long as the FIFO is not full the serial transmit block sets the signal tx_en high.
  • 7. Figure (3) Serial data transmission Transmit FIFO The FIFO is 8-bit by 32-word. It receives control signals from the serial transmit block. The data on signal data_bus is written into its buffer. At the same time the write pointer is incremented. The data is read onto FIFO and the read pointer is reset when the read pointer has reached its maximum. The write pointer is cleared when the write pointer has reached its maximum. The tx_en is set low when the FIFO is full. Serial Transmit Block This component is responsible for serial transmission of data onto tx. It generates the requisite control signals for reading and writing the transmit FIFO. This signal is used as an enable by the transmit data counter, and the transmit block. The transmit data counter keeps count of the number of data bits transmitted onto tx. These signals are provided by the transmit control block. The parity counter counts the number of bits that were high in the eight bits of data being transmitted. The transmit control block controls the whole process of transmission. It is modeled in the form of a state machine. UART-Receiver The block representation of serial data reception is depicted in Figure (4).The serial receive block can also has a FIFO buffers. The block checks for the parity and the validity of the data frame on the rx input and then writes correct data into its buffers. It also sets the signal byte_ready low if its FIFO is empty.
  • 8. Receive FIFO The FIFO is 8-bit wide and 32 byte deep. It receives control signals from the serial receive block. The data received from the receive block written into its buffer. The write pointer is cleared when the write pointer reaches its maximum limit before further increment. Figure (4) Serial data reception Serial Receive Block Serial data is received by this component. It generates the requisite control signals for reading and writing the receive FIFO. It generates required sample clock to sample the incoming data and determine the baud rate of the incoming data. UART Errors Overrun Error An "overrun error" occurs when the UART cannot process the byte that just came in before the next one arrives. The host processor must service the UART in order to remove characters from the buffer. If the host processor does not service the UART and the buffer becomes full, then Overrun Error will occur. Framing Error
  • 9. A "Framing Error" occurs when the designated "start" and "stop" bits are not valid. Start bit acts as a reference for the remaining bits. When the "stop" bit is expected if the data line is not in the expected idle state a Framing Error will occur. Parity Error A "Parity Error" occurs when the number of "active" bits does not agree with the specified parity configuration of the UART. External Interface The external signalling levels that are used between different equipment are not generated by UART. An interface is used to convert the logic level signals of the UART to the external signalling levels. Examples of standards for voltage signalling are RS-232, RS- 422and RS-485 from the EIA. For embedded system applications UARTs are commonly used with RS-232. It is useful to communicate between microcontrollers and also with PCs. MAX 232 is one of the example ICs which provide RS232 level signals. Source : http://asic-soc.blogspot.in/2007/12/universal-asynchronous.html