SlideShare a Scribd company logo
1 of 16
Download to read offline
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 1
UART(Universal Asynchronous Receiver Transmitter)
Video Lecture Link Part#01
Video Lecture Link Part#02
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 2
UART(Universal Asynchronous Receiver Transmitter)
• A Universal Asynchronous Receiver and Transmitter (UART) is a Digital Circuit that sends Parallel Data
through a Serial Line.
• Main purpose of UART is to Transmit and Receive Serial Data.
• Two UARTs Communicate Directly in UART Communication System.
• UART Transmits data Asynchronously, which means there is no Clock signal to synchronize the output bits
from the transmitting UART to the Sampling of bits by the receiving UART
UART Key Points:
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 3
UART(Universal Asynchronous Receiver Transmitter)
UART #1 UART #2
Tx
Data Bus[7:0] Data Bus[7:0]
Rx Rx
Tx
Figure #01: UART System
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 4
UART(Universal Asynchronous Receiver Transmitter)
• Transmitting UART converts the received parallel data (eg. from CPU, Memory) into serial form.
• The UART Transmitter adds START and STOP bits to the Data Packets being transferred.
• The Data Packet is then Serially Transferred to Receiving UART
• These bits defines the Start and Stop of the Data Packet, So the receiving UART knows when to sample the
Data or Start reading the bits
• When the receiving UART detects a Start bit, it starts to read the incoming bits at a specific frequency known
as the Baud Rate.
• The receiving device then removes the START bit, Parity bit and Stop bit, and converts the serial data into
parallel form (which can be read by CPU)
• Baud Rate is the measure of the speed of the data transferred, expressed in Bits Per Second (BPS).
• Both Tx and Rx UART should operate at about the same baud rate
• Only One Master and One Slave device can participate in UART Serial Communication.
UART Operating Principle:
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 5
UART(Universal Asynchronous Receiver Transmitter)
1 Start
Bit
5 to 8 Data Bits
0 or 1
Parity
Bit
1 or 2 Stop Bits
Each UART Packet Contains 1 START bit, 5 to 8 DATA bits (depending on the UART), an optional
PARITY bit and 1 or 2 STOP bits.
Figure #2: UART Data Frame
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 6
UART(Universal Asynchronous Receiver Transmitter)
In UART, the Data Frame is considered as a combination of four basic components namely
1) START Bit: High to low-level voltage change represents the start of data transmission
2) INPUT Data: Data stored in the form of bits
3) PARITY Bit: It is used to evaluate the fault in received data
4) STOP Bit: Terminates data transfer
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 7
UART(Universal Asynchronous Receiver Transmitter)
Advantages of UART Communication:
1) Fewer Signals (2)
2) No Clock Signals
3) Error Detection Using Parity Bit
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 8
UART(Universal Asynchronous Receiver Transmitter)
Dis-advantages of UART Communication:
1) Serial Communication (Less Throughput)
2) Data Limit (Limited Data Frame)
3) Only One Master and Slave Device is Supported
4) Both End Should have Similar Data Transfer Setting
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 9
UART(Universal Asynchronous Receiver Transmitter)
8 Data Bits
11 Bits Data Frame
VLSI Excellence
Figure #3: UART Data Frame Format
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 10
UART(Universal Asynchronous Receiver Transmitter)
Figure #04: UART Tx Block Diagram
UART Tx
Controller
Baud Rate
Generator
txClk
Data
tx_ready
Clock
Reset
tx_data
tx_done
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 11
UART(Universal Asynchronous Receiver Transmitter)
Idle
Stop
Data
Start
bit_index < 7
reset_n
tx_ready
Figure #05: UART Tx FSM
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 12
UART(Universal Asynchronous Receiver Transmitter)
Figure #06: UART Rx Block Diagram
UART Rx
Controller
Baud Rate
Generator
rxClk
Data
Clock
Reset
rx_data
rx_done
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 13
UART(Universal Asynchronous Receiver Transmitter)
Idle
Stop
Data
Start
bit_index < 7
reset_n
i_rx_data == 0
Figure #07: UART Rx FSM
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 14
UART(Universal Asynchronous Receiver Transmitter)
Oversampling:
The receiver of the UART peripheral implements different user-configurable oversampling techniques for data
recovery by discriminating between the valid incoming data and noise.
the oversampling technique talks about the sampling frequency of the UART peripheral’s receive
engine to recover the data coming on the Rx line of the UART.
youtube.com/@vlsiexcellence
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 15
UART(Universal Asynchronous Receiver Transmitter)
The oversampling scheme works as follows: (16x Oversampling)
1) Wait until the incoming signal becomes 0, the beginning of the start bit, and then start the sampling tick
counter.
2) When the counter reaches 7, the incoming signal reaches the middle point of the start bit. Clear the counter to
0 and restart.
3) When the counter reaches 15, the incoming signal progresses for one bit and reaches the middle of the first
data bit. Retrieve its value, shift it into a register, and restart the counter.
4) Repeat step 3, to retrieve the remaining data bits.
5) If the optional parity bit is used, repeat step 3 one time to obtain the parity bit.
6) Repeat step 3, to obtain the stop bits.
youtube.com/@vlsiexcellence
Best Free VLSI Content
1. Verilog HDL Crash Course – Link
2. Static Timing Analysis (STA) – Theory Concepts – Link
3. Static Timing Analysis (STA) – Practice/Interview Questions – Link
4. Low Power VLSI Design – Theory Concepts – Link
5. Low Power VLSI Design (LPVLSI) – Practice/Interview Questions – Link
6. Digital ASIC Design Verilog Projects – Link
20-01-2023 VLSI Excellence - Gyan Chand Dhaka 16
Please Like, Comment, Share & Subscribe My Channel in Order to Reach Out the Content to a Larger Audience.
Thanks !!

