STMICROELECTRONICS LRI512

LRI512
Memory TAG IC 512 bit High Endurance EEPROM
13.56MHz, ISO 15693 Standard Compliant with E.A.S.
FEATURES SUMMARY
■ ISO15693 Standard: Fully Compliant
■ 13.56 MHz ±7 kHz Carrier Frequency
■ To the LRI512:
10% or 100% ASK modulation using:
– 1/4 pulse position coding (26 kbit/s)
– 1/256 pulse position coding (1.6 kbit/s)
■ From the LRI512:
Load modulation using Manchester coding with
423 kHz and 484 kHz subcarrier in:
– Fast data rate (26 kbit/s)
– Low data rate (6.6 kbit/s)
■ Internal Tuning Capacitor
■ 512 bits EEPROM with Block Lock Feature
■ 64-bit Unique Identifier (UID)
■ EAS features
■ READ block and WRITE block (32-bit blocks)
■ 5 ms Programming Time (typical)
■ More than 100,000 Erase/Write Cycles
■ More than 40 Year Data Retention
Figure 1. Delivery Forms
Antenna
(A1T/ISOR, A1S/ISOR)
Antenna
(A2T/ISOK)
Antenna
(C40)
Wafer
July 2002
1/54
LRI512
SUMMARY DESCRIPTION
The LRI512 is a contactless memory, powered by
an externally transmitted radio wave. It is fully
compliant with the ISO15693 recommendation for
radio-frequency power and signal interface.
The LRI512 contains 512 bits of Electrically
Erasable Programmable Memory (EEPROM). The
memory is organized as 16 blocks of 32 bits.
Figure 2. Logic Diagram
LRI512
Power
Supply
Regulator
512 bit
EEPROM
AC1
ASK
Demodulator
Manchester
Load
Modulator
AC0
AI04008B
The LRI512 is accessed by modulating the
13.56 MHz carrier frequency. Incoming data are
demodulated from the received signal amplitude
modulation (ASK, Amplitude Shift Keying). The
received ASK wave is 10% or 100% modulated
(amplitude modulation). The Data transfer rate is
1.6 kbit/s using the 1/256 pulse coding mode and
26 kbit/s using the 1/4 pulse coding modes.
Outgoing data are generated by antenna load
variation, using the Manchester coding, using one
or two sub-carrier frequencies at 423 kHz and
484 kHz. The Data transfer rate is 6.6 kbit/s, in the
low data rate mode, and 26 kbit/s, in the fast data
rate mode.
Table 1. Signal Names
AC1
Antenna Coil
AC0
Antenna Coil
Memory Mapping
The LRI512 is divided in 16 blocks of 32 bits. Each
block can be individually Write Protected using a
specific Lock command.
2/54
Table 2. LRI512 Memory Map
Addr 0
7
8
15
16
23
0
User Area
1
User Area
2
User Area
3
User Area
4
User Area
5
User Area
6
User Area
7
User Area
8
User Area
9
User Area
10
User Area
11
User Area
12
User Area
13
User Area
14
User Area
15
User Area
24
31
UID 0
UID 1
UID 2
UID 3
UID 4
UID 5
UID 6
UID 7
AFI
The User Area consists of blocks that are always
accessible in READ. WRITE commands are possible if the addressed block is not locked. During a
WRITE, the 32 bits of the block are replaced by the
new 32-bit value.
The LRI512 also has a 64-bit block that is used to
store the 64-bit Unique Identifier (UID). This UID is
compliant to the ISO15963 description, and its value is used during the anti-collision sequence (INVENTORY). This block is not accessible by the
user, and the value is written by ST on the production line.
The LRI512 also has an AFI register in which the
Application Family Identifier is stored, for use in
the anti-collision algorithm.
LRI512
Commands
The LRI512 supports the following commands:
– INVENTORY: used to perform the anti-collision
sequence.
– STAY QUIET: to put the LRI512 in quiet mode.
The LRI512 is then deselected and does not respond to any command.
– SELECT: used to select the LRI512. After this
command, the LRI512 processes all READ/
WRITE commands with the Select_Flag set.
– RESET TO READY: to put the LRI512 in the
ready state.
– READ BLOCK: to output the 32 bits of the selected block and its locking status.
– WRITE BLOCK: to write the 32-bit value in the
selected block, provided that it is not locked.
– LOCK BLOCK: to lock the selected block. After
this command, the block cannot be modified.
– WRITE AFI: to write the 8-bit value in the AFI
register, provided that it is not locked.
– LOCK AFI: to lock the AFI register.
– ACTIVATE EAS: to set the non volatile EAS bit.
When the EAS bit is set, the LRI512 answers to
the POOL EAS command.
– DEACTIVATE EAS: to reset the non volatile
EAS bit, so that the LRI512 no longer answers
to the POOL EAS command.
– POOL EAS: used to request all LRI512s in the
Reader field to generate the EAS signal, provided that their EAS bit is set.
Initial Dialogue for Vicinity Cards
The dialogue between the Vicinity Coupling Device (VCD) and the Vicinity Integrated Circuit Card
(LRI512) is conducted through the following consecutive operations:
– activation of the LRI512 by the RF operating
field of the VCD.
– transmission of a command by the VCD.
– transmission of a response by the LRI512.
These operations use the RF power transfer and
communication signal interface specified in the following paragraphs. This technique is called Reader Talk First (RTF).
Power Transfer
Power transfer to the LRI512 is accomplished by
radio frequency at 13.56 MHz via coupling antennas in the LRI512 and in the VCD. The RF operating field of the VCD is transformed on the LRI512
antenna as an AC voltage which is re-dressed, filtered and internally regulated. The amplitude
modulation (ASK) on this received signal is demodulated by the ASK demodulator.
Frequency
The ISO15693 standard defines the carrier frequency (fc) of the operating field to be
13.56 MHz ± 7 kHz.
Operating Field
The LRI512 operates continuously between H min
and Hmax.
– The minimum operating field is Hmin and has a
value of 150 mA/m rms.
– The maximum operating field is Hmax and has a
value of 5 A/m rms.
A VCD shall generate a field of at least Hmin and
not exceeding Hmax in the operating volume.
3/54
LRI512
COMMUNICATION SIGNAL FROM VCD TO LRI512
Figure 3. 100% Modulation Waveform
Since the LRI512 is fully compliant with the
ISO15693 recommendation, the descriptions and
illustrations that follow are very heavily based on
those of the ISO/IEC documents: ISO/IEC 15693a
2:2000(E) and ISO/IEC 15693-3:2001(E). This
105%
100%
has been done with the kind permission of the ISO
95%
Copyright Office.
60%
Communications between the VCD and the
LRI512 takes place using the modulation principle
of ASK (amplitude modulation). Two modulation
5%
indices are used, 10% and 100%. The LRI512 decodes both. The VCD determines which index is
t
used.
tRFR
tRFF
tRFSBL
The modulation index is defined as [a-b]/[a+b]
AI06683
where a and b are the peak and minimum signal
amplitude, respectively, of the carrier frequency.
Depending of the choice made by the VCD, a
“pause” will be created as described in Figure 3
and Figure 4.
Table 3. 10% Modulation Parameters
The LRI512 is operational for any degree of modulation index from between 10% and 30%.
hr
0.1 x (a-b)
max
hf
0.1 x (a-b)
max
Figure 4. 10% Modulation Waveform
hf
hr
tRFF
a
tRFSFL
b
tRFR
t
AI06655
4/54
LRI512
DATA RATE AND DATA CODING
The data coding implemented in the LRI512 uses
pulse position modulation. Both data coding
modes that are described in the ISO15693 are
supported by the LRI512. The selection is made
by the VCD and indicated to the LRI512 within the
Start of Frame (SOF).
Data Coding Mode: 1 Out of 256
The value of one single byte is represented by the
position of one pause. The position of the pause
on 1 of 256 successive time periods of 18.88 µs
(256/fC), determines the value of the byte. In this
case the transmission of one byte takes 4.833 ms
and the resulting data rate is 1.65 kbit/s (fC/8192).
Figure 5 illustrates this pulse position modulation
technique. In this figure, data E1h (225d) is sent by
the VCD to the LRI512.
The pause shall occur during the second half of
the position of the time period that determines the
value, as shown in Figure 6.
A pause during the first period transmit the data
value 00h. A pause during the last period transmits
the data value FFh (255d).
Figure 5. 1 Out of 256 Coding Mode
9.44 µs
Pulse
Modulated
Carrier
18.88 µs
0 1
2
3
. . . . . . . .
. . . . . . . . .
. . . . . . . . .
2
2
5
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . .
2
5
2
2
5
3
2
5
4
2
5
5
4.833 ms
AI06656
Figure 6. Detail of One Time Period
9.44 µs
18.88 µs
Pulse
Modulated
Carrier
.
.
.
.
.
.
.
.
2
2
4
2
2
5
.
.
.
.
.
.
2
2
6
Time Period
one of 256
AI06657
5/54
LRI512
Data Coding Mode: 1 Out of 4
The value of 2 bits is represented by the position
of one pause. The position of the pause on 1 of 4
successive time periods of 18.88 µs (256/fC), determines the value of the 2 bits. Four successive
pairs of bits form a byte, where the least significant
pair of bits is transmitted first.
In this case the transmission of one byte takes
302.08 µs and the resulting data rate is 26.48 kbit/
s (fC/512). Figure 7 illustrates the 1 out of 4 pulse
position technique and coding.
Figure 7. 1 Out of 4 Coding Mode
Pulse position for "00"
9.44 µs
9.44 µs
75.52 µs
Pulse position for "01" (1=LSB)
28.32 µs
9.44 µs
75.52 µs
Pulse position for "10" (0=LSB)
47.20µs
Pulse position for "11"
9.44 µs
75.52 µs
66.08 µs
9.44 µs
75.52 µs
AI06658
For example Figure 8 shows the transmission of
E1h (225d, 1110 0001b) by the VCD.
Figure 8. 1 Out of 4 Coding Example
10
00
01
11
75.52 µs
75.52 µs
75.52 µs
75.52 µs
AI06659
6/54
LRI512
is ready to receive command frames from the
VCD.
Start of Frame (SOF)
The SOF defines the data coding mode the VCD
is to use for the following command frame.
The SOF sequence described in Figure 9 selects
the 1 out of 256 data coding mode.
The SOF sequence described in Figure 10 selects
the 1 out of 4 data coding mode.
The EOF sequence for either coding mode is described in Figure 11.
VCD to LRI512 Frames
Frames are delimited by a Start of Frame (SOF)
and an End of Frame (EOF) and are implemented
using code violation. Unused options are reserved
for future use.
The LRI512 is ready to receive a new command
frame from the VCD after a delay of t2 after having
sent a response frame to the VCD (as specified in
Table 59).
The LRI512 generates a Power-on delay of tMINCD
after being activated by the powering field (as
specified in Table 59). After this delay, the LRI512
Figure 9. SOF to Select 1 Out of 256 Data Coding Mode
9.44 µs
9.44 µs
37.76 µs
37.76 µs
AI06661
Figure 10. SOF to Select 1 Out of 4 Data Coding Mode
9.44 µs
9.44 µs
9.44 µs
37.76 µs
37.76 µs
AI06660
Figure 11. EOF for Either Data Coding Mode
9.44 µs
9.44 µs
37.76 µs
AI06662
7/54
LRI512
COMMUNICATIONS SIGNAL FROM LRI512 TO VCD
ers mode, the LRI512 generates a continuous
For some parameters several modes have been
phase relationship between fS1 and fS2.
defined in order to allow for use in different noise
environments and application requirements.
Data Rates
Load Modulation
The LRI512 can respond using the low or the high
The LRI512 is capable of communication to the
data rate format. The selection of the data rate is
VCD via an inductive coupling area in which the
made by the VCD using the second bit in the procarrier is loaded to generate a subcarrier with fretocol header.
quency f S. The subcarrier is generated by switchTable 4 shows the different data rates the LRI512
ing in a load in the LRI512.
can achieve using each combination.
Subcarrier
The LRI512 supports the one subcarrier and two
Table 4. Response Data Rate
subcarriers response formats. These formats are
selected by the VCD using the first bit in the protoData Rate
One Subcarrier
Two Subcarriers
col header.
When one subcarrier is used, the frequency f S1 of
6.67 kbit/s
6.62 kbit/s
Low
(fC/2032)
(fC/2048)
the subcarrier load modulation is 423.75kHz (fC/
32).
26.69 kbit/s
26.48 kbit/s
High
When two subcarriers are used, the frequency fS1
(fC/508)
(fC/512)
is 423.75 kHz (fC/32), and the frequency f S2 is
484.28 kHz (fC/28). When using the two subcarri-
8/54
LRI512
BIT REPRESENTATION AND CODING
Data bits are encoded using Manchester coding,
according to the following schemes.
For the low data rate the same subcarrier frequency or frequencies are used, in this case the number of pulses shall be multiplied by 4 and all times
will increase by this factor.
Bit Coding Using One Subcarrier
High Data Rate. A logic 0 starts with 8 pulses of
423.75 kHz (fC/32) followed by an unmodulated
time of 18,88µs as shown in Figure 12.
Figure 12. Logic 0, High Data Rate
Low Data Rate. A logic 0 starts with 32 pulses of
423.75 kHz (fC/32) followed by an unmodulated
time of 75.52 µs as shown in Figure 14.
Figure 14. Logic 0, Low Data Rate
149.86 µs (ISO=151.04 µs)
AI06666
A logic 1 starts with an unmodulated time of
75.52 µs followed by 32 pulses of 423.75 kHz (fC/
32) as shown in Figure 15.
37.76 µs
Figure 15. Logic 1, Low Data Rate
AI06663
A logic 1 starts with an unmodulated time of
18.88 µs followed by 8 pulses of 423.75 kHz (fC/
32) as shown in Figure 13.
Figure 13. Logic 1, High Data Rate
149.86 µs (ISO=151.04 µs)
AI06665
37.76 µs
AI06664
9/54
LRI512
Bit Coding Using Two Subcarriers
High Data Rate. A logic 0 starts with 8 pulses of
423.75 kHz (fC/32) followed by 9 pulses of
484.28 kHz (fC/28) as shown in Figure 16.
Low Data Rate. A logic 0 starts with 32 pulses of
423.75 kHz (fC/32) followed by 36 pulses of
484.28 kHz (fC/28) as shown in Figure 18.
Figure 18. Logic 0, Low Data Rate
Figure 16. Logic 0, High Data Rate
149.86 µs ± 0.3 µs
37.46 µs
AI06668
AI06670
A logic 1 starts with 9 pulses of 484.28 kHz (fC/28)
followed by 8 pulses of 423.75 kHz (fC/32) as
shown in Figure 17.
A logic 1 starts with 36 pulses of 484.28 kHz (fC/
28) followed by 32 pulses of 423.75 kHz (fC/32) as
shown in Figure 19.
Figure 19. Logic 1, Low Data Rate
Figure 17. Logic 1, High Data Rate
149.86 µs ± 0.3 µs
37.46 µs
AI06667
AI06669
10/54
LRI512
LRI512 TO VCD FRAMES
Frames are delimited by an SOF and EOF and are
implemented using code violation. Unused options
are reserved for future use.
For the low data rate, the same subcarrier frequency or frequencies are used. In this case the
number of pulses shall be multiplied by 4.
The VCD is ready to receive a response frame
from the LRI512 within less than t1 after having
sent a command frame (as specified in Table 59).
SOF When Using One Subcarrier
High Data Rate. SOF comprises 3 parts: (see
Figure 20)
– an unmodulated time of 56.64 µs,
– 24 pulses of 423.75 kHz (fc/32),
– a logic 1 which starts with an unmodulated time
of 18.88 µs followed by 8 pulses of 423.75 kHz.
Low Data Rate. SOF comprises 3 parts: (see
Figure 21)
– an unmodulated time of 226.56 µs,
– 96 pulses of 423.75 kHz (fc/32),
– a logic 1 which starts with an unmodulated time
of 75.52 µs followed by 32 pulses of
423.75 kHz.
Figure 20. Start of Frame, High Data Rate, One Subcarrier
113.28 µs
37.76 µs
AI06671
Figure 21. Start of Frame, Low Data Rate, One Subcarrier
453.12 µs
149.86 µs (ISO=151.04 µs)
AI06672
11/54
LRI512
SOF When Using Two Subcarriers
High Data Rate. SOF comprises 3 parts: (see
Figure 22)
– 27 pulses of 484.28 kHz (fc/28),
– 24 pulses of 423.75 kHz (fc/32),
– a logic 1 which starts with 9 pulses of
484.28 kHz followed by 8 pulses of 423.75 kHz.
Low Data Rate. SOF comprises 3 parts: (see
Figure 23)
– 108 pulses of 484.28 kHz (fc/28),
– 96 pulses of 423.75 kHz (fc/32),
– a logic 1 which starts with 36 pulses of
484.28 kHz followed by 32 pulses of
423.75 kHz.
Figure 22. Start of Frame, High Data Rate, Two Subcarriers
112.39 µs
37.76 µs (ISO=37.46 µs)
AI06673
Figure 23. Start of Frame, Low Data Rate, Two Subcarriers
449.56 µs
149.86 µs ± 0.3 µs
AI06674
12/54
LRI512
EOF When Using One Subcarrier
High Data Rate. EOF comprises 3 parts: (see
Figure 24)
– a logic 0 which starts with 8 pulses of
423.75 kHz followed by an unmodulated time of
18.88 µs.
– 24 pulses of 423.75 kHz (fc/32),
– an unmodulated time of 56.64 µs.
Low Data Rate. EOF comprises 3 parts: (see
Figure 25)
– a logic 0 which starts with 32 pulses of
423.75 kHz followed by an unmodulated time of
75.52 µs.
– 96 pulses of 423.75 kHz (fc/32),
– an unmodulated time of 226.56 µs.
Figure 24. End of Frame, High Data Rate, One Subcarrier
113.28 µs
37.76 µs
AI06675
Figure 25. End of Frame, Low Data Rate, One Subcarrier
151.04 µs
453.12 µs
AI06676
13/54
LRI512
EOF When Using Two Subcarriers
High Data Rate. EOF comprises 3 parts: (see
Figure 26)
– a logic 0 which starts with 8 pulses of
423.75 kHz followed by 9 pulses of 484.28 kHz,
– 24 pulses of 423.75 kHz (fc/32),
– 27 pulses of 484.28 kHz (fc/28).
Low Data Rate. EOF comprises 3 parts: (see
Figure 27)
– a logic 0 which starts with 32 pulses of
423.75 kHz followed by 36 pulses of
484.28 kHz,
– 96 pulses of 423.75 kHz (fc/32),
– 108 pulses of 484.28 kHz (fc/28).
Figure 26. End of Frame, High Data Rate, Two Subcarriers
37.46 µs
112.39 µs
AI06677
Figure 27. End of Frame, Low Data Rate, Two Subcarriers
151.62 µs (ISO=149.86 µs)
449.56 µs
AI06678
14/54
LRI512
UNIQUE IDENTIFIER (UID)
The LRI512s are uniquely identified by a 64-bit
Unique Identifier (UID). This UID complies with
ISO/IEC 15963 and ISO/IEC 7816-6. The UID is a
read only code, and comprises:
– The 8 MSB is E0h
– The IC Manufacturer code of ST 02h, on 8 bits
(ISO/IEC 7816-6/AM1)
– A Unique Serial Number on 48 bits.
The UID is used for addressing each LRI512
uniquely and individually, during the anti-collision
APPLICATION FAMILY IDENTIFIER (AFI)
The AFI (Application Family Identifier) describes
the type of application targeted by the VCD, and is
used to extract from all the LRI512s present only
the LRI512s meeting the required application criteria.
It is programmed by the LRI512 issuer in the AFI
register. Once programmed and Locked, it cannot
be modified.
The most significant nibble of AFI is used to code
one specific or all application families.
The least significant nibble of AFI is used to code
one specific or all application sub-families. Subfamily codes, other than 0, are proprietary.
(See ISO 15693-3 documentation)
loop and for one-to-one exchange between a VCD
and a LRI512.
Table 5. UID Format
MSB
LSB
63
56
55
48
E0h
02h
47
0
Unique Serial Number
Figure 28. LRI512 Decision Tree for AFI
Inventory Request
Received
No
AFI Flag
Set ?
Yes
AFI value
=0?
No
Yes
AFI value
= Internal
value ?
No
Yes
Answer given by the LRI512
to the Inventory Request
No Answer
AI06679
CRC
The CRC used in the LRI512 is calculated as per
the definition in ISO/IEC 13239.
The initial register content is all ones: FFFFh.
The 2-byte CRC is appended to each Request and
each Response, within each frame, before the
EOF. The CRC is calculated on all the bytes after
the SOF up to the CRC field.
Upon reception of a Request from the VCD, the
LRI512 verifies that the CRC value is valid. If it is
invalid, it discards the frame, and does not answer
the VCD.
Upon reception of a Response from the LRI512, it
is recommended that the VCD verify that the CRC
value is valid. If it is invalid, actions to be performed are left to the responsibility of the VCD designer.
The CRC is transmitted Least Significant Byte first.
Each byte is transmitted Least Significant Bit first.
Table 6. CRC Transmission Rules
LSByte
LSBit
MSByte
MSBit
CRC 16 (8bits)
LSBit
MSBit
CRC 16 (8 bits)
15/54
LRI512
LRI512 PROTOCOL DESCRIPTION
The Transmission protocol defines the mechanism to exchange instructions and data between
the VCD and the LRI512, in both directions.
It is based on the concept of “VCD talks first”.
This means that any LRI512 does not start transmitting unless it has received and properly decoded an instruction sent by the VCD.
The protocol is based on an exchange of
– a Request from the VCD to the LRI512
– a Response from the LRI512 to the VCD
Each Request and each Response is contained in
a Frame. The frame delimiters (SOF, EOF) are described in the previous paragraphs.
Each Request consists of
– Request SOF (see Figure 9 and Figure 10)
– Flags
– A Command Code
– Parameters, depending on the Command
– Application data
Each Response consists of
– Answer SOF (see Figure 20 to Figure 23)
– Flags
– Parameters, depending on the Command
– Application data
– 2-byte CRC
– Answer EOF (see Figure 24 to Figure 27)
The protocol is bit-oriented. The number of bits
transmitted in a frame is a multiple of eight (8) –
that is, an integer number of bytes.
A single-byte field is transmitted Least Significant
Bit (LSBit) first.
A multiple-byte field is transmitted Least Significant Byte (LSByte) first, each byte is transmitted
Least Significant Bit (LSBit) first.
The setting of the flags indicates the presence of
the optional fields. When the flag is set (to one),
the field is present. When the flag is reset (to zero),
the field is absent.
– 2-byte CRC
– Request EOF (see Figure 11)
Table 7. VCD Request Frame Format
Request
SOF
Request Flags
Command Code
Parameters
Data
2 Bytes
CRC
Request
EOF
Table 8. LRI512 Response Frame Format
Response
SOF
Response
Flags
Parameters
Data
2 Bytes
CRC
Response
EOF
Figure 29. LRI512 Protocol Timing
VCD
Request Frame
(Table 7)
Request Frame
(Table 7)
Response Frame
(Table 8)
LRI512
Timing
t1
Response Frame
(Table 8)
t2
t1
t2
AI06830
16/54
LRI512
LRI512 STATES
A LRI512 can be in one of four states:
– Power-off
Quiet State
When in the Quiet State, the LRI512 answers any
Request other than an Inventory Request with the
Address_Flag set.
Selected State
In the Selected State, the LRI512 answers to any
Request in all modes:
– Request in Select mode with the Select flag set
– Request in Addressed mode if the UID match.
– Request in Non-Addressed mode as it is general Request.
– Ready
– Quiet
– Selected
Transitions between these states are specified in
Figure 30 and Table 9.
Power-off State
The LRI512 is in the Power-off state when it does
not receive enough energy from the VCD.
Ready State
The LRI512 is in the Ready state when it receives
enough energy from the VCD. It shall answer any
Request where the Select_Flag is not set.
Table 9. LRI512 Response, Depending on the States of the Request Flags
Address_Flag
Flags
1
Addressed
Select_Flag
0
Non Addressed
LRI512 in Ready or Selected state (Devices
in Quiet state do not answer)
X
LRI512 in Selected state
X
LRI512 in Ready, Quiet or Selected state (the
device which match the UID)
X
Error (03h)
X
1
Selected
0
Non Selected
X
X
X
X
17/54
LRI512
Figure 30. LRI512 State Transition Diagram
Power Off
In field
Out of field
Out of field
uie
t (U
ID
)
yq
St
a
y
ad
re
to
et
Re
s
Any other Command
where Select_Flag
is not set
e
er r
)
ID
wh o
y et D)
(U
ad s UI
ct
le
re is t
o ag en
Se
t t Fl er
se ct_ diff
Re ele ect(
S el
S
Out of field
Ready
Select (UID)
Quiet
Stay quiet(UID)
Any other command where the
Address_Flag is set AND
where Inventory_Flag is not set
Selected
Any other command
AI06681
Note: The intention of the state transition method is that only one LRI512 should be in the selected state at a time.
18/54
LRI512
MODES
The set of LRI512s that can answer a given Request are those whose current “Mode” is the appropriate one for that request.
Addressed Mode
When the Address_flag is set to 1 (addressed
mode), the Request shall contain the Unique ID
(UID) of the addressed LRI512.
Any LRI512 receiving a Request with the
Address_flag set to 1 shall compare the received
Unique ID to its own UID.
If it matches, it shall execute it (if possible) and return a Response to the VCD as specified by the
command description.
If it does not match, it shall remain silent.
Non-Addressed mode (General Request)
When the Address_flag is set to 0 (non-addressed
mode), the Request shall not contain a Unique ID.
Any LRI512 receiving a Request with the
Address_flag set to 0 executes it and returns a Response to the VCD as specified by the command
description.
Select Mode
When the Select_flag is set to 1 (select mode), the
Request shall not contain a LRI512 Unique ID.
The LRI512 in the Selected State receiving a Request with the Select_flag set to 1 executes it and
returns a Response to the VCD as specified by the
command description.
Only LRI512s in the Selected State answer to a
Request having the Select Flag set to 1.
The system design ensures in theory that only one
LRI512 can be in the Select state.
19/54
LRI512
REQUEST FORMAT
The Request consists of
– SOF
Table 12. Request Flags 5 to 8 when Bit 3 = 0
– Flags
0
Request shall be executed by
any LRI512 according to the
setting of Address_flag
1
Request shall be executed only
by LRI512 in Selected State
0
Request is not addressed. UID
field is not present. It shall be
executed by all LRI512.
1
Request is addressed. UID field
is present. It shall be executed
only by the LRI512 whose UID
matches the UID specified in
the Request.
Bit 5 Select flag
– A Command Code
– Parameters and Data
– CRC
– EOF
Table 10. General Request Format
S
Request Command
O
Parameters
Flags
Code
F
Data
Bit 6
E
CRC O
F
Request Flags
In a Request, the flags field specifies the actions to
be performed by the LRI512, and whether corresponding fields are present or not.
It consists of eight bits.
The bit 3 (Inventory_flag) of the request flag defines the content of the 4 MSBs (bits 5 to 8).
When bit 3 is reset (0), bits 5 to 8 define the
LRI512 selection criteria.
When bit 3 is set (1), bits 5 to 8 define the LRI512
Inventory parameters.
Table 11. Request Flags 1 to 4 Definition
Bit 1
Bit 2
Bit 3
Bit 4
0
A single sub-carrier frequency
shall be used by the LRI512
1
Two sub-carriers shall be used
by the LRI512
0
Low data rate is used
1
High data rate is used
0
Flags 5 to 8 meaning are
according to Table 12
1
Flags 5 to 8 meaning are
according to Table 13
0
No Protocol format extension
Sub-carrier
flag
Data_rate
flag
Inventory
flag
Protocol
Extension
flag
Note: 1. Sub-carrier_flag refers to the LRI512-to-VCD communication.
2. Data_rate_flag refers to the LRI512-to-VCD communication
20/54
Address
flag
Bit 7 Option flag
0
Bit 8
0
RFU
Note: if the Select_flag is set to 1, the Address_flag shall be set to
0 and the UID field shall not be present in the Request.
Table 13. Request Flags 5 to 8 when Bit 3 = 1
Bit 5
0
AFI field is not present
1
AFI field is present
0
16 slots
1
1 slot
AFI flag
Bit 6 Nb_slots flag
Bit 7
Option flag
0
Bit 8
RFU
0
LRI512
RESPONSE FORMAT
The Response consists of
– SOF
Response Error Code
If the Error Flag is set by the LRI512 in the Response, the Error Code field is present and provides information about the error that occurred.
The following error codes are specified. Other
codes are reserved for future use.
– Flags
– Parameters and Data
– CRC
– EOF
Table 16. Response Error Code Definition
Error
Code
Table 14. General Response Format
Response
SOF
Parameters
Flags
Data
CRC EOF
Response Flags
In a Response, the flags field indicates how actions have been performed by the LRI512 and
whether corresponding fields are present or not. It
consists of eight bits.
Meaning
03h
The option is not supported
10h
The specified block is not available
11h
The specified block is already locked and thus
cannot be locked again
12h
The specified block is locked and its content
cannot be changed.
Table 15. Response Flags 1 to 8 definition
Bit 1
0
No error
1
Error detected. Error code is
in the “Error” field.
Error flag
Bit 2
RFU
0
Bit 3
RFU
0
Bit 4
Extension
flag
0
Bit 5
RFU
0
Bit 6
RFU
0
Bit 7
RFU
0
Bit 8
RFU
0
No extension
21/54
LRI512
ANTI-COLLISION
The purpose of the anti-collision sequence is to inventory the LRI512s present in the VCD field by
their unique ID (UID).
The VCD is the master of the communication with
one or multiple LRI512s. It initiates LRI512 communication by issuing the Inventory Request.
The LRI512 sends its Response in the slot determined, or might not respond.
Request parameters
When issuing the Inventory Command, the VCD
shall:
– set the Nb_slots_flag to the desired setting,
– add after the Command Field the Mask Length
and the Mask Value,
– The Mask Length is the number of significant
bits of the Mask Value.
– The Mask Value is contained in an integer number of bytes. The Mask Length indicates the
number of significant bits. LSB shall be transmitted first.
– If the Mask Length is not a multiple of 8 bits, the
Mask Value MSB shall be padded with the required number of null bits (set to 0) so that the
Mask Value is contained in an integer number of
bytes.
– The next field starts on the next byte boundary.
Table 17. Inventory Request Format
MSB
SOF
LSB
Request
Flags
Command
Optional AFI
Mask
Length
Mask Value
CRC
8 bits
8 bits
8 bits
8 bits
0 to 8 bytes
16 bits
In the example of the Table 18 and Figure 31, the
Mask Length is 11 bits. The Mask Value MSB is
padded with five bits set to 0. The 11 bits Mask
plus the current slot number is compared to the
UID.
22/54
EOF
Table 18. Example of the Padding of a 11 bits
Mask Value
(b15) MSB
LSB (b0)
0000 0
100 1100 1111
Pad
11 bits Mask Value
LRI512
Figure 31. Principle of Comparison between the Mask, Slot Number and UID
MSB
LSB
0000 0100 1100 1111 b 16 bits
Mask value received in the Inventory command
MSB
LSB
100 1100 1111 b 11 bits
The Mask value less the padding 0s is loaded
into the Tag comparator
MSB LSB
xxxx
The Slot counter is calculated
Nb_slots_flags = 0 (16 slots), Slot Counter is 4 bits
The Slot counter is concatened to the Mask value
Nb_slots_flags = 0
The concatenated result is compared with
the least significant bits of the Tag UID.
4 bits
MSB
LSB
xxxx 100 1100 1111 b 15 bits
UID
b63
b0
xxxx xxxx ..... xxxx xxxx x xxx xxxx xxxx xxxx b
Bits ignored
64 bits
Compare
AI06682
The AFI field shall be present if the AFI_flag is set.
The pulse shall be generated according to the definition of the EOF in ISO/IEC 15693-2.
The first slot starts immediately after the reception
of the Request EOF.
To switch to the next slot, the VCD sends an EOF.
The following rules and restrictions apply:
– if no LRI512 answer is detected, the VCD may
switch to the next slot by sending an EOF
– if one or more LRI512 answers are detected, the
VCD shall wait until the complete frame has
been received before sending an EOF for
switching to the next slot.
23/54
LRI512
REQUEST PROCESSING BY THE LRI512
Upon reception of a valid Request, the LRI512
performs the following algorithm, where:
– NbS is the total number of slots (1 or 16)
– SN is the current slot number (0 to 15)
– LSB (value, n) function returns the n least significant bits of the value
– MSB (value, n) function returns the n most significant bits of the value
– “&” is the concatenation operator
– Slot_Frame is either a SOF or an EOF
SN = 0
if (Nb_slots_flag)
then NbS = 1
SN_length = 0
endif
else NbS = 16
SN_length = 4
endif
EXPLANATION OF THE POSSIBLE CASES
Figure 32 summarizes the main possible cases
that can occur during an anti-collision sequence
when the slot number is 16.
The different steps are:
– The VCD sends an Inventory Request, in a
frame, terminated by an EOF. The number of
slots is 16.
– LRI512 #1 transmits its Response in Slot 0. It is
the only one to do so, therefore no collision occurs and its UID is received and registered by
the VCD;
– The VCD sends an EOF, meaning to switch to
the next slot.
– In slot 1, two LRI512s, #2 and #3, transmit their
Responses. This generates a collision. The
VCD records it, and remembers that a collision
was detected in Slot 1.
– The VCD sends an EOF, meaning to switch to
the next slot.
24/54
label1:
if LSB(UID, SN_length + Mask_length) =
LSB(SN,SN_length)&LSB(Mask,Mask_length)
then answer to inventory request
endif
wait (Slot_Frame)
if Slot_Frame = SOF
then Stop Anticollision
decode/process request
exit
endif
if Slot_Frame = EOF
if SN < NbS-1
thenSN = SN + 1
goto label1
exit
endif
endif
– In Slot 2, no LRI512 transmits a Response.
Therefore the VCD does not detect a LRI512
SOF and decides to switch to the next slot by
sending an EOF.
– In slot 3, there is another collision caused by
Responses from LRI512 #4 and #5
– The VCD then decides to send a Request (for
instance a Read Block) to LRI512 #1, whose
UID was already correctly received.
– All LRI512s detect a SOF and exit the anti-collision sequence. They process this Request and
since the Request is addressed to LRI512 #1,
only LRI512 #1 transmits its Response.
– All LRI512s are ready to receive another Request. If it is an Inventory command, the slot
numbering sequence restarts from 0.
Note: the decision to interrupt the anti-collision sequence is up to the VCD. It could have continued
to send EOFs until Slot 15 and then send the Request to LRI512 #1.
Time
Comment
Timing
LRI512s
VCD
SOF
Inventory
EOF
Request
t1
No
collision
Response
1
Slot 0
t2
EOF
t1
Collision
Response
3
Response
2
Slot 1
t2
EOF
No
Response
t3
Slot 2
EOF
t1
Collision
Response
5
Response
4
Slot 3
t2
SOF
Request to
EOF
LRI512 1
t1
AI06831
Response
from
LRI512 1
LRI512
Figure 32. Description of a Possible Anti-collision Sequence
25/54
LRI512
TIMING DEFINITION
t1: LRI512 Response Delay
t1 is as defined in Table 19.
Upon detection of the rising edge of the EOF received from the VCD, the LRI512 wait for a time
equal to
t1(typ) = 4352/fC (see Table 59)
before starting to transmit its response to a VCD
request or switch to the next slot when in an inventory process.
The EOF is defined in page 7.
t2: VCD New Request Delay
t2 is the time after which the VCD may send an
EOF to switch to the next slot when one or more
LRI512 responses have been received during an
inventory command. It starts from the reception of
the EOF received from the LRI512s.
The EOF sent by the VCD may be either 10% or
100% modulated independent of the modulation
index used for transmitting the VCD request to the
LRI512.
t2 is also the time after which the VCD may send a
new request to the LRI512 as described in Figure
29., LRI512 Protocol Timing, on page 16.
t2(min) = 4192/fC (see Table 59)
t3: VCD New Request Delay when No LRI512
Response
t3 is the time after which the VCD may send an
EOF to switch to the next slot when no LRI512 response has been received.
The EOF sent by the VCD may be either 10% or
100% modulated independent of the modulation
26/54
index used for transmitting the VCD request to the
LRI512.
From the time the VCD has generated the rising
edge of an EOF:
– If this EOF is 100% modulated, the VCD shall
wait a time at least equal to t3minimum before
sending a subsequent EOF.
– If this EOF is 10% modulated, the VCD shall
wait a time at least equal to the sum of t3minimum
+ the nominal response time of a LRI512, which
depend on the LRI512 data rate and subcarrier
modulation mode before sending a subsequent
EOF.
Table 19. Timing Values (see Table 59)
Min.
Nominal
Max.
t1
t1(min)
t1(typ)
t1(max)
t2
t2(min)
—
—
t3
t1(max) + tSOF
(notes1,2)
—
—
Note: 1. tSOF is the duration for the LRI512 to transmit an SOF to
the VCD. tSOF is dependant on the current data rate:
High data rate or Low data rate.
2. t1(max) does not apply for write alike requests. Timing
conditions for write alike requests are defined in the command description.
3. The tolerance of specific timings is ± 32/fC.
LRI512
COMMAND CODES
The LRI512 supports the following command
codes:
Table 20. Command Codes
Command Code
Function
0x01
Inventory
0x02
Stay Quiet
0x20
Read Single Block
0x21
Write Single Block
0x22
Lock Block
0x25
Select
0x26
Reset to Ready
0x27
Write AFI
0x28
Lock AFI
0xA0
Activate EAS
0xA1
De-activate EAS
0xA2
POOL EAS
27/54
LRI512
INVENTORY
Command Code = 0x01
When receiving the Inventory request, the LRI512
performs the anti-collision sequence. The
Inventory_flag shall be set to 1. The Meaning of
Flags 5 to 8 is according to Table 13., Request
Flags 5 to 8 when Bit 3 = 1, on page 20. The Request (Table 21) contains:
– Flags,
– Inventory Command code
– AFI if the AFI flag is set
Note on Inventory Operation. In the current
LRI512 device, it is not possible to use the full
range of Mask Length capability to covert the complete INVENTORY sequence. Values above the
ones mentioned are not allowed:
– 16 slots mode (Request flag b6=0): Mask
Length must be in the range 0 to 27.
– 1 slot mode (Request flag b6=1): Mask
Length must be in the range 0 to 20.
STMicroelectronics programs the UID in such a
way that it guarantees that the anti-collision sequence is able to detect all LRI512 in the reader
field.
– Mask Length
– Mask Value
– CRC
The Response (Table 22) contains:
– Flags
– DSFID (always 00h)
– Unique ID
Table 21. Inventory Request Format
Request
SOF
Request
Flags
Inventory
8 bits
0x01
Optional AFI Mask Length
8 bits
8 bits
Mask Value
CRC16
0 - 64 bits
16 bits
Request
EOF
Table 22. Inventory Response Format
Response
SOF
28/54
Response
Flags
DSFID
UID
CRC16
8 bits
0x00
64 bits
16 bits
Response
EOF
LRI512
STAY QUIET
Command Code = 0x02
When receiving the Stay Quiet command, the
LRI512 enters the Quiet State, and does not send
back a Response. There is no response to the
Stay Quiet Command.
When in the Quiet State:
– the LRI512 does not process any Request if
Inventory_flag is set,
– the LRI512 processes any addressed Request
The LRI512 exits the Quiet State when:
– reset (power off)
– receiving a Select request. It then goes to the
Selected state
– receiving a Reset to Ready request. It then
goes to the Ready state.
The Stay Quiet Command (Table 23) shall always
be executed in Addressed Mode (Select_Flag is
set to 0 and Address_Flag is set to 1).
Table 23. Stay Quiet Request Format
Request
SOF
Request
Flags
Stay Quiet
UID
CRC16
8 bits
0x02
64 bits
16 bits
Request
EOF
Figure 33. STAY QUIET Frame Exchange between VCD and LRI512
VCD
SOF
Stay Quiet
Request
EOF
AI06842
29/54
LRI512
READ SINGLE BLOCK
Request parameter (Table 24):
– Option_Flag
Command Code = 0x20
When receiving the Read Single Block Command,
the LRI512 read the requested block and send
back its 32 bits value in the Response.The
Option_Flag is supported.
– UID (Optional)
– Block Number
Response parameter (Table 25):
– Block Locking Status if Option_Flag is set
– 4 bytes of Block Data
Response parameter (Table 27):
– Error Code as Error_Flag is set
Table 24. Read Single Block Request Format
Request
SOF
Request
Flags
Read Single
Block
UID
Block
Number
CRC16
8 bits
0x20
64 bits
8 bits
16 bits
Request
EOF
Table 25. Read Single Block Response Format when Error_Flag is NOT Set
Response
SOF
Response
Flags
Block
Locking
Status
Data
CRC16
8 bits
8 bits
32 bits
16 bits
Response
EOF
Table 26.
b7 (bit b0 for ISO)
b6
b5
b4
0: Current Block not locked
1: Current Block locked
b3
b2
b1
b0
Reserved for future used. All at 0
Table 27. Read Single Block Response Format when Error_Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 34. READ Single Block Frame Exchange between VCD and LRI512
VCD
SOF
Read Single
Block Request
EOF
LRI512
SOF
t1
Read Single
Block Response
EOF
AI06832
30/54
LRI512
WRITE SINGLE BLOCK
Command Code = 0x21
When receiving the Write Single Block Command,
the LRI512 writes the requested block with the
data contained in the Request, and reports the
success of the operation in the Response. The
Option_Flag is not supported.
During the write cycle, tW, no modulation (neither
100% nor 10%) shall occur, otherwise the LRI512
may program the data incorrectly in the memory.
The tW delay is a multiple of t1nominal.
Request parameter (Table 28):
– UID (Optional)
– Block Number
– Data
Response parameter (Table 29):
– No parameter. The response is sent back after the write cycle
Response parameter (Table 30):
– Error Code as Error_Flag is set
Table 28. Write Single Block Request Format
Request
SOF
Request
Flags
Write Single
Block
UID
Block
Number
Data
CRC16
8 bits
0x21
64 bits
8 bits
32 bits
16bits
Request
EOF
Table 29. Write Single Block Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 30. Write Single Block Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 35. WRITE Single Block Frame Exchange between VCD and LRI512
VCD
SOF
Write Single
Block Request
EOF
SOF
LRI512
t1
Write Single
Block Response
LRI512
EOF
SOF
tw
t1
Write sequence when error
Write Single
Block Response
EOF
AI06833
31/54
LRI512
LOCK BLOCK
Command Code = 0x22
When receiving the Lock Block Command, the
LRI512 lock permanently the requested block. The
Option_Flag is not supported.
During the write cycle tW, no modulation (never
100% nor 10%) shall occur. If so, the LRI512 may
not lock correctly the memory block. The tW delay
is a multiple of t 1nominal.
Request parameter (Table 31):
– (Optional) UID
– Block Number
Response parameter (Table 32):
– No parameter.
Response parameter (Table 33):
– Error Code as Error_Flag is set
Table 31. Lock Single Block Request Format
Request
SOF
Request
Flags
Lock Block
UID
Block
Number
CRC16
8 bits
0x22
64 bits
8 bits
16 bits
Request
EOF
Table 32. Lock Block Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 33. Lock Block Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 36. LOCK Block Frame Exchange between VCD and LRI512
VCD
SOF
Lock Block
Request
EOF
SOF
LRI512
t1
Lock Block
Response
LRI512
EOF
SOF
tw
t1
Lock sequence when error
Lock Block
Response
EOF
AI06834
32/54
LRI512
SELECT
Command Code = 0x25
When receiving the Select Command:
– if the UID is equal to its own UID, the LRI512 enter or stay in the Selected state and send a Response.
– if it is different, the selected LRI512 return to the
Ready state and do not send a Response.
Request parameter (Table 34):
– UID
Response parameter (Table 35):
– No parameter.
Response parameter (Table 36):
– Error Code as Error_Flag is set
Table 34. Select Request Format
Request
SOF
Request
Flags
Select
UID
CRC16
8 bits
0x25
64 bits
16 bits
Request
EOF
Table 35. Select Block Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 36. Select Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 37. SELECT Frame Exchange between VCD and LRI512
VCD
SOF Select Request EOF
SOF
LRI512
Select Response EOF
t1
AI06835
33/54
LRI512
RESET TO READY
Command Code = 0x26
When receiving a Reset to Ready Command, the
LRI512 return to the Ready state.
Request parameter (Table 37):
– UID (Optional)
Response parameter (Table 38):
– No parameter.
Response parameter (Table 39):
– Error Code as Error_Flag is set
Table 37. Reset to Ready Request Format
Request
SOF
Request
Flags
Reset to
Ready
UID
CRC16
8 bits
0x26
64 bits
16 bits
Request
EOF
Table 38. Reset to Ready Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 39. Reset to ready Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 38. RESET to READY Frame Exchange between VCD and LRI512
VCD
SOF
Reset to Ready
EOF
Request
SOF
LRI512
t1
Reset to Ready
Response
EOF
AI06836
34/54
LRI512
WRITE AFI
Command Code = 0x27
When receiving the Write AFI Request, the LRI512
write the AFI byte value into its memory. The
Option_Flag is not supported.
During the write cycle tW, no modulation (never
100% nor 10%) shall occur. If so, the LRI512 may
not Write correctly the AFI value into the memory.
The tW delay is a multiple of t1nominal.
Request parameter (Table 40):
– UID (Optional)
– AFI
Response parameter (Table 41):
– No parameter.
Response parameter (Table 42):
– Error Code as Error_Flag is set
Table 40. Write AFI Request Format
Request
SOF
Request
Flags
Write AFI
UID
AFI
CRC16
8 bits
0x27
64 bits
8 bits
16 bits
Request
EOF
Table 41. Write AFI Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 42. Write AFI Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 39. WRITE AFI Frame Exchange between VCD and LRI512
VCD
SOF
Write AFI
Request
EOF
SOF
LRI512
t1
Write AFI
Response
LRI512
EOF
SOF
tw
t1
Write sequence when error
Write AFI
Response
EOF
AI06837
35/54
LRI512
LOCK AFI
Command Code = 0x28
When receiving the Lock AFI Request, the LRI512
lock the AFI value permanently. The Option_Flag
is not supported.
During the write cycle tW, no modulation (never
100% nor 10%) shall occur. If so, the LRI512 may
not Lock correctly the AFI value into the memory.
The tW delay is a multiple of t1nominal.
Request parameter (Table 43):
– UID (Optional)
Response parameter (Table 44):
– No parameter.
Response parameter (Table 45):
– Error Code as Error_Flag is set
Table 43. Lock AFI Request Format
Request
SOF
Request
Flags
Lock AFI
UID
CRC16
8 bits
0x28
64 bits
16 bits
Request
EOF
Table 44. Lock AFI Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 45. Lock AFI Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 40. LOCK AFI Frame Exchange between VCD and LRI512
VCD
SOF
Lock AFI
Request
EOF
SOF
LRI512
t1
Lock AFI
Response
LRI512
EOF
SOF
tw
t1
Lock sequence when error
Lock AFI
Response
EOF
AI06838
36/54
LRI512
not set correctly the EAS bit. The tW delay is a multiple of t1nominal.
Request parameter (Table 46):
– UID (Optional)
ACTIVATE EAS
Command Code = 0xA0
When receiving the Activate EAS Request, the
LRI512 set the non-volatile EAS bit. The
Option_Flag is not supported.
During the write cycle tW, no modulation (never
100% nor 10%) shall occur. If so, the LRI512 may
Response parameter (Table 47):
– No parameter.
Response parameter (Table 48):
– Error Code as Error_Flag is set
Table 46. Activate EAS Request Format
Request
SOF
Request
Flags
Activate EAS
IC Mfg code
UID
CRC16
8 bits
0xA0
0x02
64 bits
16 bits
Request
EOF
Table 47. Activate EAS Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 48. Activate EAS Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 41. ACTIVATE EAS Frame Exchange between VCD and LRI512
VCD
SOF
Activate EAS
Request
EOF
SOF
LRI512
t1
Activate EAS
Response
LRI512
tw
t1
EOF
Write sequence when error
SOF
Activate EAS
Response
EOF
AI06839
37/54
LRI512
DESACTIVATE EAS
Command Code = 0xA1
When receiving the De-activate EAS Request, the
LRI512 reset the non-volatile EAS bit. The
Option_Flag is not supported.
During the write cycle tW, no modulation (never
100% nor 10%) shall occur. If so, the LRI512 may
not reset correctly the EAS bit. The tW delay is a
multiple of t1nominal.
Request parameter (Table 49):
– UID (Optional)
Response parameter (Table 50):
– No parameter.
Response parameter (Table 51):
– Error Code as Error_Flag is set
Table 49. De-activate EAS Request Format
Request
SOF
Request
Flags
De-activate
EAS
IC Mfg code
UID
CRC16
8 bits
0xA1
0x02
64 bits
16 bits
Request
EOF
Table 50. De-activate EAS Response Format when Error Flag is NOT Set
Response SOF
Response_Flags
CRC16
8 bits
16 bits
Response EOF
Table 51. De-activate EAS Response Format when Error Flag is Set
Response SOF
Response_Flags
Error Code
CRC16
8 bits
8 bits
16 bits
Response EOF
Figure 42. DE-ACTIVATE EAS Frame Exchange between VCD and LRI512
VCD
SOF
De-activate
EAS Request
EOF
SOF
LRI512
t1
De-activate
EAS Response
LRI512
tw
t1
EOF
Write sequence when error
SOF
De-activate
EAS Response
EOF
AI06840
38/54
LRI512
POOL EAS
Command Code = 0xA2
When receiving the POOL EAS Request, all
LRI512 with the non-volatile EAS bit set generate
the EAS signal.
Request parameter (Table 52 or Table 53):
– No parameter
Table 52. POOL EAS Request Format for One Sub-carrier Modulation Answer
Request SOF
Request_Flags
POOL EAS
IC Mfg code
CRC16
0x00
0xA2
0x02
16 bits
Request EOF
Table 53. POOL EAS Request Format for Two Sub-carrier Modulation Answer
Request SOF
Request_Flags
POOL EAS
IC Mfg code
CRC16
0x01
0xA2
0x02
16 bits
Request EOF
POOL EAS Response Format when the request
frame is correctly received
The LRI512 generates a continuous stream of 256
bits at ‘0’ using the One or Two sub-carrier modulation at Low data rate ended by 2 CRC bytes.
Figure 43. POOL EAS Frame Exchange between VCD and LRI512
VCD
SOF
POOL EAS
Request
EOF
LRI512
t1
256 `O' using Single sub-carrier
modulation at Low data rate
AI06841
39/54
LRI512
APPENDIX A
The following pseudo-code describes how the
anti-collision could be implemented on the VCD,
using recursive functions.
Algorithm for Pulsed Slots
function push (mask, address)
;
function pop (mask, address)
;
function pulse_next_pause
;
function store(LRI512_UID)
;
pushes on private stack
pops from private stack
generates a power pulse
stores LRI512_UID
function poll_loop (sub_address_size as integer)
pop (mask, address)
mask = address & mask
; generates new mask
; send the Request
mode = anti-collision
send_Request (Request_cmd, mode, mask length, mask value)
for sub_address = 0 to (2^sub_address_size - 1)
pulse_next_pause
if no_collision_is_detected
; LRI512 is inventoried
then
store (LRI512_UID)
else
; remember a collision was detected
push(mask,address)
endif
next sub_address
if stack_not_empty
then
poll_loop (sub_address_size)
collision
endif
end poll_loop
main_cycle:
mask = null
address = null
push (mask, address)
poll_loop(sub_address_size)
end_main_cycle
40/54
; if some collisions have been detected and
; not yet processed, the function calls itself
; recursively to process the last stored
LRI512
APPENDIX B
The CRC Error Detection Method
The Cyclic Redundancy Check (CRC) is calculated on all data contained in a message, from the
start of the Flags through to the end of Data. This
CRC is used from the VCD to the LRI512, and
from the LRI512 to the VCD.
Table 54. CRC Definition
CRC Definition
CRC Type
Length
ISO/IEC 13239
16 bits
Polynomial
X16 + X12 + X5 + 1
= Ox8408
Direction
Preset
Residue
Backward
0xFFFF
0xF0B8
To add extra protection against shift errors, a furvalue for the generated CRC is the residue of
ther transformation on the calculated CRC is
F0B8h
made. The One’s Complement of the calculated
CRC Calculation Example
CRC is the value attached to the message for
This example in C language illustrates one method
transmission.
of calculating the CRC on a given set of bytes
For checking of received messages the two CRC
comprising a message.
bytes are often also included in the re-calculation,
for ease of use. In this case, given the expected
C-Example to calculate or check the CRC16 according to ISO/IEC 13239
#define POLYNOMIAL0x8408// x^16 + x^12 + x^5 + 1
#define PRESET_VALUE0xFFFF
#define CHECK_VALUE0xF0B8
#define NUMBER_OF_BYTES4// Example: 4 data bytes
#define CALC_CRC1
#define CHECK_CRC0
void main()
{
unsigned int current_crc_value;
unsigned char array_of_databytes[NUMBER_OF_BYTES + 2] = {1, 2, 3, 4, 0x91, 0x39};
int
number_of_databytes = NUMBER_OF_BYTES;
int
calculate_or_check_crc;
int
i, j;
calculate_or_check_crc = CALC_CRC;
// calculate_or_check_crc = CHECK_CRC;// This could be an other example
if (calculate_or_check_crc == CALC_CRC)
{
number_of_databytes = NUMBER_OF_BYTES;
}
else
// check CRC
{
number_of_databytes = NUMBER_OF_BYTES + 2;
}
current_crc_value = PRESET_VALUE;
for (i = 0; i < number_of_databytes; i++)
{
current_crc_value = current_crc_value ^ ((unsigned int)array_of_databytes[i]);
for (j = 0; j < 8; j++)
{
if (current_crc_value & 0x0001)
{
41/54
LRI512
current_crc_value = (current_crc_value >> 1) ^ POLYNOMIAL;
}
else
{
current_crc_value = (current_crc_value >> 1);
}
}
}
if (calculate_or_check_crc == CALC_CRC)
{
current_crc_value = ~current_crc_value;
printf ("Generated CRC is 0x%04X\n", current_crc_value);
// current_crc_value is now ready to be appended to the data stream
// (first LSByte, then MSByte)
}
else
// check CRC
{
if (current_crc_value == CHECK_VALUE)
{
printf ("Checked CRC is ok (0x%04X)\n", current_crc_value);
}
else
{
printf ("Checked CRC is NOT ok (0x%04X)\n", current_crc_value);
}
}
}
42/54
LRI512
APPENDIX C
Application Family Identifier (AFI)
The AFI (Application Family Identifier) represents
the type of application targeted by the VCD and is
used to extract from all the LRI512 present only
the LRI512 meeting the required application criteria.
It is programmed by the LRI512 issuer (the purchaser of the LRI512). Once locked, it cannot be
modified.
The most significant nibble of AFI is used to code
one specific or all application families, as defined
in Table 55.
The least significant nibble of AFI is used to code
one specific or all application sub-families. Subfamily codes other than 0 are proprietary.
Table 55. AFI Coding
AFI
Most
Significant
Nibble
AFI
Least
Significant
Nibble
Meaning
VICCs respond from
Examples / Note
0
0
All families and sub-families
No applicative preselection
‘X’
0
All sub-families of family X
Wide applicative preselection
‘X’
‘Y’
Only the Yth sub-family of family X
0
‘Y’
Proprietary sub-family Y only
1
0, ‘Y’
Transport
Mass transit, Bus, Airline,...
2
0, ‘Y’
Financial
IEP, Banking, Retail,...
3
0, ‘Y’
Identification
Access Control,...
4
0, ‘Y’
Telecomunication
Public Telephony, GSM,...
5
0, ‘Y’
Medical
6
0, ‘Y’
Multimedia
7
0, ‘Y’
Gaming
8
0, ‘Y’
Data Storage
9
0, ‘Y’
Item Management
A
0, ‘Y’
Express Parcels
B
0, ‘Y’
Postal Services
C
0, ‘Y’
Airline Bags
D
0, ‘Y’
RFU
E
0, ‘Y’
RFU
F
0, ‘Y’
RFU
Internet services....
Portable Files, ...
Note: X = 1h to Fh, Y = 1h to Fh
43/54
LRI512
MAXIMUM RATING
Stressing the device above the rating listed in the
Absolute Maximum Ratings table may cause permanent damage to the device. These are stress
ratings only and operation of the device at these or
any other conditions above those indicated in the
Operating sections of this specification is not im-
plied. Exposure to Absolute Maximum Rating conditions for extended periods may affect device
reliability. Refer also to the STMicroelectronics
SURE Program and other relevant quality documents.
Table 56. Absolute Maximum Ratings
Symbol
TSTG
VMAX
VESD
Parameter
Storage Temperature
Min.
Max.
Unit
W4
ST antistatic bag,
max 23 months
15
25
°C
SB
Mounted wafer in a wafersawing box (8"),
max 25 wafers
15
25
°C
A1T/ISOR
40-60% RH, max 2 Years
15
25
°C
A1S/ISOR
Reels in shrink film and
packed in hexagonal
cardboard box
15
25
°C
A2T/ISOK
40% RH, max 1 year
15
25
°C
C40
Reels in ST cardboard box
15
25
°C
–7
7
V
Maximum Input Voltage on AC0 / AC1
Electrostatic Discharge
Voltage2
Note: 1. IPC/JEDEC J-STD-020A
2. ESD test: ISO10373-7 specification
44/54
Condition
A1T/ISOR
ISO 10373-7
–7000
7000
V
A1S/ISOR
ISO 10373-7
–7000
7000
V
A2T/ISOK
ISO 10373-7
–7000
7000
V
C40
ISO 10373-7
–7000
7000
V
LRI512
DC AND AC PARAMETERS
This section summarizes the operating and measurement conditions, and the DC and AC characteristics of the device. The parameters in the DC
and AC Characteristic tables that follow are derived from tests performed under the Measure-
ment Conditions summarized in the relevant
tables. Designers should check that the operating
conditions in their circuit match the measurement
conditions when relying on the quoted parameters.
Table 57. Operating Conditions
Symbol
TA
Parameter
Ambient Operating
Temperature
Min.
Max.
Unit
A1T/ISOR
–20
85
°C
A1S/ISOR
–20
85
°C
A2T/ISOK
–20
85
°C
C40
–20
85
°C
45/54
LRI512
Figure 44. LRI512 Synchronous Timing, Transmit and Receive
A
B
tRFF
tRFR
fCC
tRFSBL
tMAX
tMIN CD
AI06680
Figure 44 shows an ASK modulated signal, from
the VCD to the LRI512. The test condition for the
AC/DC parameters are:
– Close coupling condition with tester antenna
(1mm)
– Gives LRI512 performance on tag antenna
Table 58. DC Characteristics
Symbol
VCC
VRET
Test Condition (in addition to
those in Table 57)
Parameter
Regulated Voltage
Retromodulated
Induced Voltage
Min.
Typ.
1.5
Max.
Unit
3.0
V
A1T/ISOR
ISO10373-7
10
mV
A1S/ISOR
ISO10373-7
10
mV
A2T/ISOK
ISO10373-7
10
mV
C40
ISO10373-7
10
mV
ICC
Supply Current (Active in Read)
Vcc = 3.0V
150
µA
ICC
Supply Current (Active in Write)
Vcc = 3.0V
400
µA
CTUN
Internal Tuning Capacitor
f=13.56Mhz for W4/22
18.5
pF
CTUN
Internal Tuning Capacitor
f=13.56Mhz for W4/30
26
pF
46/54
LRI512
Table 59. AC Characteristics
Symbol
fCC
Parameter
Min.
Typ.
Max.
Unit
13.553
13.56
13.567
MHz
10
30
%
0
3.0
µs
7.1
9.44
µs
95
100
%
0
3.5
µs
100% Minimum Pulse Width for
bit
7.1
9.44
µs
Bit pulse Jitter
-2
+2
µs
3
V/µs
1
ms
External RF Signal Frequency
MICARRIER 10% Carrier Modulation Index
tRFR , tRFF
tRFSBL
tRFSBL
tJIT
MI=(A-B)/(A+B)
10% Rise and Fall time
10% Minimum Pulse Width for
bit
MICARRIER 100% Carrier Modulation Index
tRFR , tRFF
Test Condition (in addition to
those in Table 57)
MI=(A-B)/(A+B)
100% Rise and Fall time
tMAX
Maximum Carrier Rise Time
Zero to Maximum field strength
induced Voltage on Coil
tMINCD
Minimum Time from Carrier
Generation to First Data
From H-field min
0.1
fSH
Subcarrier Frequency High
FCC/32
423.75
kHz
fSL
Subcarrier Frequency Low
FCC/28
484.28
kHz
t1
Time for LRI512 Response
4224/FS
313
320.9
322
µs
t2
Time between Commands
4224/FS
309
311.5
314
µs
rL
Resistive Load (for Modulation)
500
1000
2000
Ω
PA
tW
H-field Energy on LRI512
Antenna
A1T/ISOR
0.15
5
A/m
A1S/ISOR
0.15
5
A/m
A2T/ISOK
0.15
5
A/m
C40
1
5
A/m
5
ms
Programming Time
Note: 1. PA Min is the minimum H-field required to communicate with the LRI512
PA Max is the maximum H-field that the device can support before clamping the incoming signal
47/54
LRI512
PACKAGE MECHANICAL
A1T/ISOR – Copper Antenna, Package Outline
D
E
A1
C
A2
AI06843
Note: Drawing is not to scale.
A1T/ISOR – Copper Antenna, Package Mechanical Data
millimeters
inches
Symbol
Typ
Min
Max
Typ
Min
Max
A1
(Coil Width)
45
44.5
45.5
1.772
1.752
1.791
A2
(Coil Length)
76
75.5
76.5
2.992
2.972
3.012
C
(Web Width)
48
47.5
48.5
1.890
1.870
1.909
D
(Pitch)
96
95.5
96.5
3.780
3.760
3.800
E
(Coil distance from
Web edge)
1.5
1
2
0.059
0.039
0.079
(Overall Thickness of
copper antenna coil)
0.110
0.090
0.130
0.004
0.003
0.005
(Silicon Thickness)
0.180
0.165
0.195
0.007
0.006
0.008
Q
(Unloaded Q value)
35
35
FNOM
(Unloaded free-air
resonance)
14.6 MHz
14.6 MHz
48/54
LRI512
A1S/ISOR – Copper Antenna, Package Outline
D
E
A1
C
A2
AI06843
Note: Drawing is not to scale.
A1S/ISOR – Copper Antenna, Package Mechanical Data
millimeters
inches
Symbol
Typ
Min
Max
Typ
Min
Max
A1
(Coil Width)
45
44.5
45.5
1.772
1.752
1.791
A2
(Coil Length)
76
75.5
76.5
2.992
2.972
3.012
C
(Web Width)
48
47.5
48.5
1.890
1.870
1.909
D
(Pitch)
96
95.5
96.5
3.780
3.760
3.800
E
(Coil distance from
Web edge)
1.5
1
2
0.059
0.039
0.079
(Overall Thickness of
copper antenna coil)
0.110
0.090
0.130
0.004
0.003
0.005
(Silicon Thickness)
0.180
0.165
0.195
0.007
0.006
0.008
Q
(Unloaded Q value)
35
35
FNOM
(Unloaded free-air
resonance)
14.6 MHz
14.6 MHz
49/54
LRI512
A2T/ISOK – Aluminium Antenna, Package Outline
D
E
A1
C
A2
AI06844
Note: Drawing is not to scale.
A2T/ISOK – Aluminium Antenna, Package Mechanical Data
millimeters
inches
Symbol
Typ
Min
Max
Typ
Min
Max
A1
(Coil Width)
45
44.5
45.5
1.772
1.752
1.791
A2
(Coil Length)
76
75.5
76.5
2.992
2.972
3.012
C
(Web Width)
48
47.5
48.5
1.890
1.870
1.909
D
(Pitch)
96
95.5
96.5
3.780
3.760
3.800
E
(Coil distance from
Web edge)
1.5
1
2
0.059
0.039
0.079
(Overall Thickness of
copper antenna coil)
0.100
0.080
0.120
0.004
0.003
0.005
(Silicon Thickness)
0.180
0.165
0.195
0.007
0.006
0.008
Q
(Unloaded Q value)
FNOM
(Unloaded free-air
resonance)
50/54
14.6 MHz
14.6 MHz
LRI512
C40 – Micromodule Antenna, Package Outline
D
E
C
A1
A2
AI06844
Note: Drawing is not to scale.
C40 – Micromodule Antenna, Package Mechanical Data
millimeters
inches
Symbol
Typ
Min
Max
Typ
Min
Max
A1
(Coil Width)
27.5
27.4
27.6
1.083
1.079
1.087
A2
(Coil Length)
27.5
27.4
27.6
1.083
1.079
1.087
C
(Web Width)
35.0
34.9
35.1
1.378
1.374
1.382
D
(Pitch)
28.5
28.4
28.6
1.122
1.118
1.126
E
(Coil distance from
Web edge)
3.75
(Overall Thickness of
copper antenna coil)
0.190
0.187
0.193
0.007
0.007
0.008
(Silicon Thickness)
0.180
0.165
0.195
0.007
0.006
0.008
0.148
Q
(Unloaded Q value)
FNOM
(Unloaded free-air
resonance)
14.4 MHz
14.4 MHz
51/54
LRI512
PART NUMBERING
Table 60. Ordering Information Scheme
Example:
LRI512
-
W4/22
Delivery Form
W4/22
180 µm ± 15 µm unsawn wafer, 18.5 pF tuning capacitor
W4/30
180 µm ± 15 µm unsawn wafer, 26 pF tuning capacitor
SBN18/22 180 µm ± 15 µm sawn wafer with bumps, 18.5 pF tuning capacitor, 8-inch frame
SBN16/22 180 µm ± 15 µm sawn wafer with bumps, 18.5 pF tuning capacitor, 6-inch frame
A1T/ISOR ISO Copper Antenna on tape
A1S/ISOR ISO Copper Adhesive Antenna on tape
A2T/ISOK ISO Aluminium Antenna on tape
C40
Micromodule Antenna on Super 35mm tape
The notation used for the device number is as
shown in Table 60. For a list of available options
(speed, package, etc.) or for further information on
any aspect of this device, please see the current
52/54
Memory Shortform Catalogue, or contact your
nearest ST Sales Office, or email:
[email protected]
LRI512
REVISION HISTORY
Table 61. Document Revision History
Date
16-Jul-2002
Rev.
1.0
Description of Revision
Document written
53/54
LRI512
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences
of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted
by implication or otherwise under any patent or patent rights of STMicroelectronics. Specifications mentioned in this publication are subject
to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not
authorized for use as critical components in life support devices or systems without express written approval of STMicroelectronics.
The ST logo is registered trademark of STMicroelectronics
All other names are the property of their respective owners
© 2002 STMicroelectronics - All Rights Reserved
STMicroelectronics group of companies
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong India - Israel - Italy - Japan - Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - United States.
www.st.com
54/54