How to Swap UART Rx and Tx Pins and Invert Levels

How to Swap UART Rx and Tx Pins and Invert Levels

Follow+Star Public Account, don’t miss wonderful content Source | AI Electronics Today I will share with you some features of UART in STM32, mainly targeting newer series of STM32 (such as: STM32H7, G0, G4, etc.), which allows changes to the Rx and Tx pins, level inversion, high-low order, and introduces timeout, etc. Embedded Column 1 … Read more

A Deep Dive Into UART, I2C, SPI, and 1-Wire Communication Interfaces

A Deep Dive Into UART, I2C, SPI, and 1-Wire Communication Interfaces

1. UART: The Art of Asynchronous Communication As Qiu Qianzhang from “The Legend of the Condor Heroes” said, UART is like my lightness kung fu, gliding over the water. If you want to cross the river (communicate), you need to set up markers in advance, and your steps should be fixed according to the distance … Read more

How printf() Works with UART Peripheral Driver Functions

How printf() Works with UART Peripheral Driver Functions

Today, I will share with you the hardware UART peripheral debugging output mechanism under IAR. In the embedded world, outputting print information is a very common auxiliary debugging method. With the help of print information, we can easily locate and analyze program issues. There are many ways to implement print information output in embedded application … Read more

Open Source Debugging Tool: High-Speed USB to UART, SPI, I2C, JTAG

Open Source Debugging Tool: High-Speed USB to UART, SPI, I2C, JTAG

In the previous article on dynamic library encapsulation examples, a CH347 high-speed USB to UART, SPI, I2C, JTAG bridging module was used, which is now open source 👉 GitHub Repository[1]. Introduction CH347 USB High Speed Bridge is a debugging tool designed based on the CH347[2] chip, supporting high-speed USB, allowing USB to UART, USB to … Read more

Why Do We Prefer Serial Communication? Exploring RS485, SPI, and I2C

Why Do We Prefer Serial Communication? Exploring RS485, SPI, and I2C

Click the card above to follow for more information 1. Why Do We Prefer Serial Communication? When working on microcontroller products, the most commonly used method is serial communication. For any microcontroller peripherals, those with serial port functionality are prioritized, such as Bluetooth modules, WIFI modules, 4G modules, electric meters, and displays. Why do we … Read more

SGM832: 36V, 16-Bit Current, Voltage, Power Monitoring Chip

SGM832: 36V, 16-Bit Current, Voltage, Power Monitoring Chip

Keywords: Power Monitoring; I2C and SMBus Compatible; Alarm Function SG Micro Corp has launched the SGM832 monitoring chip, which can be used for monitoring voltage, current, and power in power supply systems. The chip is compatible with I2C and SMBus interfaces and can simultaneously monitor differential voltage and bus power voltage. The chip integrates flexible … Read more

H7-Tool 2.24 Release: SVD Parsing, RTOS Trace, I2C/SPI Slave, and More

H7-Tool 2.24 Release: SVD Parsing, RTOS Trace, I2C/SPI Slave, and More

1PC Software 2.2.4 Update 1. Offline Programming Function Upgrade— Added GD32C10x Series— Added Juchuang HT502x— Added Infineon TLE987x Series— Added NXP S32K1xx Series— Added APM32E103 Series— Added GD32F427RE Series— Fixed PY32F002 Flash Capacity— Fixed New唐 M480 Series, Option Word Read Protection Bug.— Fixed STM32H723 Series Flash Capacity— Fixed PUYA Serial Flash P25Qxxx Series Unlock Command— … Read more

Recommended Domestic I2C Isolator to Replace ISO1540

Recommended Domestic I2C Isolator to Replace ISO1540

Introduction I2C bus is a two-wire, bidirectional serial bus, particularly suitable for communication between ICs on or between boards. To meet system safety specifications, avoid noise signal interference during communication, and prevent damage to sensitive components, it is necessary to incorporate I2C isolator devices into the system. Today, I would like to recommend a domestic … Read more

Microcontroller Communication Protocols: UART, SPI, I2C

Microcontroller Communication Protocols: UART, SPI, I2C

Today, let’s talk about the topic of microcontroller communication protocols. When microcontrollers interact with peripherals, there needs to be a common language, right? That’s what communication protocols are for! We will focus on three common protocols: UART, SPI, and I2C, and see how they allow devices to communicate with each other. UART: The Simplest Serial … Read more