Hi,
I have had two PICs talking to each other TX RX, via HC-12 radio modules. 18LF4520 to 18LF2431. I've now changed the RX PIC to 18LF4431. Programmed using Oshonsoft.
Here is the TX LOOP (MAIN):
main:
If button = 1 Then 'BUTTON NOT PRESSED
rled = 0
yled = 1
Hserout "$0", CrLf
waitms 100
Endif
If button = 0 Then 'BUTTON PRESSED
rled = 1
yled = 0
Hserout "$1", CrLf
waitms 100
Endif
Goto main
This is being received by a third HC-12 USB serial input to a Terminal ok.
Here is the RX program: The program is also a memory test for the PIC, so there are sections for use later, but it still compiles in Oshonsoft
I have attached a Logic analyser to the RX PCB, RX PIN and it shows the $0 or $1 is arriving at the PIN ok but not switching the LEDs as expected. It works in the Oshonsoft SIM.
Any ideas?
Camerart.
I have had two PICs talking to each other TX RX, via HC-12 radio modules. 18LF4520 to 18LF2431. I've now changed the RX PIC to 18LF4431. Programmed using Oshonsoft.
Here is the TX LOOP (MAIN):
main:
If button = 1 Then 'BUTTON NOT PRESSED
rled = 0
yled = 1
Hserout "$0", CrLf
waitms 100
Endif
If button = 0 Then 'BUTTON PRESSED
rled = 1
yled = 0
Hserout "$1", CrLf
waitms 100
Endif
Goto main
This is being received by a third HC-12 USB serial input to a Terminal ok.
Here is the RX program: The program is also a memory test for the PIC, so there are sections for use later, but it still compiles in Oshonsoft
I have attached a Logic analyser to the RX PCB, RX PIN and it shows the $0 or $1 is arriving at the PIN ok but not switching the LEDs as expected. It works in the Oshonsoft SIM.
Any ideas?
Camerart.
Attachments
-
14.8 KB Views: 7
Last edited: