Serial Communication and UART
Serial Communication and UART
COMMUNICATION
SERIAL
COMMUNICATION
COMMUNICATION
INTRODUCTION
• Computer Peripherals
Devices like keyboards, mice, and printers interfacing with computers.
• Industrial Automation
Control systems managing machinery and processes.
• Consumer Electronics
Devices like GPS modules, Bluetooth adapters, and display screens.
UNIVERSAL
ASYNCHRONOUS
UART
RECIEVER
TRANSMITTER
UNIVERSAL ASYNCHRONOUS RECEIVER-
TRANSMITTER (UART)
The absence of a shared clock requires both devices to agree on a common baud
rate (data transmission speed) to ensure proper data interpretation.
HOW UART WORKS
UART FRAME STRUCTURE
• Start Bit
Indicates the beginning of a data frame by transitioning from a high to a low
voltage level.
• Data Bits
Typically 5 to 9 bits representing the actual data being transmitted.
• Parity Bit (Optional)
Used for error detection; can be even or odd parity.
• Stop Bit(s)
One or two bits indicating the end of the data frame, transitioning back to a high
voltage level.
ADVANTAGES
• Simplicity
Requires only two wires (transmit and receive) for full-duplex communication.
• Asynchronous Communication
No need for a shared clock signal between devices.
• Error Detection
Optional parity bit allows for basic error checking
• Widely Supported
Commonly integrated into microcontrollers and supported by various devices.
LIMITATIONS OF UART
• Limited Distance
Effective communication is typically limited to short distances.
• Speed Constraints
Generally slower compared to synchronous communication protocols.