Ram Prasadh
Member level 2
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
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