Understanding Embedded Communication Protocols Made Simple

UART, SPI, and I2C are very common serial communication methods in embedded development. The underlying communication principles are not difficult, but many beginners struggle to learn them.

Today, I will share some common underlying data transmission principles.

1

UART Serial Communication

UART:Universal Asynchronous Receiver/Transmitter. The UART serial port is the most common type of serial communication. Below is an animation of the serial port connection to a host computer and the RS232 application.
Understanding Embedded Communication Protocols Made Simple
▲ Debugging MCU via UART on PC
Understanding Embedded Communication Protocols Made Simple
▲ RS-232 communicates with MCU via level conversion chip

2

SPI Serial Communication

SPI:Serial Peripheral Interface. SPI is a common serial synchronous communication protocol with a wide range of applications.
Below is the timing diagram for SPI data transmission:
Understanding Embedded Communication Protocols Made Simple
▲ SPI Data Transmission (1)
Understanding Embedded Communication Protocols Made Simple
▲ SPI Data Transmission (2)
Understanding Embedded Communication Protocols Made Simple
▲ SPI Timing Signals

3

I²C Communication

I²C:Inter-Integrated Circuit, literally means between integrated circuits, is the abbreviation for I²C Bus. I²C mainly distinguishes slave devices by address, and its communication principle is relatively simple.
Understanding Embedded Communication Protocols Made Simple
▲ I2C Bus and Addressing Method

4

Infrared Remote Control

Infrared remote controls are quite common in our daily lives, as most household remote controls are infrared. Infrared remote control communicates by controlling pulse width (the time of high and low levels), establishing a communication link through infrared wireless signals (it cannot work if blocked, but can be reflected).
Understanding Embedded Communication Protocols Made Simple
▲ Infrared control signal is also a serial communication signal
Understanding Embedded Communication Protocols Made Simple
▲ Infrared signal receiving and amplifying shaping circuit
Understanding Embedded Communication Protocols Made Simple
▲ A circuit using infrared receiver phototransistor to control a relay for fish feeding

5

Serial to Parallel Conversion Circuit

Serial to parallel conversion refers to converting serial data into parallel data, controlled by a clock to transmit serial data one bit at a time, forming a complete (8 bits) parallel data. There are many ready-made chips for this type of converter, and the principle is straightforward.
Understanding Embedded Communication Protocols Made Simple
▲ Serial input, parallel output shift register
Understanding Embedded Communication Protocols Made Simple
▲ Shift register composed of eight D registers
Understanding Embedded Communication Protocols Made Simple
▲ Schematic of serial transmission

6

Others

Here are some other principles of serial transmission (waveforms):
Understanding Embedded Communication Protocols Made Simple
▲ PWM control of LED brightness
Understanding Embedded Communication Protocols Made Simple
▲ PWM control of LED brightness
Understanding Embedded Communication Protocols Made Simple
▲ Amplitude and frequency modulated signals
Understanding Embedded Communication Protocols Made Simple
▲ Phase modulated signal
Understanding Embedded Communication Protocols Made Simple
▲ Square wave edge jitter waveform
END
Evaluation Center Free Application

Understanding Embedded Communication Protocols Made Simple

Understanding Embedded Communication Protocols Made Simple👆Long press the image to scan the code to apply👆

Leave a Comment

×