Detailed Overview of I2C and SPI Communication Protocols

There are many serial communication protocols, among which I2C and SPI are very well-known.I2C and SPI are both bus protocols that allow users to perform short-distance serial data transmission. I2C is a two-wire communication protocol developed by Philips (now NXP), while SPI was developed by Motorola. These two protocols are commonly used in electronic devices … Read more

Microcontroller Driving LCD Programming Approach

Microcontroller Driving LCD Programming Approach

Source | Roof Ridge Sparrow | strongerHuang There are many methods for microcontrollers to drive LCDs, and many accompanying examples are available online. However, among the thousands of examples online, which one is your “no.1”? Today, I would like to share an approach to driving LCDs with microcontrollers in an object-oriented manner. Overview of LCD … Read more

RISC-V: What You Need to Know About This Cutting-Edge Technology

RISC-V: What You Need to Know About This Cutting-Edge Technology

RISC-V is an open standard instruction set architecture (ISA) conceived by developers at the University of California, Berkeley in 2010 and is continuously evolving. RISC in RISC-V stands for Reduced Instruction Set Computer, which means it is designed to simplify each individual instruction given to the computer. Since RISC-V is an open standard, anyone can … Read more

How Open-Source RISC-V Architecture Reshapes Global Chip Landscape

Many people believe that the open-source RISC (Reduced Instruction Set Computing) architecture will determine the future of chip design and the development of new technologies like next-generation artificial intelligence. RISC-V is an open standard developed through international cooperation, and participating in such international standards is thought to help companies maintain greater control over their intellectual … Read more

Common I/O Ports of MCUs and Their Differences

Common I/O Ports of MCUs and Their Differences

When it comes to microcontrollers (MCUs), the first thing that comes to mind is that they have many input/output (I/O) ports, which can be difficult to distinguish. As the core of embedded systems, they can communicate with external devices or sensors. However, the presence of I/O ports often makes learning challenging for many people. This … Read more

Microcontroller Basics and Applications: Serial Expansion

Microcontroller Basics and Applications: Serial Expansion

Click the blue text to follow us 1. Overview of Microcontroller Serial Expansion The methods for implementing microcontroller serial expansion include commonly used serial bus standards such as: I2C bus, Serial Peripheral Interface (SPI), and Universal Serial Bus (USB). This chapter will focus on the I2C bus. 1. Implementation through dedicated serial standard bus (1) … Read more

How to Handle Single Chip Select in STM32 SPI?

How to Handle Single Chip Select in STM32 SPI?

Previously, when using STM32’s SPI to control many external chips, there was only one chip select for a single SPI peripheral. How can we achieve independent chip selection for one master and multiple slaves? SPI Bus Topology Generally, the SPI bus is connected as shown in the figure below, with one master and multiple slaves. … Read more

Hands-On STM32 SPI Interface (Part 1)

Hands-On STM32 SPI Interface (Part 1)

●SPI Bus 1. What is SPI SPI is the abbreviation for Serial Peripheral Interface, which is a serial peripheral interface. SPI is a high-speed, full-duplex, synchronous communication bus that occupies only four pins on the chip, saving pin space and providing convenience for PCB layout. Due to its simplicity and ease of use, more and … Read more