SRIX4K commands SRIX4K
36/47
9.8 Write_block (Addr, Data) command
Command code = 09h
On receiving the Write_block command, the SRIX4K writes the 4 bytes contained in the
command to the addressed block, provided that the block is available and not write-
protected. Data bytes are transmitted with the least significant byte first, and each byte is
transmitted with the least significant bit first.
The address byte gives access to the 128 blocks of the SRIX4K (addresses 0 to 127).
Write_block commands issued with a block address above 127 will not be interpreted and
the SRIX4K will not return any response, except for the System area located at address
255.
The result of the Write_block command is submitted to the addressed block. See the
following Figures for a complete description of the Write_block command:
● Figure 13: Resettable OTP area (addresses 0 to 4).
● Figure 16: Binary counter (addresses 5 to 6).
● Figure 18: EEPROM (addresses 7 to 127).
The Write_block command does not give rise to a response from the SRIX4K. The reader
must check after the programming time, t
W
, that the data was correctly programmed. The
SRIX4K must have received a Select() command and be switched to Selected state before
any Write_block command can be accepted. All Write_block commands sent to the SRIX4K
before a Select() command is issued, are ignored.
Figure 45. Write_block request format
Request parameters:
● Address: block addresses from 0 to 127, or 255
● Data 1: Less significant data byte
● Data 2: Data byte
● Data 3: Data byte
● Data 4: Most significant data byte.
Figure 46. Write_block response format
SOF Data 1 CRC
L
CRC
H
EOF
AI07687b
8 bits
Data 2 Data 3 Data 4
8 bIts 8 bIts 8 bIts 8 bIts 8 bIts
Write_block Address
09h
8 bIts