Re: RC5 receive functionality
Posted: Fri May 06, 2022 11:28 am
Can someone please enlighten me.
I have an interrupt service routine, in which I reset & start the counter, do a delay, then read the counter and I get a value.
But when I only reset & start te counter, and read it, the 2nd time I go into the interrupt service routine (some 14ms later), the counter always reads zero...
Please take a look.
Q: is an interrupt cleared when an ISR is executed or does that have to be done by the user (the example does not show it);
Is a counter halted or reset when the contents is read?
Jan
I have an interrupt service routine, in which I reset & start the counter, do a delay, then read the counter and I get a value.
But when I only reset & start te counter, and read it, the 2nd time I go into the interrupt service routine (some 14ms later), the counter always reads zero...
Please take a look.
Q: is an interrupt cleared when an ISR is executed or does that have to be done by the user (the example does not show it);
Is a counter halted or reset when the contents is read?
Jan