I2C protocol overview

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 17

  • @1988mib
    @1988mib 5 ปีที่แล้ว +5

    I2C read is a bit confusing at 8:26.
    How a slave know which register data it is sending. Isn't it the master needs to first
    1. master write slave address
    2. master sends register address which it wants to read (rw bit don't care)
    3. repeated start with slave address with read bit 1
    3. slave started feeding data from that register.
    Is it correct? I am telling from bma220 datasheet.

    • @nandikamail
      @nandikamail 4 ปีที่แล้ว +3

      Yes. It has a different little more complicated protocol than this typical system.
      1. Master sends start bit
      2. master sends slave address(7bit)
      3. Master sends write condition
      4. Slave send ACK
      master sends register address that required to read(8 bit/LSB ignored = 1 or 0)
      4. Slave sends ACK
      5. Master send Sr(Repeat start) condition
      6. Master send slave address again
      7. ACK from slave
      8. Slave send 1st data byte
      9. ACK from master
      - Repeat 8/9 for 5 times
      10. Slave send last(6th) data byte
      11. NACK by master
      12. Master sends Stop
      Clearly explained in this datasheet
      image.dfrobot.com/image/data/SEN0168/BMA220%20datasheet.pdf

  • @BrianGaming365
    @BrianGaming365 3 ปีที่แล้ว +2

    well this is very useful than datasheet i found thx alot

  • @bonbonpony
    @bonbonpony 2 ปีที่แล้ว

    02:00 So if the clock remains high, and some device pulls the data line down (signaling start), and then releases it back to high (signaling stop), would it mean an "empty packet" with no address nor data inside? Is such thing allowed to happen?
    03:46 So if I flip the data line _during_ clock high, it would either mean STOP or (RE)START, am I right?
    04:40 What if the sender haven't released the data line yet, and the receiver pulls it down too?
    08:43 So how can the master inform the slave that it didn't get the last byte correctly?

  • @ivotenotocensorship5247
    @ivotenotocensorship5247 5 ปีที่แล้ว +1

    Nice, good work gentlemen

  • @premjasonmendonca1013
    @premjasonmendonca1013 2 ปีที่แล้ว

    Is it possible to provide us a means to download this presentation for quick reference?

  • @accursedshrek
    @accursedshrek 2 ปีที่แล้ว

    Thanks!

  • @abhijithprabha6377
    @abhijithprabha6377 4 ปีที่แล้ว

    thanks

  • @PatrickRibbsaeter
    @PatrickRibbsaeter 5 ปีที่แล้ว

    nice.. thanks

  • @lachlanmackay6586
    @lachlanmackay6586 4 ปีที่แล้ว

    wow!

  • @antilogism
    @antilogism 3 ปีที่แล้ว

    A little audio processing would really help. Normalize the level, a tad of compression maybe, and smooth out the freq. response.

    • @johnborrell9021
      @johnborrell9021 2 ปีที่แล้ว

      Agree, SCL, SDA sound the same. Just call it clock and data. There's no error correction. ACK just means "hello, yes I'm here" but doesn't repeat back to the master? I'm correct?

    • @3bdoeid
      @3bdoeid ปีที่แล้ว

      @@johnborrell9021 No it says "yeah, I received and understood what you sent, send again I am ready"

  • @garyescobar6831
    @garyescobar6831 5 ปีที่แล้ว +1

    i fell asleep