1. Introduction to I2C Protocol
The I2C communication protocol (Inter-Integrated Circuit) was developed by Phiilps. It has few pins, simple hardware implementation, strong scalability, and does not require external transceiver devices such as USART and CAN communication protocols. It is now widely used for communication between multiple integrated circuits (ICs) in the system.
For more information about the I2C protocol, you can read "I2C Bus Protocol". This blog post mainly analyzes the I2C waveform diagram, and does not introduce the basic knowledge of I2C.
https://www.cnblogs.com/Tangledice/p/7622794.html
5. Additional
5.1 Data Validity
When the I2C bus is transmitting data, the data on the data line must remain stable while the clock signal is at a high level. The high or low level state of the data line is allowed to change only when the signal on the clock line is at a low level.
However, although it is only required to remain stable during the high level period, there must be an advance amount, that is, the data is ready before the rising edge of SCL arrives, because the data is entered into the device EEPROM on the rising edge of SCL.
5.2 Data Transmission
Each bit of data transmitted on the I2C bus has a corresponding clock pulse, that is, with the cooperation of the SCL serial clock, each bit of data is transmitted serially on SDA bit by bit. The data transmission is edge triggered.
5.3 Working process
All communications on the bus are initiated by the master.
1. The master device sends data to the slave device
After the master device addresses the slave device, it sends the internal register address of the slave device to be read or written (the register address is set by itself and is used to store the storage location of the written or read data); then, it sends the data. After the data is sent, it sends the stop bit.
After receiving the stop signal, the EEPROM enters an internal write cycle, which takes about 10ms. During this period, any operation will not be responded to by the EEPROM (a delay must be inserted between two writes in this way, otherwise it will fail).
5.4 Additional
1) The maximum length of IIC wiring is 40CM;
Previous article:C51 microcontroller adjusts PWM wave through serial port
Next article:STM8L library function correction--GPIO_ReadInputDataBit
Recommended ReadingLatest update time:2024-11-16 14:54
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Selling various low, medium and high-end development boards
- EEWORLD University Hall ---- Zhougong Series Lectures —— Basic Principles of Zhougong PID
- Security monitoring system protection discussion
- 【GD32E231 DIY】IAR development environment construction and running lights
- [NXP Rapid IoT Review] + NXP Rapid IoT Unexpected Bluetooth IoT
- EEWORLD University Hall ---- Zhou Gong Series Lectures - Temperature Instruments
- Is there any impact if the power supply is connected using soldered wires during PCB wiring?
- Problems with making the digital tubes flash simultaneously
- EEWORLD University ----TI Precision Labs - Operational Amplifiers: 15 Comparator Applications
- 100% Earn E-Coins or Red Packets: Tektronix will help you solve USB development and testing problems. Download, complain/share experiences to win good gifts