Why Embedded Programming is Considered Complex?

Why Embedded Programming is Considered Complex?

I am Lao Wen, an embedded engineer who loves learning.Follow me, and let’s become better together! The first step is to look at embedded issues from the perspective of PC programming; the second step is to learn to think in embedded programming; the third step is to combine PC and embedded thinking and apply it … Read more

Renesas RA8 Series Tutorial | Methods to Run RTOS on RA8 Based on e2s

Renesas RA8 Series Tutorial | Methods to Run RTOS on RA8 Based on e2s

Following the previous article titled “Renesas RA8 Series Tutorial | Configuration of RA8 Serial Output Based on e2s“, today we will teach you how to quickly set up a FreeRTOS project.In the past, software tools were not as mature, and setting up a FreeRTOS project required manual porting step by step. Many users complained that … Read more

MQTT + UART = Remote Debugging?

MQTT + UART = Remote Debugging?

In previous articles, we introduced MQTT and UART. So what do we get when we combine them? As engineers, we often encounter the following scenario: on-site, we need to connect a computer to a PLC or control device via a serial port, and the PC reads or writes data to the on-site device using a … Read more

Realistic Animation Demonstrating the Communication Processes of I2C, SPI, and UART

So far, protocols such as I2C, SPI, and UART remain the most commonly used communication protocols in electronic embedded devices. In this article, we will analyze these three protocols to provide a clear and intuitive understanding of their functions, advantages, and limitations, supplemented with GIF animations. I2C Protocol I2C is a serial communication protocol typically … Read more

The Most Suitable Communication Protocol for Microcontrollers: How to Design It?

The Most Suitable Communication Protocol for Microcontrollers: How to Design It?

In communication design, considering the flexibility of the protocol often leads to designing protocols as “variable length”. An example is shown in the figure below: the communication protocol frame of the Ruimi LoRa terminal. If a system receives the above “variable length” protocol frame, there will be a challenge—how to efficiently receive and parse it. … Read more

Embedded – UART-Based Communication Protocols

Embedded - UART-Based Communication Protocols

The following is an introduction to common communication protocols based on the UART bus: 1. Modbus Protocol (RTU Mode) •Introduction:Modbus is a widely used master-slave communication protocol in industrial control, divided into RTU (Remote Terminal Unit) and ASCII modes, with RTU mode being the most commonly used version of UART. •Features: ◦Binary Transmission:Data is packed … Read more

Detailed Explanation of UART Project – 08 Simulation Framework

Detailed Explanation of UART Project - 08 Simulation Framework

Click to follow the above “Two Monkey Society“ Set as “Top or Star“, and the valuable content will be delivered first. IC Monkey | Two Monkey Society Introduction The previous articles have covered the design part, and this article will analyze the simulation part of the code. This article mainly explains the overall simulation method … Read more

Principles, Differences, and Connections of the Three Major Embedded Protocols: UART, SPI, and I²C

Principles, Differences, and Connections of the Three Major Embedded Protocols: UART, SPI, and I²C

1. UART (Universal Asynchronous Receiver/Transmitter) The host and slave must connect at least three wires: RX, TX, and GND. TX is used for sending data, while RX is for receiving data (the transmission and reception are not on the same line, hence it is full-duplex). Basic Characteristics: Asynchronous Communication: No shared clock signal, relies on … Read more

Digital Power Software Interview: How to Answer Questions About the I2C Protocol in Microcontrollers?

Digital Power Software Interview: How to Answer Questions About the I2C Protocol in Microcontrollers?

Digital power modules utilize various communication protocols such as I2C, SPI, CAN, UART, etc., as well as interaction protocols based on these, such as CANopen, SAE 1939, SMbus, PMbus, Modbus, etc. This article simulates a Q&A session regarding I2C communication knowledge. Question 1: What are the components of I2C communication, and what are their functions? … Read more

FreeMaster – A Powerful Debugging Tool for MCUs

FreeMaster - A Powerful Debugging Tool for MCUs

What is FreeMaster FreeMaster is a data visualization debugging software developed by NXP, provided free of charge to users. Its main function is to provide a data visualization interface on a PC, displaying data variables from the MCU through communication interfaces such as SWD, UART, and CAN. When using the J-Link debugging tool for connection, … Read more