Home | Projects | Notes > MCU Peripheral Drivers > Introduction to USART/UART

Introduction to USART/UART

 

USART vs. UART

 

USART Hardware Components

 

Unaderstanding USART Pins and Communication

 

usart-pins

 

USART Pins

USART Communication Mechanism

 

USART Frame Format

 

usart-word-length-programming

 

 

USART Baudrate

 

USART Synchronization Bits

 

usart-synchronization-bits

 

 

USART Parity Bits

 

USART Functional Block

 

usart-block-diagram

 

 

USART Peripheral Clock

 

USART Transmitter & Receiver

Transmitter

Receiver

 

usart-receiver-timing-diagram-1

usart-receiver-timing-diagram-2

 

 

USART Oversampling

 

USART Baudrate Calculation

Tx/Rx baud=fCK16×USARTDV,when OVER8 bit is set to 0

Example 1

Example 2

 

USART Communication with PC

 

usart-communication-with-pc

 

 

USART Interrupts

usart-interrupt-requests

 

 

usart-interrupt-mapping-diagram