Skip to content

Mistake in I2C protocol? #79

@iampi31415

Description

@iampi31415

Here the protocol is described: https://docs.rust-embedded.org/discovery-mb2/12-i2c/the-general-protocol.html

  1. Should a single image be used? The same one is repeated.
  2. Here is an image of what they say vs your description (text):
  1. Controller: Broadcast START
  2. C: Broadcast target address (7 bits) + the R/W (8th) bit set to WRITE
  3. Target: Responds ACK (ACKnowledgement)
  4. C: Send one byte
  5. T: Responds ACK
  6. Repeat steps 4 and 5 zero or more times
  7. C: Broadcast STOP OR (broadcast RESTART and go back to (2))
Image

It seems to me that the SUB-ACK is missing, and this would rather be:

  1. Controller: Broadcast START
  2. C: Broadcast target address (7 bits) + the R/W (8th) bit set to WRITE
  3. Target: Responds ACK (ACKnowledgement)
  4. C: Sends SUB
  5. T: Responds ACK
  6. C: Send one data-byte
  7. T: Responds ACK
  8. Repeat steps 6 and 7 zero or more times
  9. C: Broadcast STOP OR (broadcast RESTART and go back to (2))

The "repeat" is not allowed unless SUB uses MSB=1. Something similar happens for read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions