Hi Ben!
Thank you for your job, ufortunalely I am not home before the weekend (job, in Norway) So I will make a test as soon I am back
Yes I have a scope and will check when I am back. I see your point now concerning directly connection, this will not work. Look forward to test.
Br Jorgen
Component sfk 433 Mhz serial for Arduino, ext.
-
- Posts: 681
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 569 times
- Been thanked: 146 times
-
- Posts: 681
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 569 times
- Been thanked: 146 times
Re: Component sfk 433 Mhz serial for Arduino, ext.
Hi Ben!
Finally home
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?
Your logig analyzer is it one like this: https://dk.rs-online.com/web/p/debugger ... er/1368070 Then I will buy one
Thank´s in advance Ben.
Finally home
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?
Your logig analyzer is it one like this: https://dk.rs-online.com/web/p/debugger ... er/1368070 Then I will buy one
Thank´s in advance Ben.
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: Component sfk 433 Mhz serial for Arduino, ext.
This is the one I got,
https://www.ebay.co.uk/itm/174456509939
However these are also branded saleae and cheaper for less channels but look good too.
https://www.ebay.co.uk/itm/194482907898 ... SwZmxhgCCi
I still have some tidying up to do and further optimising if we want to turn this into a component but glad you at least have something running now.
https://www.ebay.co.uk/itm/174456509939
However these are also branded saleae and cheaper for less channels but look good too.
https://www.ebay.co.uk/itm/194482907898 ... SwZmxhgCCi
I still have some tidying up to do and further optimising if we want to turn this into a component but glad you at least have something running now.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
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
Jan Didden
-
- Matrix Staff
- Posts: 1882
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 484 times
- Been thanked: 661 times
Re: Component sfk 433 Mhz serial for Arduino, ext.
Hi Jan,
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
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
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
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
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 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.
Jan Didden
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.
Jan Didden
- Attachments
-
- NEC Own Timer PIC.fcfx
- (27.45 KiB) Downloaded 206 times
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
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 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.
Jan
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.
Jan
-
- Posts: 82
- Joined: Thu Dec 17, 2020 3:16 pm
- Has thanked: 20 times
- Been thanked: 12 times
Re: Component sfk 433 Mhz serial for Arduino, ext.
To add: this erroneous behavior was independently confirmed by a highly regarded user here.
Jan
Jan