gfroerli / firmware

Firmware for the water temperature sensor project
GNU General Public License v3.0
6 stars 1 forks source link

Check DS18B20 CRC and fix 1-Wire implementation #18

Closed rnestler closed 6 years ago

rnestler commented 6 years ago

So I rewrote the 1-Wire read_bit and write_bit functions to achieve much more precise timing: Read timings Read timings, showing a delay of 8us between pulling to low and rising to high again (6us in 1-Wire spec). Previously this was something like 15 to 20us.

Write timings Write timings, also showing a delay of 8us between pulling to low and rising to high again (also 6us in 1-Wire spec).