I2C bus learning - check for deficiencies and fill gaps - response signal ACK

Publisher:rockstar6Latest update time:2016-03-01 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
          The IIC protocol stipulates that when the host is used as a receiving device, the host does not respond to the last byte to indicate the end of data transmission to the transmitting device (slave device). This is because each transmission should receive an acknowledgement signal before the next byte is transmitted. If the receiver responds at this time, it does not receive the last byte. If it is the last byte, the 9th clock cycle sends a non-acknowledgement signal (at this time, it sends either an acknowledgement signal or a non-acknowledgement signal), and finally sends a stop signal.
         
          Not every 8-bit data transmission will have an ACK signal, with the following 3 exceptions:
  1. When the slave cannot respond to the slave address (for example, it is busy with other things and cannot respond to the operation of the IIC bus, or there is no corresponding slave for this address), the SDA line is not pulled low in the 9th SCL cycle, that is, there is no ACK signal. At this time, the host sends a P signal to terminate the transmission or re-sends an S signal to start a new transmission.
  2. If the slave receiver cannot receive more data during a transmission, it will not send an ACK signal, so that the master can realize this and send a P signal to terminate the transmission or resend an S signal to start a new transmission.
  3. The master receiver will not send an ACK signal after receiving the last byte. Therefore, the slave transmitter releases the SDA line to allow the master to send a P signal to end the transmission.

Reference address:I2C bus learning - check for deficiencies and fill gaps - response signal ACK

Previous article:I2C bus learning - check for deficiencies and fill in the gaps - S3C2440 I2C controller
Next article:I2C bus learning - check for gaps and fill in the gaps - thinking about data validity

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号