I2C Protocol---I2C Timing Diagram Analysis

Publisher:星光闪耀Latest update time:2019-04-09 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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;


Reference address:I2C Protocol---I2C Timing Diagram Analysis

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

[PIC32MZ] I2C communication
I2C, like the serial port, only requires two wires for communication, which is very useful in some pin-constrained applications. However, compared with the serial port, the communication protocol of I2C is simpler and the distance is shorter, which is limited to inter-board communication. Most ICs support the I2C prot
[Microcontroller]
[PIC32MZ] I2C communication
Conflict between FSMC and hardware I2C in STM32
The errata table on the ST official website states that FSMC and I2C cannot be enabled at the same time. The solution is: 1. Map I2C to PB9, PB8. 2: Use simulated I2C. I/O remapping steps: (Take the serial port as an example) 1. Turn on the remapped clock and the remapped I/O port pin clock of USART,  RCC_APB2Periph
[Microcontroller]
stm8s jump out of interrupt program c language, STM8S I2C bus interrupt program
/*========================================================================================================== Macro definitions of some operating instructions used within this source program file ==========================================================================================================*/ /*-------------
[Microcontroller]
STM8 I/O port simulates I2C
The data read by the STM8 I/O port simulation I2C is incorrect   STM8 I/O port simulates I2C         #define I2C_ERR 0      #define I2C_CRR 1      #define I2CDataIn 1      #define I2CDataOut 0      #define I2C_PORT (GPIOC)      #define I2CSCL (GPIO_PIN_7)      #define I2CSDA (GPIO_PIN_6)         //********************
[Microcontroller]
Design of a new programmable gain amplifier circuit based on I2C bus
In various remote sensing and telemetry systems, the dynamic range of analog signals is usually very large, generally ranging from a few mV to tens of V (dynamic range can reach 80_90db), and some are even a few pV to hundreds of V (dynamic range can reach more than 160db). Moreover, there are many interference sources
[Microcontroller]
Design of a new programmable gain amplifier circuit based on I2C bus
STC8 Series MCU Hardware I2C Usage Tutorial (Part 2)
1. I2C related registers STC8 series MCU hardware I2C usage tutorial (I) 2. Registers related to I2C interrupt ① I2C interrupt source ② I2C interrupt enable bit ③ I2C interrupt flag 3. Programming ① Registers and related macro definitions sfr P_SW2 = 0xBA; //Peripheral port switch register 2 #define I2CCF
[Microcontroller]
STC8 Series MCU Hardware I2C Usage Tutorial (Part 2)
PIC microcontroller - ordinary IO port simulates I2C bus to read and write 24C02
Use the PIC microcontroller's common IO port to simulate the I2C bus and perform read and write operations on 24C02. The bus is defined as: #define IIC_SCLK RC3 //24C02 clock line #define IIC_SDAT RC4 //24C02 data line Short jumper cap P11 to 24C02 direction, and connect jumper cap P6 to IIC direction. The I2C bus
[Microcontroller]
I2C 24LC02 C reading and writing program for PIC microcontroller
1 I2C bus characteristics The main advantages of the I2C bus are its simplicity and effectiveness. Since the interface is directly on the components, the I2C bus takes up very little space, reducing the space on the circuit board and the number of chip pins, reducing the cost of interconnection. The bus can be
[Microcontroller]
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号