help me!!plea..se...
i am facing a problem in the rf receiver,my receiver is FM-RX1-433A
the chips i use is pic16f84a.
can someone help me to take a look on it?for my receiver pin
pin 1 connect to antenna
pin 2 connect to ground
pin 3 is DETECT connect to portB.3
pin 4 connect to ground
pin 5 connect to Vcc
pin 6 is AF,FM demodulator output--i left it unconnect
pin 7 connect to portB.0
Below is my code:
INCLUDE "modedefs.bas"
DEFINE OSC 4
INPUT portb.0
INPUT portb.3
OUTPUT portb.1
OUTPUT portb.2
led1 VAR PORTB.1
led2 VAR PORTB.2
Loop:
SERIN PORTB.0,N2400,["A"],portB.3
IF portB.3=1 Then l
GOSUB led_on
ELSE
GOSUB led_off
ENDIF
GOTO loop
led_on:
High led1
Low led2
PAUSE 5000
LOW led1
RETURN
led_off:
Low led1
High led2
PAUSE 5000
LOW led2
RETURN
End
and for the antenna, i am using the type like antenna of normal radio.is it another cause??if this is the problem,do u hv any better suggestion?
below is the link of the receiver datasheet that i used.
http://my.farnell.com/jsp/endecaSear...&Ntk=gensearch
Thank you for your consideration
Bookmarks