
▲ 12 r/arduino
1-Wire bus
I’m learning the 1-Wire protocol with a DS18B20 and I’m confused about one thing in the timing diagram (see attached picture).
From what I understand:
- Writing a 1: the master pulls the data line low for about 6 µs and then releases it
- Read slot: the master also pulls the data line low for about 6 µs and then releases it
So from the slave’s perspective, both situations seem to start exactly the same way.
My question is:
How does the slave know whether:
- the master is sending a bit (write-1)
OR
- the master wants the slave to send a bit back (read slot)?
u/Electrical_Base_6416 — 1 day ago