RC5

Any bugs you encounter with Flowcode should be discussed here.
mnfisher
Valued Contributor
Posts: 2159
http://meble-kuchenne.info.pl
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 998 times

Re: RC5

Post by mnfisher »

Thanks,

Yes - adding interrupts etc isn't quite as staightforward for a component - as other MCUs might differ?
I used TMR1 - for the timing and at 32MHz a 1uS 'tick' is easy - but I probably should have used the timer component :-)
I just used the INT pin (INT0) - as it only needs a falling edge detection - but IOC (who knew there is a component!) - would be good too!!

Look forward to seeing your component !

Martin

medelec35
Valued Contributor
Posts: 2391
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 759 times
Been thanked: 825 times

Re: RC5

Post by medelec35 »

My first version used the timer component, however due to a bug I reported here, I had to change to the timed interval.
Hopefully that will be more tolerant to different platforms.
Martin

medelec35
Valued Contributor
Posts: 2391
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 759 times
Been thanked: 825 times

Re: RC5

Post by medelec35 »

Hi Martin.
I have just changed some register names for timer 1, and your NEC decoder works great on 16F18877
Martin

mnfisher
Valued Contributor
Posts: 2159
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 176 times
Been thanked: 998 times

Re: RC5

Post by mnfisher »

I did a 'workaround' for the timer component bug - (requires the 'GetTime' checking whether the timer has overflowed (by checking the interrupt flag)) - but it was a while ago - and I couldn't remember what project it was in :-( (I'm blaming old age :-( )

medelec35
Valued Contributor
Posts: 2391
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 759 times
Been thanked: 825 times

Re: RC5

Post by medelec35 »

Your blaming old age, I have a great grandchild with one grandchild, and I have another grandchild who is pregnant :lol:
Hopefully if it is a bug it will be resolved soon :)
Martin

Post Reply