I2C bus arbitration mechanism in Embedded C Animated tutorial

  Рет қаралды 19,764

Embedded C

Embedded C

Күн бұрын

Пікірлер: 24
@timmy610387
@timmy610387 7 жыл бұрын
It's really helpful. Thanks
@EmbeddedC
@EmbeddedC 7 жыл бұрын
+陳昱廷 thanks for the feedback, keep following the channel
@venkatnalla3632
@venkatnalla3632 4 жыл бұрын
I happened to watch this video today and thought of offering these comments. Any master would indicate start of communication by pulling the data line (SDA) low when the clock (SCL) line is high. Not by pulling the clock low as stated at 2.07. The logic at every master (say master M1) would be, pull the SDA low when the SCL is high and keep it low until the SCL goes low and try to pull SDA high. If M1 is able to pull SDA high the M1 gets the bus. If it is not able to pull high means, other master is holding low it as the SDA is wired AND. So the M1 should back out now, giving the bus to other master and try again after STOP condition. The M1 would act as a slave until STOP condition and try to take the bus again after STOP. At any given time only ONE master will be controlling the bus while communication in progress, so the situation of both mater 1 & 2 writing the data to slave address 1111001, as stated between 5:17 to 8:12, DOES NOT arise .
@mattakalyan1427
@mattakalyan1427 3 жыл бұрын
what is actually the meaning of master disconnected from the bus? That Means any internal logic controller of the i2c mechanism will make the ic sop the i2c mechanism until the bus becomes high.
@saravanakumarchinnasamy7947
@saravanakumarchinnasamy7947 6 жыл бұрын
hi good explaination. Can you post the video on CAN Protocol?
@EmbeddedC
@EmbeddedC 5 жыл бұрын
kzbin.info/www/bejne/gnK3aWl6bNKLqZo
@yasirshahzad3732
@yasirshahzad3732 Жыл бұрын
What happens when both masters attempt to access the bus simultaneously? Will they not disturb the communication line and cause synchronization issues?
@re_pu_bli_c
@re_pu_bli_c 4 жыл бұрын
If two masters are working at different speed modes ( m1@ standard mode, m2@ fast mode), which master will take control of bus first?
@vinodahuja1739
@vinodahuja1739 5 жыл бұрын
Hi thank you so much for video. I have one doubt in wired AND. In above video you have explained a situation where both master want to write to slave but master 1 want to write 0 and master 2 want to write 1 since it is wired AND logic therefore master 1 win and master 2 will go to wait. But what if both master want to write 0. Wired AND of both is 0 . In the above video 7:55 I have doubt.
@erbkgupta8679
@erbkgupta8679 5 жыл бұрын
thanks
@vinayprasad4748
@vinayprasad4748 3 жыл бұрын
How come master know the slave address? We know it by data sheet but master how it come to know the slave address?
@kavindranlycan8229
@kavindranlycan8229 7 жыл бұрын
Hi guys great job I just love your videos. Can you post a video on can protocol and it's respective programming tutorial
@EmbeddedC
@EmbeddedC 7 жыл бұрын
+Kavindran lycan thanks for your feedback We will update soon
@karthikeyansubramani5346
@karthikeyansubramani5346 6 жыл бұрын
If both master send below data at same time. master1 send 110 master2 send 101 Which master will take control over the bus?
@desxcsw
@desxcsw 6 жыл бұрын
Karthik Subramani master2
@rabbit92x
@rabbit92x 6 жыл бұрын
why?
@astghikavagyan1119
@astghikavagyan1119 6 жыл бұрын
@@rabbit92x it is wired-and, 1 AND 0 gives 0. That's why master 2 :)
@venkateshravuri6011
@venkateshravuri6011 4 жыл бұрын
Clock synchronization means
@pavann5883
@pavann5883 4 жыл бұрын
Can u explain with the embedded c code
@rockjack2750
@rockjack2750 4 жыл бұрын
What will hapend data of master 2 when master 1 complate its transmission and stop bit generated.
@rockjack2750
@rockjack2750 4 жыл бұрын
And also wired and meaning put physical and gate on sda line?
@ZidZafar
@ZidZafar 5 ай бұрын
Where is the animation???😅
@vscmTube
@vscmTube 3 жыл бұрын
he keeps mixing up the signals between SDA and SCL lines.... !!!
@fariaanzum5913
@fariaanzum5913 5 жыл бұрын
can you say a bit louder.your voice is inaudible.
I2C Bus Communication Protocol Tutorial with Example
18:25
Embedded C
Рет қаралды 127 М.
SPI Bus communication protocol
15:43
Embedded C
Рет қаралды 108 М.
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 34 МЛН
I2C Clock Stretching Animated tutorial (clock synchronization)
7:35
Understanding I2C
10:58
Rohde Schwarz
Рет қаралды 99 М.
Introduction to I2C: Advanced topics
25:43
Texas Instruments
Рет қаралды 9 М.
The RS-232 protocol
26:10
Ben Eater
Рет қаралды 853 М.
I2C Arbitration | Prodigy Technovations
6:27
Prodigy Technovations
Рет қаралды 6 М.
EEVacademy #4 -  I²C (I2C) Bit Banging
10:57
EEVblog
Рет қаралды 74 М.
Введение в шину I2C
5:21
Диолан
Рет қаралды 20 М.