Uart-English Version
Uart-English Version
Team members :
Ganbat B. B201050617
1
Munkhtogtokh D. B201050624
02/11/2024 03:40:31 PM
Microcontrollers (digital devices) need to exchange
information with each other, with other devices, and
with computers. It uses data transfer protocols and
interfaces, and more specifically, the exchange of 8, 16,
32, 64 bit values of the binary number system in
accordance with the clock signal according to a certain
standard or without the need for a standard.
02/11/2024 03:40:32 PM
Data transmission is basically
divided into two categories, Serial
and Parallel data transmission, and
many digital devices use serial data
transmission.
02/11/2024 03:40:32 PM
3
02/11/2024 03:40:33 PM
4
Serial data transfer
Asynchronous Synchronous
• UART – Universal asynchronous • I2C, SPI
receiver transmitter (RS232, RS485,
USB, TTL) • 2 devices work synchronously by
connecting clock signals.
• Clock signals of 2 devices are not
connected • Since the receiving device does not
need to create a clock signal itself, there
Therefore, the receiving device needs to will be less transmission errors.
know when the data starts and ends, so it
is necessary to have Start bit and Stop bit • Transfer information quickly.
• Data will be transmitted a little slower.
02/11/2024 03:40:34 PM
6
UART
Data bit: Microcontrollers usually transmit 5-9 bits of data
Parity bit: In some cases, it is optional and is a bit to indicate even and odd values. In
other words, only even or odd values of the transmitted data are allowed.
BAUD RATE: In asynchronous data transmission, the speed of two devices is different,
so the concept of Baud Rate is used to receive and transmit data. This is a setting that sets
how many bits of data to read and send in 1 second. Therefore, the baud rate of the two
devices is set to be the same.
02/11/2024
03:40:34 PM
PACKAGE :
Start bit – Data byte – Parity bit – End bit