Using the FM-RTFQ1-433 transmitter and a FM-RRFQ1-433CTC receiver to send some data across a short range from one PIC to another. Using the code above
Tx code
include "modedefs.bas"
TRISA=%00000000
TRISB=%00001000
OPTION_REG.7=0 'Enable Pull-Up's on PORTB
ANSEL = 0 'turns off analogue inputs
OSCCON =$60 'sets internal osc to 4MHz
TRAIN VAR BYTE
PORTB.4 = 1 'turn enable pin high
TRAIN=$55
SEROUT PORTB.5,T2400,[TRAIN,TRAIN,TRAIN,TRAIN,TRAIN,9,3]
goto main
Rx code (part of)
test VAR WORD
SERIN PORTC.7,T2400,[9],test
IF test = 3 THEN
T1CON.0 = 1 ‘start timer module
When I try this code using a wire from pic to pic the timer starts but when I try to send the data over the rf link the timer doesn’t work. I can see the data out on the receiving module and I know rf is present since I have connected it to a spectrum analyser and there is a nice peak at 433Mhz. The pins have supply voltage and ground where required. Is there anything in particular that I am doing wrong in order to get the rf link to work?
Any help would be good since im getting stuck
Thanks
Bookmarks