A very very very strange problem-Urgent help needed please!
Hi, I am having RF modules operating a switch only when button is pressed AND as long as the button is pressed on the Tx. I am using 12F635.
Problem is that the PIC LATCHES when I go beyond lets say 5 meters. When I come near and press the second button on the Tx the latch opens and it starts behaving fine.
RF Modules have a range of greater than 100 Meters. I can't figure out WHY is this happening?
I need urgent help on this please. Thanks
Code:
main:
Receiver code
serin gpio.2,N2400,100,stop,["p34"],b
if b=24 then gpio.1=1
if b=54 then gpio.0=1
goto main
stop:
gpio.1=0
gpio.0=0
goto main
Transmitter code
main:
if gpio.0=1 then
serout gpio.5,N2400,["p34",54] : pause 5 : low gpio.0 : endif
if gpio.1=1 then
serout gpio.5,N2400,["p34",24] : pause 5 : low gpio.1 : endif
Results for the hex files...
Hi, Bruce. The PICs with these hex files are not working. So I put my setup on a breadboard and by using a piece of wire between GP.5 of both. I do see a voltage pulse on GP.5(Tx) of the Transmitter but no response from the receiver. I used 2400 Baud. I await your feedback.