Instructions
NFC &
MIFARE & ISO14443AB & ISO15693 & ISO18000 & ISO7816 IC Card Module www.quio-rfid.de
Copyright © 2003-2022 Quick Ohm Küpper & Co. GmbH. All rights reserved. 17/101
4.2.3 Data Transaction
The module is a slave device of the I²C bus, so the host needs to write the command package
to module. The module will execute the command. Then the host needs to poll the status of the
module while it is working by sending out the command of “read” continuously. If the module
send an ACK to a read operation, then the last command execution were finished. At this time the
host could read the result and/or data from the module.
4.2.4 Description of Command Transaction
E.g.: To read the block 1 of MIFARE card; as "JCP04 Application layer protocol" an example,
the steps:
Send command: 0A210001FFFFFFFFFFFF2A
There are steps here:
A. Write command to module
1. Start condition.
2. Send control byte, it is 0xA0, the meaning is: address 0xA0 + write control 0x00.
3. Send module command: 0x0A210001FFFFFFFFFFFF.
4. Send command checksum: 0x2A.
5. Stop condition.
B. Send read command. If module no ACK, then the module is working. Repeat this step.
1. Start condition.
2. Send control byte 0xA1, it is I²C slave address 0xA0 + read control 0x01.
3. If module is no ACK, go to step B. if yes, go to step C.
C. Get the data bytes from module
1. Get the first byte and send ACK, if the data is 0x12, the meaning is there are 18 bytes
useful bytes in this package.
2. Get the else 17 bytes (0x12-1=0x11) data and send ACK after every byte.
3. Get the checksum and send NACK.
4. Stop condition.
D. Verify the checksum. If it is ok, the communication is ok.
4.3 SPI interface
4.3.1
Physical Interface
SPI (Serial Peripheral Interface) is a high speed, full duplex, sychoronos system bus. It works in
Master and Slave mode. The connection is show in below.