More Related Content

Similar to UART_Tx_Rx_Conroller_Design_in_Verilog__1674535724.pdf

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
 
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
 
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
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart socSatyam Sharma
 
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
 
Unit 3 devices&amp;buses
Unit 3 devices&amp;busesUnit 3 devices&amp;buses
Unit 3 devices&amp;busesPavithra S
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreAneesh Raveendran
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandotascmandota
 
io orgnz.ppt
io orgnz.pptio orgnz.ppt
io orgnz.pptVetriM4
 
Design and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMDesign and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMIRJET Journal
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home AutomationApoorv Gupta
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvmeSAT Publishing House
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptxSKUP1
 

Similar to UART_Tx_Rx_Conroller_Design_in_Verilog__1674535724.pdf (20)

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
 
ES UNIT3.pptx
ES UNIT3.pptxES UNIT3.pptx
ES UNIT3.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
 
Uart
UartUart
Uart
 
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
 
NAVEEN UART BATCH 43
NAVEEN UART BATCH 43NAVEEN UART BATCH 43
NAVEEN UART BATCH 43
 
Serial Communication Uart soc
Serial Communication  Uart socSerial Communication  Uart soc
Serial Communication Uart soc
 
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...
 
Unit 3 devices&amp;buses
Unit 3 devices&amp;busesUnit 3 devices&amp;buses
Unit 3 devices&amp;buses
 
Ec8791 lpc2148 uart
Ec8791 lpc2148 uartEc8791 lpc2148 uart
Ec8791 lpc2148 uart
 
Universal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP coreUniversal Asynchronous Receive and transmit IP core
Universal Asynchronous Receive and transmit IP core
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
io orgnz.ppt
io orgnz.pptio orgnz.ppt
io orgnz.ppt
 
Design and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVMDesign and Verification of the UART and SPI protocol using UVM
Design and Verification of the UART and SPI protocol using UVM
 
Bluetooth Home Automation
Bluetooth Home AutomationBluetooth Home Automation
Bluetooth Home Automation
 
Verification of uart ip core using uvm
Verification of uart ip core using uvmVerification of uart ip core using uvm
Verification of uart ip core using uvm
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 a basic
8251 a basic8251 a basic
8251 a basic
 
serial_busses_i2c.pptx
serial_busses_i2c.pptxserial_busses_i2c.pptx
serial_busses_i2c.pptx
 
UART
UARTUART
UART
 

Recently uploaded

SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxjanettecruzeiro1
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation decktbatkhuu1
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...Call Girls in Nagpur High Profile
 
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre GurgaonCheap Rate ➥8448380779 ▻Call Girls In Huda City Centre Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre GurgaonDelhi Call girls
 
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️soniya singh
 
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Call girls in Ahmedabad High profile
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girlsmodelanjalisharma4
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsCharles Obaleagbon
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...home
 
Presentation.pptx about blender what is blender
Presentation.pptx about blender what is blenderPresentation.pptx about blender what is blender
Presentation.pptx about blender what is blenderUbaidurrehman997675
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130Suhani Kapoor
 
The history of music videos a level presentation
The history of music videos a level presentationThe history of music videos a level presentation
The history of music videos a level presentationamedia6
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfAmirYakdi
 
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...Suhani Kapoor
 
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightCheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightDelhi Call girls
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpmainac1
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightDelhi Call girls
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

SD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptxSD_The MATATAG Curriculum Training Design.pptx
SD_The MATATAG Curriculum Training Design.pptx
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
 
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...Booking open Available Pune Call Girls Nanded City  6297143586 Call Hot India...
Booking open Available Pune Call Girls Nanded City 6297143586 Call Hot India...
 
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre GurgaonCheap Rate ➥8448380779 ▻Call Girls In Huda City Centre Gurgaon
Cheap Rate ➥8448380779 ▻Call Girls In Huda City Centre Gurgaon
 
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
VIP Call Girls Service Kukatpally Hyderabad Call +91-8250192130
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
 
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
Night 7k to 12k Call Girl Price Ahmedabad 👉 BOOK NOW 8617697112 👈 ♀️ night gi...
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
 
WAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past QuestionsWAEC Carpentry and Joinery Past Questions
WAEC Carpentry and Joinery Past Questions
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
escort service sasti (*~Call Girls in Prasad Nagar Metro❤️9953056974
 
Presentation.pptx about blender what is blender
Presentation.pptx about blender what is blenderPresentation.pptx about blender what is blender
Presentation.pptx about blender what is blender
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
 
The history of music videos a level presentation
The history of music videos a level presentationThe history of music videos a level presentation
The history of music videos a level presentation
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
 
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
VIP College Call Girls Gorakhpur Bhavna 8250192130 Independent Escort Service...
 
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 nightCheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
Cheap Rate Call girls Malviya Nagar 9205541914 shot 1500 night
 
Kindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUpKindergarten Assessment Questions Via LessonUp
Kindergarten Assessment Questions Via LessonUp
 
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 nightCheap Rate Call girls Kalkaji 9205541914 shot 1500 night
Cheap Rate Call girls Kalkaji 9205541914 shot 1500 night
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
 

UART_Tx_Rx_Conroller_Design_in_Verilog__1674535724.pdf

  • 1. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 1 UART(Universal Asynchronous Receiver Transmitter) Video Lecture Link Part#01 Video Lecture Link Part#02
  • 2. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 2 UART(Universal Asynchronous Receiver Transmitter) • A Universal Asynchronous Receiver and Transmitter (UART) is a Digital Circuit that sends Parallel Data through a Serial Line. • Main purpose of UART is to Transmit and Receive Serial Data. • Two UARTs Communicate Directly in UART Communication System. • UART Transmits data Asynchronously, which means there is no Clock signal to synchronize the output bits from the transmitting UART to the Sampling of bits by the receiving UART UART Key Points:
  • 3. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 3 UART(Universal Asynchronous Receiver Transmitter) UART #1 UART #2 Tx Data Bus[7:0] Data Bus[7:0] Rx Rx Tx Figure #01: UART System
  • 4. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 4 UART(Universal Asynchronous Receiver Transmitter) • Transmitting UART converts the received parallel data (eg. from CPU, Memory) into serial form. • The UART Transmitter adds START and STOP bits to the Data Packets being transferred. • The Data Packet is then Serially Transferred to Receiving UART • These bits defines the Start and Stop of the Data Packet, So the receiving UART knows when to sample the Data or Start reading the bits • When the receiving UART detects a Start bit, it starts to read the incoming bits at a specific frequency known as the Baud Rate. • The receiving device then removes the START bit, Parity bit and Stop bit, and converts the serial data into parallel form (which can be read by CPU) • Baud Rate is the measure of the speed of the data transferred, expressed in Bits Per Second (BPS). • Both Tx and Rx UART should operate at about the same baud rate • Only One Master and One Slave device can participate in UART Serial Communication. UART Operating Principle:
  • 5. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 5 UART(Universal Asynchronous Receiver Transmitter) 1 Start Bit 5 to 8 Data Bits 0 or 1 Parity Bit 1 or 2 Stop Bits Each UART Packet Contains 1 START bit, 5 to 8 DATA bits (depending on the UART), an optional PARITY bit and 1 or 2 STOP bits. Figure #2: UART Data Frame
  • 6. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 6 UART(Universal Asynchronous Receiver Transmitter) In UART, the Data Frame is considered as a combination of four basic components namely 1) START Bit: High to low-level voltage change represents the start of data transmission 2) INPUT Data: Data stored in the form of bits 3) PARITY Bit: It is used to evaluate the fault in received data 4) STOP Bit: Terminates data transfer
  • 7. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 7 UART(Universal Asynchronous Receiver Transmitter) Advantages of UART Communication: 1) Fewer Signals (2) 2) No Clock Signals 3) Error Detection Using Parity Bit
  • 8. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 8 UART(Universal Asynchronous Receiver Transmitter) Dis-advantages of UART Communication: 1) Serial Communication (Less Throughput) 2) Data Limit (Limited Data Frame) 3) Only One Master and Slave Device is Supported 4) Both End Should have Similar Data Transfer Setting
  • 9. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 9 UART(Universal Asynchronous Receiver Transmitter) 8 Data Bits 11 Bits Data Frame VLSI Excellence Figure #3: UART Data Frame Format
  • 10. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 10 UART(Universal Asynchronous Receiver Transmitter) Figure #04: UART Tx Block Diagram UART Tx Controller Baud Rate Generator txClk Data tx_ready Clock Reset tx_data tx_done
  • 11. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 11 UART(Universal Asynchronous Receiver Transmitter) Idle Stop Data Start bit_index < 7 reset_n tx_ready Figure #05: UART Tx FSM
  • 12. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 12 UART(Universal Asynchronous Receiver Transmitter) Figure #06: UART Rx Block Diagram UART Rx Controller Baud Rate Generator rxClk Data Clock Reset rx_data rx_done
  • 13. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 13 UART(Universal Asynchronous Receiver Transmitter) Idle Stop Data Start bit_index < 7 reset_n i_rx_data == 0 Figure #07: UART Rx FSM
  • 14. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 14 UART(Universal Asynchronous Receiver Transmitter) Oversampling: The receiver of the UART peripheral implements different user-configurable oversampling techniques for data recovery by discriminating between the valid incoming data and noise. the oversampling technique talks about the sampling frequency of the UART peripheral’s receive engine to recover the data coming on the Rx line of the UART.
  • 15. youtube.com/@vlsiexcellence 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 15 UART(Universal Asynchronous Receiver Transmitter) The oversampling scheme works as follows: (16x Oversampling) 1) Wait until the incoming signal becomes 0, the beginning of the start bit, and then start the sampling tick counter. 2) When the counter reaches 7, the incoming signal reaches the middle point of the start bit. Clear the counter to 0 and restart. 3) When the counter reaches 15, the incoming signal progresses for one bit and reaches the middle of the first data bit. Retrieve its value, shift it into a register, and restart the counter. 4) Repeat step 3, to retrieve the remaining data bits. 5) If the optional parity bit is used, repeat step 3 one time to obtain the parity bit. 6) Repeat step 3, to obtain the stop bits.
  • 16. youtube.com/@vlsiexcellence Best Free VLSI Content 1. Verilog HDL Crash Course – Link 2. Static Timing Analysis (STA) – Theory Concepts – Link 3. Static Timing Analysis (STA) – Practice/Interview Questions – Link 4. Low Power VLSI Design – Theory Concepts – Link 5. Low Power VLSI Design (LPVLSI) – Practice/Interview Questions – Link 6. Digital ASIC Design Verilog Projects – Link 20-01-2023 VLSI Excellence - Gyan Chand Dhaka 16 Please Like, Comment, Share & Subscribe My Channel in Order to Reach Out the Content to a Larger Audience. Thanks !!