Page 2 of 2

Re: RC5 receive functionality

Posted: Fri May 06, 2022 11:28 am
by jan.didden
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

Re: RC5 receive functionality

Posted: Fri May 06, 2022 11:33 am
by mnfisher
This seems to be running in two threads.. See my post at https://www.flowcode.co.uk/forums/viewt ... 6624#p6624 as to why this won't work...