Getting Started with Zephyr: Devicetree Overlays

Getting Started with Zephyr: Devicetree Overlays

Introduction In the previous two articles (Getting Started with Zephyr: Devicetrees and Getting Started with Zephyr: Devicetree Bindings), I demonstrated the “Devicetree” in the Zephyr Project real-time operating system. Through the Devicetree, we can describe the hardware in the system to the operating system. As mentioned in the first article, Zephyr supports many popular System-on-Chip … Read more

Getting Started with Zephyr: Kconfig

Getting Started with Zephyr: Kconfig

The first step in implementing embedded software is to enable specific peripherals, features, and subsystems. Some MCU vendors, such as STM32, Microchip, and TI, provide tools within their integrated development environments that allow developers to enable peripherals in their projects and add subsystems to the codebase. However, these tools are tightly coupled with the MCUs … Read more

Zigbee IoT Networking

Zigbee IoT Networking

The core and foundation of the Internet of Things (IoT) is the Internet itself. The IoT is an extension and expansion of networks based on the Internet. Among the IoT, the wireless sensor network based on massive data is one of the most representative networks, where the user end extends and expands to any item, … Read more

Differences Between MCU-LCD and RGB-LCD Screens

Differences Between MCU-LCD and RGB-LCD Screens

Follow+Star Public Account, don’t miss exciting content Source | Jishu Community There are many types of LCD screens we commonly use, with various interfaces. For example, some LCDs are directly driven by the processor, while others are modules with built-in driver ICs. Previously, I shared the differences between 8080 and 6800 interfaces in LCDs. Now, … Read more

Can RISC-V Architecture Enable True Independent IC Development in China?

Can RISC-V Architecture Enable True Independent IC Development in China?

The instruction set architectures from abroad are essentially licensed and paid for, making it difficult to achieve independent domestic development. If the country defines its own instruction set architecture, it would not hold much significance, as processor architectures must be universal and globally supported. Now, with RISC-V, this issue can be effectively addressed; “RISC-V may … Read more

Five Solutions for Level Conversion Between 5.5V and 3V in UART Communication

Five Solutions for Level Conversion Between 5.5V and 3V in UART Communication

In embedded systems, when communication is required between microcontrollers with different supply voltages, or between a microcontroller and peripheral chips operating at different voltages, level conversion is unavoidable. Otherwise, communication may fail, or the voltage may exceed the microcontroller’s tolerance, causing damage. Below are five mainstream level conversion solutions. 1. Resistor Divider Solution As shown … Read more

Using STM32 Simulated UART

Using STM32 Simulated UART

Source: https://blog.csdn.net/weixin_48426161 1. Add Header Files First, we need to add the corresponding header files. Since we are going to simulate the serial port, we need to understand the UART communication protocol. The UART communication method consists of 1 start bit, 8 data bits, an optional parity bit, and a stop bit. Therefore, we will … Read more

UART Serial Bus Protocol

UART Serial Bus Protocol

UART The serial port is asynchronous (does not transmit clock-related data). When two devices communicate using the serial port, they must first agree on a data transmission rate, and the clock frequencies of both devices must be close to this rate. A significant difference in clock frequency on either side will lead to data transmission … Read more

Using State Machines to Parse UART Variable-Length Protocol Frames

Using State Machines to Parse UART Variable-Length Protocol Frames

In communication design, considering the flexibility of protocols, they are often designed to be “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 frames, there will be a challenge — how to efficiently receive and parse them.To … Read more

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Understanding UART, I2C, and SPI Serial Bus Communication Principles

Click on the blue text above to follow us I2C, SPI, and UART are the three most commonly used serial communication protocols for embedded IoT terminals. This article briefly introduces the principles of UART, I2C, and SPI serial bus communication. For more detailed explanations, please see the following three articles. Understand I2C Bus Communication in … Read more