
SCL3711
R
EFERENCE
M
ANUAL
44
6.4.1.8. Write-Erase 8 bytes (WRITE-E8)
Description
This command erases a memory block and then writes a value to it.
Format
CLA
INS
P1
P2
P3
Data
0xFF
0x5E
0x00
Block
Address
0x08
8 bytes of data to be
written
Where P2 codes the block address (value between 0x00 and 0xFF)
Response
Data
SW1 SW2
8 bytes of data that have been written
0x90 0x00
6.4.1.9. Write-No-Erase 8 bytes (WRITE-NE8)
Description
This command writes with no erase to a block of memory.
This command does not erase the value of the targeted block before writing the new data.
Using this command, EEPROM bits can be set but not reset.
Format
CLA
INS
P1
P2
P3
Data
0xFF
0x60
0x00
Block
Address
0x08
8 bytes of data to be
written
Where P2 codes the block address (value between 0x00 and 0xFF).
Response
Data
SW1 SW2
8 bytes of data
0x90 0x00
Example
Sending the following command to an NFC Forum type 1 tag that has the value (0x01 0x02
0x03 0x04 0x00 0x00 0x00 0x00) in the first EEPROM block
CLA
INS
P1
P2
P3
Data
0xFF
0x60
0x00
0x00
0x08
0x00 0x01 0x03 0x04
0x05 0x06 0x07 0x08
Will give the answer
Data
SW1 SW2
0x01 0x03 0x03 0x04
0x05 0x06 0x07 0x08
0x90 0x00