Search found 82 matches

by jan.didden
Thu May 05, 2022 1:46 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Next hurdle. For some reason, the timer returns zero elapsed time, even with a deliberately inserted 4ms delay. Looking at the timer properties there is a 2MHz coount rate specified with no option to change it. Does FC, knowing the osc freq, insert a prescaler to get to 2MHz? My processor runs at 32...
by jan.didden
Thu May 05, 2022 10:14 am
Forum: Bug Reports
Topic: RC5 receive functionality
Replies: 11
Views: 3739

Re: RC5 receive functionality

Thanks Ben, that's a good tip.
At this moment I'm only looking at a rising edge, because I think that looking at rising edges only gives me an umambiguous pulse length.
Those NEC message designers were pretty smart!

Jan
by jan.didden
Tue May 03, 2022 6:00 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

If I look into the C file, I see: // Name: Interrupt, Type: Interrupt: Enable INT0 cr_bit(INTCON,INTEDG); INTPPS = 0x0A; st_bit(INTCON,GIE); st_bit(PIE0, INTE); This must be the section enabling the int and setting the edge direction. I can not find any definition of which port pin this INT0 is assi...
by jan.didden
Tue May 03, 2022 3:49 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Quick update. The selection of interrupt pins for this device (PIC16F15355) is limited to portA and portB, although the other ports (C, D) also have this capability. Can live with that. I set up B2 as interrupt on falling edge, but for some reason that pin then gets configured as a low output. If I ...
by jan.didden
Tue May 03, 2022 12:51 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Hmm. It seems an interrupt service routine can only be called from either a falling edge or a rising edge on a pin. For this setup, I need to service both a falling and a rising interrupt. The h/w of the PIC16F15355 can be set to interrupt on both a rising and a falling edge on a particular pin. Is ...
by jan.didden
Tue May 03, 2022 12:49 pm
Forum: Bug Reports
Topic: RC5 receive functionality
Replies: 11
Views: 3739

Re: RC5 receive functionality

And for a lighter note:

prog.PNG
prog.PNG (135.06 KiB) Viewed 2634 times
by jan.didden
Tue May 03, 2022 11:49 am
Forum: Bug Reports
Topic: RC5 receive functionality
Replies: 11
Views: 3739

Re: RC5 receive functionality

Hmm. It seems an interrupt service routine can only be called from either a falling edge or a rising edge on a pin. For this setup, I need to service both a falling and a rising interrupt. The h/w of the PIC16F15355 can be set to interrupt on both a rising and a falling edge on a particular pin. Is ...
by jan.didden
Tue May 03, 2022 11:18 am
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Yes, found it. I edited my msg above, seems to work in h/w.
Thanks for all your encouragement!

Jan
by jan.didden
Tue May 03, 2022 10:40 am
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Martin, seems to work in h/w! Tried just a few numbers for ms delay, and they are correctly shown on the display. Funny enough, in simulation, as soon as I reset the counter in the flowchart, the counter in the 2D panel starts to count up to a value of around 3 (+/- 0.1). Ohh the intricacies of soft...
by jan.didden
Mon May 02, 2022 7:14 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 12475

Re: Looking for users with experience using RC5 remote control component

Yes - Int, my bad.
I'll see if I can whip something up on h/w tomorrow.
I also wasn't sure how to handle the fact that the timer read returns an Unsigned Integer, but with values this low, it should be OK to convert to Int for printing.

Jan