English
Language : 

M24LR64-R_1004 Datasheet, PDF (78/126 Pages) STMicroelectronics – 64 Kbit EEPROM with password protection & dual interface: 400kHz I²C serial bus & ISO 18000-3 mode 1 RF protocol at 13.56MHz
Commands codes
M24LR64-R
26.4
Write Single Block
On receiving the Write Single Block command, the M24LR64-R writes the data contained in
the request to the requested block and reports whether the write operation was successful
in the response. The Protocol_extention_flag should be set to 1 for the M24LR64-R to
operate correctly. If the Protocol_extention_flag is at 0, the M24LR64-R answers with an
error code. The Option_flag is supported.
During the RF write cycle Wt, there should be no modulation (neither 100% nor 10%).
Otherwise, the M24LR64-R may not program correctly the data into the memory. The Wt
time is equal to t1nom + 18 × 302 µs.
Table 41. Write Single Block request format
Request Request_
SOF
flags
Write
Single
Block
UID(1)
Block
number
Data
CRC16
Request
EOF
8 bits
21h
1. Gray means that the field is optional.
64 bits
16 bits
32 bits
16 bits
Request parameters:
● UID (optional)
● Block number
● Data
Table 42. Write Single Block response format when Error_flag is NOT set
Response SOF Response_flags
CRC16
Response EOF
8 bits
16 bits
Response parameter:
● No parameter. The response is send back after the writing cycle.
Table 43. Write Single Block response format when Error_flag is set
Response Response_
SOF
flags
Error code
CRC16
8 bits
8 bits
16 bits
Response
EOF
Response parameter:
● Error code as Error_flag is set:
– 03h: the option is not supported
– 0Fh: error with no information given
– 10h: the specified block is not available
– 12h: the specified block is locked and its contents cannot be changed.
– 13h: the specified block was not successfully programmed
78/126
Doc ID 15170 Rev 9