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.

Having some issues with a MFRC500 reader IC integrated with a 8051.

Status
Not open for further replies.

Ram Prasadh

Member level 2
Joined
Feb 16, 2011
Messages
51
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,725
Dear all,

I have integrated a MFRC500 reader IC with a p89v51rd2 uC. I have used Multiplexed address/data lines with separate read and write strobe configuration.I am just thinking of testing the working of the parallel connection by just reading a register from the MFRC. The MFRC contains the product information field at EEPROM address 00H to 0FH(16 bytes of information). I wrote a small assembly code for just reading this register by following the timing diagram given in the data sheet of MFRC500 on page 86. I am not able to get the default value specified in the data sheet.


initial_write_read:

mov p0,#00h
mov a,#00h //address of the page register
mov p0,a
setb ncs
setb nrd
setb 8eh //SFR address of the ALE in 8051
clr 8eh // a strobe signal is given to define the value on port as an address
mov p0,#0ffh
clr a
clr ncs
clr nrd
mov a,p0 //after making port as an input,getting a byte value from it.
setb ncs //I am expecting this value in a to be 30H(refer page 11 of the data sheet)
setb nrd
acall serial


Please help me with what mistake am doing. Happy to provide more information if needed.


Regards
Ram Prasadh
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top