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.▲ Debugging MCU via UART on PC▲ 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:▲ SPI Data Transmission (1)▲ SPI Data Transmission (2)▲ 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.▲ 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).▲ Infrared control signal is also a serial communication signal▲ Infrared signal receiving and amplifying shaping circuit▲ 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.▲ Serial input, parallel output shift register▲ Shift register composed of eight D registers▲ Schematic of serial transmission
6
Others
Here are some other principles of serial transmission (waveforms):▲ PWM control of LED brightness▲ PWM control of LED brightness▲ Amplitude and frequency modulated signals▲ Phase modulated signal▲ Square wave edge jitter waveformENDEvaluation Center Free Application