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...
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!
Really video is awesome. Thanks for good quality of info on i2c.
Thank you!
good work
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.
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?
what if there is a no recovery form the clock streaching,
what if the slave is not responsive?
Video is really good. Can you please give answer for the question asked in the end ?
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.
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.
could you please tell me the answer for the last question !!
What happened when speed of master is more than speed of slave.
Is there a next video after this?
Yes, here is the link: th-cam.com/video/kLrInNkEkcg/w-d-xo.html
Answer- No corruption of data.
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.