I2C Protocol - Part 2 (Bus Arbitration & Clock Stretching)

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 มี.ค. 2021
  • Do Check Part 1 which covers the basics of I2C: • I2C protocol Basics - ...
    Part 3 will include details regarding the Hardware design.
    Subscribe to the channel for more videos related to embedded systems.
    Like, Share, and do drop in any feedback/suggestions!
    🐦Twitter: / beebhatt
    💼 LinkedIn: tinyurl.com/byp28c7y
    Cheers!
    SPI Protocol: www.youtube.com/watch?v=aHGSu...
    UART: www.youtube.com/watch?v=2g9oh...
    Getting Started with Embedded Systems: • Getting started with E...

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

  • @matheusbg8
    @matheusbg8 3 ปีที่แล้ว +5

    I liked your video Congratulations!
    Regarding your question:
    I think both masters will receive the data at the same time, and no one will be aware of each other. That is so cool :). An example could be 2 masters accessing the same RTC module.
    Cheers!

  • @more_u-listen_more_u_love9543
    @more_u-listen_more_u_love9543 2 ปีที่แล้ว

    Really video is awesome. Thanks for good quality of info on i2c.

  • @shlokasworld2626
    @shlokasworld2626 11 หลายเดือนก่อน

    good work

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

    Hi Very nice video, Thankyou. I have few doubts
    1. What if 2 master one tries to read and other tries to write to same slave? I believe one trying to write will win the arbitration is it so?
    2. For your question will acknowledge from slave will be received by both the maters?
    3. During clock stretching can we consider slave will have control over master clock, even master generates clock? Will wait for your answers.

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

    Doesn't each master have to monitor both SDA and SCL to arbitrate such that they make sure SCL is actually high before checking the SDA state - you know incase another master is still holding SCL low?

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

    what if there is a no recovery form the clock streaching,
    what if the slave is not responsive?

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

    Video is really good. Can you please give answer for the question asked in the end ?

    • @BinaBhatt
      @BinaBhatt  3 ปีที่แล้ว +12

      The data transfer will be carried on without any error as both the masters are attempting to send the same bits.
      Also, arbitration is continued throughout the complete data transfer.

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

    Answer for the last question,
    I think both the address will go to conflict by consuming the same bus so clock arbitration will occur untill it is programed to let the bus pass through the data if the addresses send the same data, 🥵😌 this is my try, and try to fix it and i want your answer.

  • @tharunkumarsankula1390
    @tharunkumarsankula1390 8 หลายเดือนก่อน

    could you please tell me the answer for the last question !!

  • @charankaja6096
    @charankaja6096 6 หลายเดือนก่อน

    What happened when speed of master is more than speed of slave.

  • @prasenjit134
    @prasenjit134 2 ปีที่แล้ว +1

    Is there a next video after this?

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

      Yes, here is the link: th-cam.com/video/kLrInNkEkcg/w-d-xo.html

  • @shripad_4
    @shripad_4 ปีที่แล้ว

    Answer- No corruption of data.

  • @ThipparapuVijaykumar
    @ThipparapuVijaykumar 2 ปีที่แล้ว +1

    If 2 masters want to access same slave at a time,
    Case1: If both the masters want to read same register of slave, then data will be received by both the masters.
    Case2: if bothe the masters want to read different Registers of slave then again bus arbitration will happend.
    Case3: same thing will happen for write operation also.