Sterling
Sterling
DIIDevHeads IoT Integration Server
Created by Sterling on 9/27/2024 in #firmware-and-baremetal
Why doesn't my GPIO pin stay high below 200 Hz in my frequency counter code?
Hi @wafa_ath This was really helpful, I added a small debounce delay and some hysteresis, which stabilized the pin state, and now the output behaves as expected at lower frequencies. I also commented out the UART code as suggested, and it didn’t seem to affect anything negatively. As for PA0, I realized it was reserved for input capture, so that explained why it wasn’t working for this case. Everything is working smoothly now! Thanks again!
4 replies