Hello,
Currently in one of my applications I use the PN5320 to make the card reader to manage access.
For cost reasons, I want to switch to the PN512 model.
It's been a week since I try to make it work in the same way as the PN5320 (AutoWakeUp during a card detection and reading the data to have the ID tag).
For the moment, I manage to launch the Polling however when I present a card, nothing happens (no exchange with the oscilloscope), nothing in the data, nor of interruption.
My configuration code is as follows:
writePN512(TModeReg, 0x8D);
DelayMs(2);
writePN512(TPrescalerReg, 0x3E);
DelayMs(2);
writePN512(TReloadRegL, 30);
DelayMs(2);
writePN512(TReloadRegH, 0);
DelayMs(2);
writePN512(TxAutoReg, 0x40);
DelayMs(2);
writePN512(ModeReg, 0x3D);
DelayMs(2);
temp = readPN512(TxControlReg);
if (!(temp & 0x03))
{
setBitMask(TxControlReg, 0x03);
}
Do you have simple configuration examples to simply read tags?
In addition, when I want to put it in AutoWakeUp mode, I have continuous polling mode.
Thanks !
Valentin