0% found this document useful (0 votes)
55 views10 pages

Uart-English Version

Microcontrollers and other digital devices need to exchange information and use various data transmission protocols and interfaces to do so. There are two main categories of data transmission: serial and parallel. Serial transmission is commonly used, with asynchronous protocols like UART using start and stop bits since clock signals are not connected, while synchronous protocols like I2C and SPI connect clock signals to reduce errors. Common serial interfaces like UART, SPI, and I2C are described in terms of data bits, parity, baud rate, and packaging of bits.

Uploaded by

bganbaa122
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views10 pages

Uart-English Version

Microcontrollers and other digital devices need to exchange information and use various data transmission protocols and interfaces to do so. There are two main categories of data transmission: serial and parallel. Serial transmission is commonly used, with asynchronous protocols like UART using start and stop bits since clock signals are not connected, while synchronous protocols like I2C and SPI connect clock signals to reduce errors. Common serial interfaces like UART, SPI, and I2C are described in terms of data bits, parity, baud rate, and packaging of bits.

Uploaded by

bganbaa122
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Data transmissions & interfacing techniques

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.

MSB – Most significant bit


LSB – Least significant bit

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.

FULL --- DUPLEX


HALF --- DUPLEX
02/11/2024 03:40:33 PM
UART (TTL, RS232) - RX
(Receiver), TX (Transmitter) 2 data
transmission legs.
• SPI – Master-Slave works on the
system
• I2C – SDA, SCL All information
passes through two legs.

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

Bit width = 1 / baud rate ( bits per second “bps”)


Width of bits transmitted per second
1/9600= 104.1 microseconds
The narrower the bit width, the greater the chance of loss .
02/11/2024 03:40:34 PM
8
Thank you for attention.
02/11/2024 03:40:35 PM
9
Source:
uart.com
interface.com
02/11/2024 03:40:35 PM
10

You might also like