Discussion in "Project Help" started by    vinay melgiri    Apr 22, 2009.
Wed Apr 22 2009, 05:46 pm
#1
hi,
i m doing a project using rfid reader. i interfaced it successfully to PC but wen i interface it to my micro controller its not working. i verified the code by checking with pc's terminal software and it works fine there. so please can u help me...
Thu Apr 23 2009, 05:23 am
#2
Please attach a diagram and your code if possible.
Thu Apr 23 2009, 08:06 am
#3
#include<p89v51rx2.h>

#define Baud_rate 0xFD // BAUD RATE 9600

void main()
{
TMOD = 0x20;
SCON = 0x50;
TH1 = Baud_rate;
TR1 = 1;

while(1)
{
while(RI == 0);
P0=SBUF;
RI = 0;
}

}
Thu Apr 23 2009, 08:08 am
#4
i have written program to just read one byte from reader. i have connected leds to P0 to check output. the first byte shold be 03h but i m getting FFh
Thu Apr 23 2009, 11:48 am
#5
I think we really need the circuit diagram as well.
Thu Apr 23 2009, 05:06 pm
#6
i don have the circuit diagram as such. its just a simple interface of rfid scanner (MODULE DT125R Series by Digant Technologies) and microcontroller (p89v51rd2)
Fri Apr 24 2009, 02:21 am
#7
what commands are you sending to module.. coz module will only read if you send read command. read the datasheet carefully.
Fri Apr 24 2009, 08:35 am
#8
there is no need to send commands to read data. if we swipe card its enough. i have checked the reader output on CRO
Sat Apr 25 2009, 12:17 am
#9
CRO or hyperterminal? better test on hyperterminal.

do check baudrate.. and review your code..
Tue Apr 28 2009, 07:56 pm
#10
check whether the crystal connected is 11.0592Mhz

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MnoioCoove
Tue May 21 2024, 02:06 am
PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am