sweesineng / STM32_DS18B20

STM32 I2C HAL & LL library for the 1-Wire DS18B20
7 stars 4 forks source link

Parasite mode support of the library #2

Open eos1d3 opened 6 months ago

eos1d3 commented 6 months ago

For using parasite mode, the mosfet needs to turn on or off by the mcu. But I do not see GPIO pin is defined and relevant code. So parasite mode is not supported?

eos1d3 commented 5 months ago

After testing, the library does work with parasite mode. DS18B20 will already power reset after a read of temperature.

Adding delays to operations does not help.

I have tested with other library with the same wiring and hardware, parasite mode without issue.

Using 3.3V with pull-up resister of 510 - 1K still does not work and 85 is returned (means power reset).