Why Should MCU I2C Pins Be Configured as Open Drain Outputs?

Why Should MCU I2C Pins Be Configured as Open Drain Outputs?

I2C (Inter-Integrated Circuit) is a widely used bus protocol for data communication between MCUs and many chips, including the commonly used EEPROM chips from the AT24 series. The I2C bus consists of a serial clock line (SCL) and a serial data line (SDA). When developing an MCU as an I2C master, the GPIO pins corresponding … Read more

Understanding I2C Device Addressing for 24LC04

Understanding I2C Device Addressing for 24LC04

Description I2C supports N-2-N on the bus, so addresses are needed to distinguish devices. A complete transmission always starts with a START signal followed by the device address and the read/write flag. Device Address So how do we view and define the device address? The device address corresponds to the first BYTE’s BIT7-BIT1, with BIT … Read more

Why Pull-Up Resistors are Necessary for I2C

Why Pull-Up Resistors are Necessary for I2C

When using the I2C bus, if the internal chip does not integrate pull-up resistors, two external pull-up resistors need to be added. The reason is that the I2C bus generally has an open-drain (OD) structure, where OD stands for Open Drain, meaning it is a leakage circuit, with Drain referring to the drain of the … Read more

Fundamentals of Peripheral Control with ESP32: I2C Communication

Fundamentals of Peripheral Control with ESP32: I2C Communication

1. Basics of the I2C Protocol I2C (Inter-Integrated Circuit) is a two-wire serial communication protocol with the following core features: Two-wire Communication: Only requires two signal lines, SCL (clock line) and SDA (data line) Multi-master Multi-slave Architecture: Supports multiple master and slave devices Addressing: 7-bit or 10-bit slave addresses (7-bit can address up to 112 … Read more

Common Buses Used by Embedded Engineers

Common Buses Used by Embedded Engineers

What is a Bus? A bus is a common communication line for transmitting information between various functional components of a computer, consisting of a bundle of wires. In fact, a bus is an internal structure that serves as a public channel for information transfer between the CPU, memory, input, and output devices. To simplify hardware … Read more

Comprehensive Guide to Embedded Communication Protocols: Summary from UART to CAN!

Comprehensive Guide to Embedded Communication Protocols: Summary from UART to CAN!

Comparison and Analysis of Embedded System Communication Protocols In embedded system development, these six major communication protocols each have their strengths: UART, with its simple and user-friendly characteristics, is often used for short-distance (1m) debugging communication between MCUs and sensors; RS232 achieves a stable 15m connection with host computers through level conversion chips, making it … Read more

Understanding UART, I2C, and SPI Protocols

Understanding UART, I2C, and SPI Protocols

UART, I2C, and SPI are common low-speed board-level communication protocols. Currently, mainstream SoCs are equipped with controllers for these communication protocols, and various sensors, touch controllers, fingerprint modules, Bluetooth modules, and Wi-Fi modules are compatible with one or more of these communication methods. Below, we will discuss each protocol:UART UART generally consists of three lines: … Read more

Video Tutorial | How to Set Up I2C Communication Using RX Smart Configurator

Video Tutorial | How to Set Up I2C Communication Using RX Smart Configurator

– Click to view the video – The video demonstrates how to read and write EEPROM using RX Smart Configurator in e² studio. Related Resources: • Knowledge Base: RX Smart Configurator API call procedure https://en-support.renesas.com/knowledgeBase/21392758 0:00:00: Introduction 0:00:12: Topic 0:00:19: References 0:00:29: Hardware Setup 0:00:47: Program Overview 0:01:13: Writing to EEPROM 0:01:28: Reading from EEPROM … Read more

Understanding the I2C Protocol: A Comprehensive Guide

Understanding the I2C Protocol: A Comprehensive Guide

I2CIntroduction I2C (Inter-Integrated Circuit) is a short-distance, low-speed, two-wire serial communication bus introduced by Philips (NXP) in the 1980s. It is widely used in electronic devices due to its simple structure (requiring only the SDA data line and SCL clock line), low wiring costs, and support for multi-master and multi-slave communication. Its main application scenarios … Read more

Summary of Common Communication Interfaces in Embedded Development

Summary of Common Communication Interfaces in Embedded Development

In embedded systems, on-board communication interfaces refer to the communication pathways or buses used to connect various integrated circuits with other peripheral devices. The following content summarizes commonly used on-board communication interfaces: including I2C, SPI, UART, and 1-Wire: I2C Bus The I2C bus is a synchronous, bidirectional, half-duplex two-wire serial interface bus. Here, half-duplex means … Read more