nimaltd / ds18b20

ds18b20 library for stm32 hal
GNU General Public License v3.0
139 stars 43 forks source link

Low frequency device #3

Closed MohammedBENHADINE closed 4 years ago

MohammedBENHADINE commented 4 years ago

Hey, I've used the library with same clock configuration and it was working great. Now i'm using it with a low frequency configuration (32Mhz , no external clock) and i've problems reading from sensor ,it's always at Zero. I've tried to change the timer counts (PRS) from 71 to 31 to stay aligned with the 1us delay but no success. Since it's supporting FreeRTOS , could we just use the osDelay() instead of a hardware timer ? Any solutions for my problem ? Regards

nimaltd commented 4 years ago

hello. I never test below 48mhz . I think better try 32mhz with no rtos.

MohammedBENHADINE commented 4 years ago

Thanks for the rapid feedback. Okey i'll try