Search found 82 matches

by jan.didden
Thu May 26, 2022 7:37 am
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

Martin (medelec), just to be sure, your code enables/disables the timer but does not reset or clear it, correct?

Jan
by jan.didden
Wed May 25, 2022 12:46 pm
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

Martin, thanks, I will see if I can get it to work that way. I had a hunch that it had to do with (illegal?) overwrite of interrupt register contents, or possibly just a coding error in the register/bit name, but didn't know how to check that. Martin mnfischer confirmed it indeed is an issue. You ha...
by jan.didden
Wed May 25, 2022 7:54 am
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

To add: this erroneous behavior was independently confirmed by a highly regarded user here.

Jan
by jan.didden
Tue May 24, 2022 1:44 pm
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

I did a lot of trials this morning, and I think I have a lead. Whenever you enable a timer interrupt while being in an interrupt routine (in my case, an IOC interrupt), things go haywire, to the point that even the IOC routine is no longer called when an ioc occurs. Move the timer enable outside of ...
by jan.didden
Mon May 23, 2022 6:25 pm
Forum: Bug Reports
Topic: Timer interrupt crashes processor?
Replies: 2
Views: 979

Timer interrupt crashes processor?

I am working on a project that uses an interrupt-on-change from a pin, as well as a timer interrupt. The IOC comes from an infra red remote transmitter. As long as the timer interrupt is disabled, it works as designed; when the remote is activated, the interrupt service routine is called and after s...
by jan.didden
Mon May 23, 2022 11:27 am
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

Ben, I have seen cases where timer and interrupt on change interfere, and again it happened with the attached. In the startup I clear an LED attached to a pin. When an IR remote message is received on an interrupt-on-change pin, macro FallingEdge is called, and the LED is turned on. This work as lon...
by jan.didden
Sun May 22, 2022 12:46 pm
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

Thanks Ben, I can take that into account, but in hardware I can use it to say 20ms?
I would use T1 in the 16F15355 as interval timer, generating an interrupt after say 20-30ms, and use T0 to measure elapsed time in the tens of us range.
Those two won't interfere?

Jan Didden
by jan.didden
Fri May 20, 2022 7:58 am
Forum: Feature Requests
Topic: Component sfk 433 Mhz serial for Arduino, ext.
Replies: 38
Views: 12487

Re: Component sfk 433 Mhz serial for Arduino, ext.

A slightly related question (I came here to educate myself on the interval timer): could it be that the interval timer doesn't work correctly in simulation?

Jan Didden
by jan.didden
Sat May 14, 2022 1:09 pm
Forum: General
Topic: Looking for users with experience using RC5 remote control component
Replies: 40
Views: 11580

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

With Martin's help I'm making good progress in the NEC IR decoding routines, but hit a snag with the compiler I don't grok. Would appreciate iof anyone (Ben or 'the other' Martin) could take a look. The problem appears when trying to use Timer1 (handle Timer2 in the panel). See attachment. The C-fil...
by jan.didden
Fri May 13, 2022 8:13 am
Forum: General
Topic: bitwise invert/complement?
Replies: 12
Views: 3261

Re: bitwise invert/complement?

Yes, both '^' and XOR now works correctly. Thanks!

Jan