Design and Implementation of Uart On Soc PDF
Design and Implementation of Uart On Soc PDF
Design and Implementation of Uart On Soc PDF
Abstract – Security is primary concern in our day-to-day life. receives data and converts data from serial to parallel, where
Everyone wants to be as much as secure as possible. The as the transmitter performs parallel to serial conversion.
UART (universal asynchronous receiver and transmitter) This thesis portrays a novel architecture of Universal
module provides asynchronous serial communication with Asynchronous Receiver Transmitter. UARTs are used for
external devices such as modems and other computers. The asynchronous serial data communication between remote
UART can be used to control the process of breaking embedded systems. The UART is for interfacing computers or
parallel data from the PC down into serial data that can be microprocessors to an asynchronous serial data channel. The
transmitted and vice versa for receiving data. The UART receiver converts serial start, data, parity and stop bits. The
allows the devices to communicate without the need to be transmitter converts parallel data into serial form and
synchronized. UART is a popular method of serial automatically adds start, parity and stop bits. The data word
asynchronous communication. Typically, the UART is length can be 5, 6, 7 or 8 bits. Parity may be odd or even.
connected between a processor and a peripheral. To the Parity checking and generation can be inhibited. The stop bits
processor, the UART appears as an 8-bit read-write parallel may be one or two or one and one-half when transmitting 5-bit
port that performs serial-to-parallel conversions for the code.
processor, and vice versa for the peripheral. With the The UART can be used in a wide range of applications
implementation of UART the serial communication is done including modems, printers, peripherals and remote data
in high data rate and no interrupts. Baud rate generator acquisition systems. Utilizing the advanced scaled SAJI IV
provides high data rate and interrupt controller handles all CMOS process permits operation clock frequencies up to
the interrupts. The UART serial communication interface 8.0MHz (500K Baud).
device receives data and converts data from serial to parallel,
where as the transmitter performs parallel to serial Power requirements, by comparison, are reduced from
conversion. 300mW to 10mW. Status logic increases flexibility and
simplifies the user interface. The basic application of UART is
Key word:- SOC,UART shown in Figure 1.1.
I.INTRODUCTION
1.1 SYNCHRONOUS SERIAL TRANSMISSION word to be garbled and will report a Framing Error to the host
processor when the data word is read. The usual cause of a
Synchronous serial transmission requires that the
Framing Error is that the sender and receiver clocks were not
sender and receiver share a clock with one another, or that the
running at the same speed, or that the signal was interrupted.
sender provide a strobe or other timing signal so that the
receiver knows when to “read” the next bit of the data. In most
forms of serial Synchronous communication, if there is no II.BLOCK DIAGRAM OF UART
data available at a given instant to transmit, a fill character
must be sent instead so that data is always being transmitted. Block diagram of UART is shown in Figure 2.1.
Synchronous communication is usually more efficient because
only data bits are transmitted between sender and receiver, and
synchronous communication can be more costly if extra
wiring and circuits are required to share a clock signal
between the sender and receiver.
A form of Synchronous transmission is used with
printers and fixed disk devices in that the data is sent on one
set of wires while a clock or strobe is sent on a different wire.
Printers and fixed disk devices are not normally serial devices
because most fixed disk interface standards send an entire
word of data for each clock or strobe signal by using a
separate wire for each bit of the word. In the PC industry,
these are known as Parallel devices.
Figure:2.1 Block Diagram of UART
1.2 ASYNCHRONOUS SERIAL TRANSMISSION
Asynchronous transmission allows data to be 2.1TRANSMITTER
transmitted without the sender having to send a clock signal to
A component, uart_tx is designed for transferring data
the receiver. Instead, the sender and receiver must agree on
using serial communication. Figure 2.2 shows the block
timing parameters in advance and special bits are added to
diagram for the module uart_tx, which has clr and clk inputs
each word which are used to synchronize the sending and
used to reset and synchronize communication. A byte of data
receiving units.
is input using tx_data[7:0]. When ready is asserted the byte of
When a word is given to the UART for
data is transmitted on the TxD output starting with the least
Asynchronous transmissions, a bit called the "Start Bit" is
significant bit first. After the transmission has completed, the
added to the beginning of each word that is to be transmitted.
transmit data ready pin, tdre, goes high.
The Start Bit is used to alert the receiver that a word of data is
about to be sent, and to force the clock in the receiver into
synchronization with the clock in the transmitter. These two
clocks must be accurate enough to not have the frequency drift
by more than 10% during the transmission of the remaining
bits in the word. (This requirement was set in the days of
mechanical tele-printers and is easily met by modern
electronic equipment.)
After the Start Bit, the individual bits of the word of
data are sent, with the Least Significant Bit (LSB) being sent
first. Each bit in the transmission is transmitted for exactly the
same amount of time as all of the other bits, and the receiver
“looks” at the wire at approximately halfway through the
period assigned to each bit to determine if the bit is a 1 or a 0. Figure 2.2 Block diagram of Transmitter module
For example, if it takes two seconds to send each bit, the
receiver will examine the signal to determine if it is a 1 or a 0 Transmission begins with the TxD line transitioning
after one second has passed, then it will wait two seconds and from high to low for one bit time. This leading bit is called the
then examine the value of the next bit, and so on. start bit. The bit time depends on the baud rate. Immediately
The sender does not know when the receiver has following the start bit, the first data bit, the least significant
“looked” at the value of the bit. The sender only knows when bit, transferred followed by the next, more significant bit until
the clock says to begin transmitting the next bit of the word. all eight bits of data have been transferred.
When the entire data word has been sent, the transmitter may
add a Parity Bit that the transmitter generates. The Parity Bit Each bit remains on the TxD line for one bit time. After
may be used by the receiver to perform simple error checking. the most significant bit has been transferred, TxD goes high
Then at least one Stop Bit is sent by the transmitter. for one bit time. This trailing bit is called the stop bit. The
When the receiver has received all of the bits in the state diagram for transmitting serial data is shown in Figure.
data word, it may check for the Parity Bits (both sender and 2.3
receiver must agree on whether a Parity Bit is to be used), and
then the receiver looks for a Stop Bit. If the Stop Bit does not
appear when it is supposed to, the UART considers the entire
PRINT_LCD(INPUT_PIN)
WRITE_DATA(INPUT_PIN)
STOP
http://www.doria.fi/bitstream/handle/10024/29686/nbnfi-
fe20071990.pdf?sequence=1
IV.FUTURE SCOPE
By using UART protocol we can communicate Mr. N.Subramanyam- He completed
between only two processors. Hence to avoid this limitation his Master of Technology in Electronics and communication
we have introduced Modus protocol to operate various devices Engineering from JNTUA in the year 2011 with specialization
at a time. in Embedded Systems. He has given guidance to many
REFERENCE students in their thesis work of M.Tech. He has also
[1] "Universal asynchronous receiver/transmitter", located on: contributed in the research work on Embedded Systems with
http://en.wikipedia.org/wiki/Universal_asynchronous_receiver his papers. He has four years teaching Experience and
/transmitter presently working as Asst. Professor in Priyadarshini Institute
of Technology,SPSR Nellore. He has done Bachelor's of
[2] "Developing Multifunctional Serial-Parallel Data Technology from ANNA University in the year 2009 in
Communication Interface for PC-Based Control System", Electronics and Communication Engineering
locatedon:http://journal.uii.ac.id/index.php/Snati/article/viewF
ile/1583/1358
[4] "Embedded Monitoring Server", located on: Mr. K.V.Goutham- He completed his
Master of Technology in Electronics and communication