Here is my Circuit
Here is the Pin Names for the RFID Reader Module.
I'm ussing a 2N2222A Transistor at the RF Module.
Depending of your actual code but... did you disable internal adcs?ADCON1=7
set PORTA.3 to outpuit, set here to LOw at the begining?
are you sure of your actual schematic? looks weird.. What is the part number of your RF module?
Last edited by mister_e; - 13th May 2005 at 15:02.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Here is my code:
Include "Modedefs.bas"
DEFINE OSC 20 ' Set the Xtal frequency to 20mHz
RFVDDPin VaR PORTA.3 ' RF Module Power Pin.
Main:
ADCON1 = 7 ' Set Analog pins to Digital.
TRISA = 0 ' Set all PortA Pins as output
high RFVDDPin ' Switch RF Module On.
end
by using end this make your pic to stop or goto lalaland IMHO.
what aboutalso be sure you set the oscillator configuration fuse to HS.Code:DEFINE OSC 20 ' Set the Xtal frequency to 20mHz ADCON1 = 7 ' Set Analog pins to Digital. TRISA = 0 ' Set all PortA Pins as output RFVDDPin VaR PORTA.3 ' RF Module Power Pin. Main: high RFVDDPin ' Switch RF Module On. here: goto here
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
"also be sure you set the oscillator configuration fuse to HS."
How do I do this?
in your PIC programmer software or into your code
click here to know set fuse into your code
be sure you have a PIC who can handle the 20Mhz clock. PIC16F877-20
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks