Here's a start. it reads and writes to the mfrc522.registers using the ssp module
I have made a demo for a 16f690 that loads up the regs [settings like in the Arduino demos ]
and reads them back. that bit is easy
I have not discovered how to read a card yet, the Arduino and python libs I have tried to
digest have code that's so obscure it leave me cold .
Arduino seems to poll CommIrqReg looking for a value of 0x45 [I think] but I have same regs set
but the card seems to be ignored , I'm just guessing how it works the reg never changes for me
reg printout for regs 1 to 3f
01,20 02,80 03,00 04,15 05,00 06,00 07,21 08,00
09,00 0A,00 0B,08 0C,10 0D,00 0E,A0 0F,00
10,00 11,3D 12,00 13,00 14,83 15,40 16,10
17,84 18,84 19,4D 1A,00 1B,00 1C,62 1D,00
1E,00 1F,EB 20,00 21,FF 22,FF 23,88 24,26
25,87 26,48 27,88 28,20 29,20 2A,8D 2B,A9
2C,00 2D,E8 2E,00 2F,00 30,00 31,00 32,00
33,80 34,00 35,00 36,40 37,92 38,00 39,00
3A,00 3B,88 3C,FF 3D,00 3E,03 3F,00
Bookmarks