Hi,
I'm using the SCT to monitor a watchdog signal. The signal toggles at a rate of 10Hz.
I've defined two events. One for the rising edge and one for the falling edge. They both capture (and limit) the counter and they set (event 0) or clear (event 1) an output pin.
The LED connected to the output pin blinks very irregularly and when I enable interrupts on the events and inspect the captured value, I noticed that it's sometimes around 3e6, which boils down to 100ms (counter is running at 30MHz), while the events should occur every 50ms, again indicating a missed event.
I inspected the watchdog signal with a scope and it looks very clean.
What could be the cause of the missed events?
Thanks in advance.
Kind regards,
Remco Poelstra
已解决! 转到解答。
Hi Remco Poelstra,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Remco Poelstra,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------