Common Pitfalls for ESP32 Beginners

Common Pitfalls for ESP32 Beginners

When I was developing products, I used to scoff at the ESP32, thinking it was just a toy, lacking reliability, ease of use, and anti-interference capabilities for actual products. However, later on, when some of Xiaomi’s smart home products began to adopt it in large quantities, my perspective changed slightly. Nevertheless, I still wouldn’t use … Read more

Application Note for UJA1168 Type SBC in Autosar Complex Device Drivers

Application Note for UJA1168 Type SBC in Autosar Complex Device Drivers

The UJA1168 is a micro System Basic Chip (SBC) launched by NXP, available in multiple models, suitable for automotive ECU design. The main functions of this chip include: CAN Transceiver Supports CAN 2.0 (1 Mbps) and CanFd (2 Mbps) Some models support “FD-passive” mode Low Power and Partial Network Management Supports Standby mode and Sleep … Read more

Detailed Explanation of the SPI Protocol

Detailed Explanation of the SPI Protocol

Introduction to the SPI Protocol SPI is the Serial Peripheral Interface. It is a synchronous serial interface technology introduced by Motorola, characterized by high speed and full-duplex synchronous communication, capable of operating at frequencies exceeding hundreds of MHz. Typically, SPI requires four lines (for duplex communication), but it can also operate with three lines (for … Read more

User Evaluation (Part 6): NXP FRDM-MCXN947 FLEXIO_SPI Driver for TFT LCD

User Evaluation (Part 6): NXP FRDM-MCXN947 FLEXIO_SPI Driver for TFT LCD

Introduction The NXP “FRDM-MCXN947” evaluation activity is co-hosted by Avnet and Eefocus. This content is published by Eefocus users and has been authorized for reproduction. The original article can be viewed in the Eefocus engineer community. TFT LCD Module Introduction The module is named SPI_Module_MSP3323, with a driver chip of ILI9341, and a screen size … Read more

Using the CW32 Module: 1.28-Inch Round LCD Color Display

Using the CW32 Module: 1.28-Inch Round LCD Color Display

1Module Source>>> Product Physical Display: Data Download Link:https://pan.baidu.com/s/1lSjp7ISiKhkaXwqJsEOu2g Data Extraction Code:8888 2Specifications>>> The following information can be found in the manufacturer’s screen specification document. Operating Voltage:3.3V Operating Current:20mA Module Size:44(H) x 36(V) x 2.8(D) MM Pixel Pitch:0.135(H) x 0.135(V) Driver Chip:GC9A01 Communication Protocol:SPI 3Porting Process>>> Our goal is to port the routine to the Lichuang … Read more

STM32 SPI Interface Tutorial: Achieving Efficient and Stable Data Transmission

STM32 SPI Interface Tutorial: Achieving Efficient and Stable Data Transmission

The SPI (Serial Peripheral Interface) is one of the most widely used synchronous serial communication protocols in embedded systems, playing a crucial role in STM32 development. Compared to I2C and UART, SPI is particularly suitable for high-speed data acquisition, memory expansion, and display driving due to its full-duplex communication, high transmission rates, and hardware slave … Read more

Mastering SPI Driver from Scratch: Practical Communication between STM32 and Sensors

Mastering SPI Driver from Scratch: Practical Communication between STM32 and Sensors

Implementing the SPI (Serial Peripheral Interface) driver on the STM32 microcontroller for communication with sensors. The content includes SPI initialization, data transmission, error handling, debugging techniques, and the use of logic analyzers. The code is based on the STM32Cube HAL library, suitable for the STM32F4 series (such as STM32F407), and uses a generic sensor (like … Read more

Common Communication Interfaces II (Principles and Differences of CAN, I2C, SPI, UART, GPIO)

Common Communication Interfaces II (Principles and Differences of CAN, I2C, SPI, UART, GPIO)

The previous article organized common communication interfaces I (RS232/RS485/USB/TYPE-C principles and differences), and in this article, we continue to organize the principles and differences of CAN, I2C, SPI, UART, and GPIO. 1.CAN Bus Interface 1)Definition CAN stands for Controller Area Network, developed by the German company BOSCH, known for its research and production of automotive … Read more

51 Microcontroller Tutorial (20): Driving the RC522 Chip to Implement RFID Functionality

51 Microcontroller Tutorial (20): Driving the RC522 Chip to Implement RFID Functionality

Table of Contents 1. RC522 Driver PrinciplesDriver Principles 2. Code Implementation 3. Summary & Precautions 01 — RC522 Driver Principles The RC522 is a highly integrated contactless read/write chip launched by NXP, designed specifically for Near Field Communication (NFC) and Radio Frequency Identification (RFID) applications. It is widely used in access control systems, payment terminals, … Read more

Comprehensive Comparison of Communication Protocols IIC and SPI

Comprehensive Comparison of Communication Protocols IIC and SPI

In today’s low-end digital communication applications, we frequently encounter IIC (Inter-Integrated Circuit) and SPI (Serial Peripheral Interface). The reason is that these two communication protocols are very suitable for short-distance, low-speed communication between chips. Philips (for IIC) and Motorola (for SPI) developed these two standard communication protocols based on different backgrounds and market needs. IIC … Read more