Understanding the I2C Bus

Understanding the I2C Bus

1. Overview The I2C bus is a very popular and powerful bus, commonly used for communication between one (or multiple) master devices and one or more slave devices. Figure 1 shows that various peripherals can share this bus, which only requires two wires to connect to the processor. This is one of the biggest advantages … Read more

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

Raspberry Pi I2C Communication Tutorial

Raspberry Pi I2C Communication Tutorial

Click the above “Mechanical and Electronic Engineering Technology” to follow us 1. What is I2C Communication I2C (Inter-Integrated Circuit) is a serial communication protocol used for transferring data between integrated circuits (ICs). It was developed by Philips (now NXP Semiconductors) in the 1980s and has become a widely adopted communication standard in various 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

Why Most Communication Buses Are Similar in Embedded Development?

Why Most Communication Buses Are Similar in Embedded Development?

In embedded development, you must have encountered various buses, including address and data buses within the chip, high-speed and low-speed buses, as well as various communication buses outside the chip. However, it seems that people still do not have a good grasp of buses, so today I have selected an article about buses for everyone … 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

Eight Essential Steps to Learning Microcontrollers

Eight Essential Steps to Learning Microcontrollers

Learning to use microcontrollers involves understanding the hardware structure of the microcontroller and the application of its internal resources, as well as learning various initialization settings for functions in assembly or C language, and programming to implement various functionalities. Here are some of my experiences: Step 1: Using Digital I/O Using button inputs to signal, … 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

Microcontroller Chip Operation Summary

The operation of the chip mainly involves manipulating the registers within the chip. Each register has its own unique address mapped in memory, which is what we are operating on. To understand the chip, first look at the timing diagram, then understand the corresponding registers, how they operate, define the necessary ports (which the program … Read more