Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help on interfacing RFID reader and 8051

Status
Not open for further replies.

cloudkays

Newbie level 1
Newbie level 1
Joined
Jul 22, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
ASCII

Hi,
I'm currently interfacing RFID reader (using ID12 module) to 8051(AT89S52). After serially interface reader to pc (using 9600baud rate), I'm getting ASCII data from card1 (0D006AAC9259) and card2 (0D006A81DB3D). Now I would like to know how to program using assembly to represent the card so that each time card 1/ card 2 is tag, msg will appear in lcd. Here are some rough idea with no error but doesnt work as:

(im connecting RFID reader to P3.0(RxD) of 8051 for this purpose only)

CARD1: DB '0D 00 6A 81 DB 3D'
CARD2: DB '0D 06 6A AC 92 59'


ORG 100H

MOV TMOD,#20H
MOV TH1,#-3
MOV SCON,#50H
SETB SCON.4
SETB TR1
THIS:JNB RI,THIS
MOV A,SBUF
MOV P3,A
CJNE A,#CARD1,NEX
LJMP DISPLAY
NEX: CJNE A,#CARD2,THIS
LJMP DISPLAY
CLR RI
SJMP THIS


MOV A,#01
ACALL CMD
ACALL DELAY
MOV A,#06H
ACALL CMD
ACALL DELAY
MOV A,#81H
ACALL CMD
ACALL DELAY

DISPLAY: MOV A,#'O'
ACALL DAT
MOV A,#'K'
ACALL DAT
 

read rfid datasheet throughly. it outputs 10 bytes of data.

its not u mentioned like this
CARD1: DB '0D 00 6A 81 DB 3D'

consider each data has byte and change ur code accordingly.
 

I NEED THE C CODE TO BE BURNT IN 89C52 CONTROLLER I HAVE DESIGNED THE CIRCUIT FOR RFID READER.THE CONTROLLER SHOULD BE PROGRAMMED SUCH THAT IT SENDS SERIAL DATA TO THE PC.
I WOULD BE REALLY THANKFUL FOR ANYONE'S HELP
 
  • Like
Reactions: Nitul

    Nitul

    Points: 2
    Helpful Answer Positive Rating
@ theepak
i prepared a code in c for rfid interfacing with 8051 but is a not giving the correct output...ne more problem is that it is throwing contineous bits on hyperterminal....
can u give me that code for error correction
 

i have uploaded the c code for interfacing 8051 and RFID
 

Attachments

  • rfidprojectccode.zip
    5.4 KB · Views: 221

i am having c code for this...if u want reply
Hey, Deepak
Hw's ya?? Since you had mentioned that you are having c code for RFID reader interfaced with 8051, could you please lend me the code since currently am working on this project and it would be a great help if I could refer through some material. So, if you could send me the same, please drop me as soon as possible for you on my email address-ashishkhandelwal2003@gmail.com. I would be thankful to you!!!

---------- Post added at 19:46 ---------- Previous post was at 19:36 ----------

Hi Sir,
Currently am working on a project based on RFID being interfaced with 8051. Am using Vaio RFID module which is working fine with the hyperterminal emulator but am facing problem in receiving the same on LCD using 8051, I am confused about the serial connectivity between db-9 and max-232, am attaching the serial connectivity of module here and I request you to please send me the serial circuitry for the receiving end. It would be a great help.
Thanking You!!!
 

Hi Sir,
Currently am working on a project based on RFID being interfaced with 8051. Am using Vaio RFID module which is working fine with the hyperterminal emulator but am facing problem in receiving the same on LCD using 8051, I am confused about the serial connectivity between db-9 and max-232, am attaching the serial connectivity of module here and I request you to please send me the serial circuitry for the receiving end. It would be a great help.
Thanking You!!!
 

Attachments

  • sender's.jpg
    sender's.jpg
    26.3 KB · Views: 154

Hey,
Everbody!!! I am making a project related to RFID in which I want to receive the 12bytes on to the LCD connected to the 8051 circuitry but alas am just able to transfer the data@9600 baud rate instead of being able to get the data. Am attaching my circuit here, if anybody could help me with that. It'll be a great help.
Thanking You!!!
Ashish Khandelwal
 

Attachments

  • ashish.jpg
    ashish.jpg
    162.2 KB · Views: 164

i am having c code for this...if u want reply

i am working on the project which need to recieve card no. from a rfid card reader serially to 8051microcontroller. pls send me the code for the above mentioned prog.
the data is in ascii format (12 byte).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top