English
Language : 

SRI2K Datasheet, PDF (16/45 Pages) STMicroelectronics – 13.56 MHz short-range contactless memory chip with 2048-bit EEPROM and anticollision functions
Memory mapping
SRI2K
4.2
32-bit binary counters
The two 32-bit binary counters located at block addresses 5 and 6, respectively, are used to
count down from 232 (4096 million) to 0. The SRI2K uses dedicated logic that only allows
the update of a counter if the new value is lower than the previous one. This feature allows
the application to count down by steps of 1 or more. The initial value in Counter 5 is
FFFF FFFEh and is FFFF FFFFh in Counter 6. When the value displayed is 0000 0000h,
the counter is empty and cannot be reloaded. The counter is updated by issuing the
Write_block command to block address 5 or 6, depending on which counter is to be
updated. The Write_block command writes the new 32-bit value to the counter block
address. Figure 16 shows examples of how the counters operate.
The counter programming cycles are protected by automated antitearing logic. This function
allows the counter value to be protected in case of power down within the programming
cycle. In case of power down, the counter value is not updated and the previous value
continues to be stored.
Figure 15. Binary counter (addresses 5 to 6)
Block
Address
5
6
MSb
b31
b24 b23
32-bit block
b16 b15
32-bit binary counter
32-bit binary counter
LSb
b8 b7
b0
Description
Count down
Counter
ai07660b
Figure 16. Countdown example (binary format)
b31
b0
Initial data
1 ... 1 1 1 1 1 1 1 1 1 1 1 1 1
1-unit decrement
1-unit decrement
1-unit decrement
1 ... 1 1 1 1 1 1 1 1 1 1 1 1 0
1 ... 1 1 1 1 1 1 1 1 1 1 1 0 1
1 ... 1 1 1 1 1 1 1 1 1 1 1 0 0
8-unit decrement
1 ... 1 1 1 1 1 1 1 1 1 0 1 0 0
Increment not allowed
1 ... 1 1 1 1 1 1 1 1 1 1 0 0 0
ai07661
The counter with block address 6 controls the Reload command used to reset the resettable
OTP area (addresses 0 to 4). Bits b31 to b21 act as an 11-bit Reload counter; whenever one
of these 11 bits is updated, the SRI2K detects the change and adds an Erase cycle to the
Write_block command for locations 0 to 4 (see the “Resettable OTP area” paragraph). The
Erase cycle remains active until a Power-off or a Select command is issued. The SRI2K’s
resettable OTP area can be reloaded up to 2 047 times (211-1).
16/45
Doc ID 15779 Rev 3