orgua / OneWireHub

OneWire slave device emulator
GNU General Public License v3.0
343 stars 86 forks source link

Issue on ESP32. Missing bit because interrupts executed #107

Open slavkaz001 opened 2 years ago

slavkaz001 commented 2 years ago

I am missing bits sometimes and I troubleshoot the problem and found that ESP is freezing executing the code sometimes for 10 µs and the routine is missing one of the bits and errors out. I configured output pin to follow input and i see it is missing some of the falling falling edges. In the second test I configured output pin to toggle while esp32 is waiting for the falling edge and see it halt execution sometimes. Blue is input and yellow is the output debug pin. it seems like ESP32 interrupts the code execution to do some other work. Any ideas? 902C4034-6E33-43BF-94BA-FE78FBB46D08 D1CFC9DB-402C-4B14-A9F7-AF4C4BE7A1F3