This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52840 ds18b20

hi, team.

I've got a question. I use nrf52840 dev board. There is a connection between nrf52840 and ds18b20. I tried to use dedicated HW timer to count delay according to 1-wire spec. And i faced 2 problems:

1. i'd like to setup HW timer to generate 1us, but instead i got only 13us (1us expected). I check this using oscilloscope and toogle GPIO pin in timer interrupt.

2. Anyway i decided to use HW timer to count delay for ds18b20, but the problem is that i can't leave timer interrupt, so the program won't go further, stuck in timer interrupt.

So, is it possible to achive 1us interrupt on nrf52840? Is it possible to use dedicated HW timer to count delay for ds18b20?

Parents Reply Children
No Data
Related