I have made some test. Yes, I get connection Now I see in the display of the receiver 0x5AF when transmitting , perfect . How you create the tx/rx I don´t know? But only if I use 315mHz tx/rx module, If I try with 433Mhz module I cannot get data trough and I have test with many?
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?
Just looked for you and it looks like there is a simulation, however this certainly won't run at high speeds, the best interrupt rate you are likely to get is probably around 50ms as this is the finest interrupt timing resolution that Windows provides.
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?
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 long as the timer interrupt is NOT enabled, with that icon disabled.
As soon as the enable timer interrupt icon is not disabled, and an IR msg start is received, the program cycles between the FallingEdge interrupt macro and a total restart, signified by the LED being extinguished for 1 second, then turned ON by a ghost interrupt, and this continues without any external input.
I'm not getting anywhere.
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 the isr, and it works all as intended.
Maybe the timer int enabling messes with the wrong interrupt register settings, I don't know.
But it is killing the app I've been working on.