Implementation of Serial Communication U
Implementation of Serial Communication U
Abstract:- Today in real world the actual applications, usually needed only a few key features of UART. Specific interface chip will cause
waste of resources and increased cost. Particularly in the field of electronic design, SOC technology is recently becoming increasingly
mature. This situation results in the requirement of realizing the whole system function in a single or a very few chips. Universal
Asynchronous Receiver Transmitter (UART) is a kind of serial communication protocol. In parallel communication the cost as well as
complexity of the system increases due to simultaneous transmission of data bits on multiple wires. Serial communication alleviates this
drawback of parallel communication and emerges effectively in many applications for long distance communication as it reduces the signal
distortion because of its simple structure. The UART implemented with VHDL language can be integrated into the FPGA to achieve
compact, stable and reliable data transmission. This paper presents implementation of Multi UART with configurable baud rate. Also we
can verify the output using LED’s on Altera’s DE1 board.
Keywords:- UART; Asynchronous serial communication; VHDL; Quartus II; simulation, Altera DE1 Cyclone II board.
_____________________________________________________*****______________________________________________________
263
IJRITCC | APR 2013, Available @ http://www.ijritcc.org
________________________________________________________________________________
International Journal on Recent and Innovation Trends in Computing and Communication
264
IJRITCC | APR 2013, Available @ http://www.ijritcc.org
________________________________________________________________________________
International Journal on Recent and Innovation Trends in Computing and Communication
B. Receiver Module
During the UART reception, the serial data and the
receiving clock are asynchronous, so it is very important to
correctly determine the start bit of a frame data. The receiver
module receives data from RXD pin. RXD jumps into logic 0
from logic 1 can be regarded as the beginning of a data frame.
When the UART receiver module is reset, it has been waiting
the RXD level to jump. As we know, the ideal time for
sampling is at the middle point of each serial data bit. Hence,
RXD low level lasts at least half of receiving clock cycles is
considered start bit arrives. Once the start bit been identified,
Fig 3. UART Module from the next bit, begin to count the rising edge of the baud
clock, and sample RXD when counting. Each sampled value
A. Baud Rate Generator of the logic level is deposited in the register
Baud Rate Generator is actually a kind of frequency parallel_data_signal [7, 0] by order. When the count equals
divider. The baud rate frequency factor can be calculated 10, all the data bits are surely received, also the 10 serial bits
according to a given system clock frequency and the required are converted into a byte parallel data and deposited in the
baud rate. The calculated baud rate frequency factor is used as resister parallel_data.
the divider factor.
265
IJRITCC | APR 2013, Available @ http://www.ijritcc.org
________________________________________________________________________________
International Journal on Recent and Innovation Trends in Computing and Communication
Since, the baud rate is 9600 bps, we have to select switch „s0‟
as “1” & „s1‟ as “0” which specified that the selected baud
rate on Altera DE1 is 9600 bps which means that both baud
rate are synchronized. The input data send by USART hyper
Fig 6. Simulation Result terminal of micro C AVR software is „A‟ which as a binary
value of 8 bit „01000001‟. The corresponding output is shown
on FPGA board using respected LED‟s with start bit and stop
VI. RESULTS: bit. The output for data is shown in following figure.
The synthesis is done with Quartus II. After synthesis, code is Considering second input shown below. Here the
burn on Altera‟s DE1 Cyclone II FPGA: EPC215AF484C7 selected baud rate is 19200 bps to send data „B‟.
board. In this design instead of using PC hyper terminal,
USART hyper terminal of micro C AVR software is used, for
any key board character transmission and reception.
Considering first input shown below. Here the selected baud
rate is 9600 bps to send data „A‟.
267
IJRITCC | APR 2013, Available @ http://www.ijritcc.org
________________________________________________________________________________
International Journal on Recent and Innovation Trends in Computing and Communication
and stop bit. The output for data is shown in following figur
VII. CONCLUSION:
VIII. ACKNOWLEDGMENT:
268
IJRITCC | APR 2013, Available @ http://www.ijritcc.org
________________________________________________________________________________