RC5 receive functionality

Any bugs you encounter with Flowcode should be discussed here.
jan.didden
Posts: 82
http://meble-kuchenne.info.pl
Joined: Thu Dec 17, 2020 3:16 pm
Has thanked: 20 times
Been thanked: 12 times

Re: RC5 receive functionality

Post 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
Attachments
eDD NECdec-4.fcfx
(22.41 KiB) Downloaded 51 times
Last edited by jan.didden on Fri May 06, 2022 2:25 pm, edited 1 time in total.

mnfisher
Valued Contributor
Posts: 938
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 502 times

Re: RC5 receive functionality

Post 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...

Post Reply