Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Features
Hardware features
Dedicated internal frame controller
Highly integrated Analog Front End (AFE)
for RF communications
Transmission and reception modes
Optimized power management
Tag Detection mode
Field Detection mode
November 2012
This is information on a product in full production.
VFQFPN32 5x5 mm
Applications
Typical protocols supported:
ISO/IEC 15693
USB token
Security access & authentication, data
exchange
1/74
www.st.com
Contents
STRFNFCA
Contents
1
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2
List of terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2/74
3.1
Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2
Startup sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Communication protocols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.1
4.2
Polling mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2.2
Interrupt mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1
Command format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2
List of commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.3
5.4
5.5
5.6
5.7
5.8
5.9
5.9.2
5.9.3
5.9.4
5.9.5
5.10
5.11
Improving RF performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.11.2
STRFNFCA
Contents
5.11.3
5.11.4
5.12
5.13
5.14
Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
6.1
6.2
DC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
6.3
6.4
SPI characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
6.5
RF characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.6
Oscillator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
D.2
D.1.2
D.1.3
D.3
ISO/IEC 18092 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
D.3.1
D.4
ISO/IEC 15693 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
D.4.1
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3/74
Description
STRFNFCA
Description
The STRFNFCA is an integrated transceiver IC for contactless applications.
The STRFNFCA manages frame coding and decoding in Reader, Card Emulation and
Peer-to-Peer modes for standard applications such as near field communication (NFC),
proximity and vicinity standards.
The STRFNFCA embeds an Analog Front End to provide the 13.56 MHz Air Interface.
The STRFNFCA supports ISO/IEC 14443 Type A and B in Reader and Card Emulation
modes, ISO/IEC 15693 (single or double subcarrier in Reader mode only) and ISO/IEC
18092 protocols in Reader and Card Emulation modes.
The STRFNFCA also supports the detection, reading and writing of NFC Forum Type 1, 2, 3
and 4 tags.
Figure 1.
Interrupt Management
STRFNFCA
Host
Controller
(MCU)
SPI
UART
1.1
Block diagram
Figure 2.
Xin
GND_Dig
Xout
VPS_TX
STRFNFCA
Status
registers
Digital
Tag/Field
Detector
User interface
Host
(User
Side)
AFE IP
IO_1
IO_8
(Set @ POR)
SPI: MISO, MOSI,
SS, and SCK
UART: RX and TX
IRQ control
Configuration
register
Tag / field
Detector
AFE
Signal
Mux
Frame Controller
Mod/
Demod
Timer
Accelerators
FIFO
Encoder/Decoder
TX1
TX2
GND_TX
Reader
14443A/B
15693
18092
Card
Emulator
14443A/B
18092
RX1
RX2
GND_RX
4/74
STRFNFCA
1.2
Description
List of terms
Table 1.
List of terms
Term
Meaning
DAC
GND
Ground
HFO
LFO
MCU
Microcontroller unit
NFC
RFID
RFU
SPI
tL
tREF
Reference time
UART
WFE
5/74
25
TX1
NC
NC
NC
NC
XIN
XOUT
Figure 3.
GND_TX
STRFNFCA
TX2
NC
NC
GND
NC
ST_R1
RX1
SSI_1
RX2
SSI_0
NC
SPI_SCK
GND_RX
17
SPI_MOSI
SPI_MISO
SPI_SS
UART_TX / IRQ_OUT
Pin
6/74
VPS
UART_RX / IRQ_IN
NC
NC
ST_R0
Table 2.
NC
Pin name
Type(1)
Main function
TX1
Driver output 1
TX2
Driver output 2
NC
Not connected
NC
Not connected
RX1
Receiver input 1
RX2
Receiver input 2
NC
GND_RX
Ground (analog)
ST_R0
ST Reserved(2)
10
NC
Not connected
11
NC
Not connected
Not connected
Alternate function
STRFNFCA
Pin
12
UART_RX / IRQ_IN
13
VPS
14
15
Type(1)
Pin name
UART_TX / IRQ_OUT
(5)
(5)
SPI_SS
Main function
(3)
(5)
(4)
Interrupt input
Interrupt output
16
SPI_MISO
17
SPI_MOSI
I (5)
18
SPI_SCK
I (7)
19
SSI_0
I (5)
20
SSI_1
I (5)
21
ST_R1
I (8)
ST Reserved
22
GND
23
NC
Not connected
24
NC
Not connected
25
NC
Not connected
26
NC
Not connected
27
NC
Not connected
28
NC
Not connected
29
XIN
30
XOUT
31
GND_TX
32
VPS_TX
Alternate function
Ground (digital)
7/74
STRFNFCA
3.1
Operating modes
The STRFNFCA has 2 operating modes: Wait for Event (WFE) and Active. In Active mode,
the STRFNFCA communicates actively with a tag or an external host (an MCU, for
example). WFE mode includes four low consumption states: Power-up, Hibernate,
Sleep/Field Detector and Tag Detector.
The STRFNFCA can switch from one mode to another.
Table 3.
Mode
Wait For
Event
(WFE)
Active
Description
Power-up
Hibernate
Lowest power consumption state. The STRFNFCA has to be wokenup in order to communicate. Low level on IRQ_IN pin (longer than 10
s) is the only wakeup source.
Sleep/Field
Detector
Tag Detector
Ready
Reader
Hibernate, Tag Detector, and Sleep/Field Detector states can only be activated by a
command from the external host. As soon as any of these three states are activated, the
STRFNFCA can no longer communicate with the external host. It can only be woken up.
The behavior of the STRFNFCA in 'Tag Detector' state is defined by the Idle command.
8/74
STRFNFCA
PowerUP
Hibernate
Tag Detector
Serial I/F
selection
Wake
UP
IDLE
cde
ACTIVE
Card
Emulation
3.2
Protocol
Select cde
READY
Protocol
Select cde
Reader
Startup sequence
After the power supply is established at power-on, the STRFNFCA waits for a low pulse on
the pin IRQ_IN (t1) before automatically selecting the external interface (SPI or UART) and
entering Ready state after a delay (t3).
Figure 5.
Power-up sequence
t4
VPS
SSI_0
t1
SSI_1
IRQ_IN
t0
t3
t2
First valid
command
MS20021V1
Note:
When STRFNFCA leaves WFE mode (from Power-up, Hibernate, Tag Detector, or
Sleep/Field Detector) following an |RQ_IN/RX low level pulse, this pulse is NOT interpreted
as the UART start bit character.
9/74
STRFNFCA
Note:
100 s (minimum)
10 s (minimum)
250 ns (typical)
10 ms (maximum)
10 ms (maximum by design
validation)
The Serial Interface is selected after the following falling edge of pin IRQ_IN when leaving
from POR or Hibernate state.
Table 4 lists the signal configuration used to select the serial communication interface.
Table 4.
10/74
Serial interface
SSI_0
UART: 0
SPI: 1
SSI_1
UART: 0
SPI: 0
STRFNFCA
Communication protocols
Communication protocols
4.1
UART communication
LEN
DATA
DATA
LEN
DATA
DATA
When sending commands, no data must be sent if the LEN field is zero.
When receiving data from the STRFNFCA, no data will be received if the LEN field is zero.
The formats of send and receive packets are identical.
If an ECHO command is sent, only one byte (0x55) is sent by the host.
Figure 7 shows an example of an ECHO command.
Figure 7.
Int.
Clock
RX (Echo 0x55)
0
1
(Start)
1
0
2
1
3
0
4
1
1
(Stop)
1
(Stop)
TX
STRFNFCA to Host
Rx
TX (Echo 0x55)
1
(Start)
Ai18122
Caution:
UART communication is LSB first. Stop bit duration is two Elementary Time Units
(ETUs).
Note:
When STRFNFCA leaves WFE mode (from Power-up, Hibernate, Sleep/Field Detector or
Tag Detector) following an |RQ_IN/RX low level pulse, this pulse is NOT interpreted as the
UART start bit character.
If the user loses UART synchronization, it can be recovered by sending an ECHO command
until a valid ECHO reply is received. Otherwise, after a maximum of 255 ECHO commands,
11/74
Communication protocols
STRFNFCA
STRFNFCA will reply with an error code meaning its input buffer is full. The user can now
restart a UART exchange.
4.2
4.2.1
Polling mode
In order to send commands and receive replies, the application software has to perform 3
steps.
1.
2.
3.
The application software should never read data from the STRFNFCA without being sure
that the STRFNFCA is ready to send the response.
The maximum allowed SPI communication speed is fSCK.
A Control byte is used to specify a communication type and direction:
The SPI_SS line is used to select a device on the common SPI bus. The SPI_SS pin is
active low.
When the SPI_SS line is inactive, all data sent by the Master device is ignored and the
MISO line remains in High Impedance state.
In Slave mode, the phase and polarization are defined with CPOL = 1 and CPHA = 1 or
CPOL = 0 and CPHA = 0.
Figure 8.
MOSI
CMD
LEN
DATA
Control Byte
MISO
Figure 9.
MOSI
XXXXXX11
Control Byte
MISO
DATA
XXXXXXXX
00000XXX
XXXXXX11 XXXXXX11
Flag
Flag
00000XXX
00001XXX
Flags are polled until data is ready (Bit 3 is set when data is ready)
12/74
STRFNFCA
Communication protocols
Table 5.
Interpretation of flags
Bit
[7:4]
[1:0]
Not significant
00000010
Control Byte
MISO
XXXXXXXX
Resp Code
LEN
DATA
DATA
00000001
Control Byte 01
MISO
XXXXXXXX
To reset the STRFNFCA using the SPI, the application sends the SPI Reset command
(Control Byte 01, see Figure 11) which starts the internal controller reset process and puts
the STRFNFCA into Power-up state. The STRFNFCA will wake up when pin IRQ_IN goes
low. The STRFNFCA reset process only starts when the SPI_SS pin returns to high level.
Caution:
13/74
Communication protocols
4.2.2
STRFNFCA
Interrupt mode
When the STRFNFCA is configure to use the SPI serial interface, pin IRQ_OUT is used to
give additional information to user. When the STRFNFCA is ready to send back a reply, it
sends an Interrupt Request by setting a low level on pin IRQ_OUT, which remains low until
the host reads the data.
The application can use the Interrupt mode to skip the polling stage.
Caution:
14/74
STRFNFCA
Commands
Commands
5.1
Command format
The frame from the Host to the STRFNFCA has the following format:
<CMD><Len><Data>
The frame from the STRFNFCA to Host has the following format:
<RespCode><Len><Data>
These two formats are available either in both UART and SPI modes.
Fields <Cmd>, <RespCode> and <Len> are always 1 byte long. <Data> can be from 0 to
255 bytes.
Note:
5.2
List of commands
Table 6 summarizes the available commands.
Table 6.
Code
Command
Description
0x01
IDN
0x02
PROTOCOLSELECT
0x03
POLLFIELD
0x04
SENDRECV
Sends data using the previously selected protocol and receives the
tag response.
0x05
LISTEN
0x06
SEND
0x07
IDLE
0x08
RDREG
15/74
Commands
STRFNFCA
Table 6.
Code
Command
0x09
WRREG
0x0A
BAUDRATE
0x0D
ACFILTER
0x55
ECHO
Other codes
5.3
Description
ST Reserved
0x01
Host to
STRFNFCA 0x00
Comments
Command code
Length of data
0x00
Result code
<Len>
Length of data
Example
>>>0x0100
<<<0x000F4E4643204653324A41535
4320075D2
In this example,
<<<0x4E4643204653324A415354320
0: NFC FS2JAST2, #2 (Last Character
of NFC FS2JAST2 means ROM code
revision 2.)
0x75D2: CRC of ROM (real CRC may
differ from this example)
It takes approximately 6 ms to calculate the CRC for the entire ROM. The application must
allow sufficient time for waiting for a response for this command.
16/74
STRFNFCA
5.4
Commands
Direction
Data
Comments
0x02
Command code
<Len>
Length of data
Host to
<Protocol>
STRFNFCA
Example
Result code
STRFNFCA 0x82
to Host
0x00
Error code
STRFNFCA 0x83
to Host
0x00
Error code
Length of data
Length of data
Length of data
<<<0x0000
Protocol is successfully selected
<<<0x8200
Invalid command length
<<<0x8300
Invalid protocol
17/74
Commands
STRFNFCA
Table 9.
Protocol
Code
Examples of commands
Byte
Field OFF
ISO/IEC 15693
0x00 0
0x01 0
Bit
7:0
RFU
7:6
RFU
5:4
ISO/IEC 14443
Type A
NFC Forum Tag
Type 1
(Topaz)
1, 2
H 100 S: >>>0x02 02 01 01
H 100 D: >>>0x02 02 01 03
H 10 S: >>>0x02 02 01 05
H 10 D: >>>0x02 02 01 07
L 100 S: >>>0x02 02 01 21
L 100 D: >>>0x02 02 01 23
L 10 S: >>>0x02 02 01 25
L 10 D: >>>0x02 02 01 27
In these examples, the CRC is
automatically appended.
(1)
7:6
5:4
RFU
2:0
RFU
0x02
>>>0x02020000
18/74
Function
>>>0x02020200: ISO/IEC
14443 Type A tag, 106 Kbps
transmission and reception
rates, Time interval 86/90
Note that REQA, WUPA,
Select20 and Select70
commands use a fixed interval
of 86/90 s between a request
and its reply. Other commands
use a variable interval with fixed
granularity.
Refer to the ISO/IEC 14443
standard for more details.
STRFNFCA
Commands
Table 9.
Protocol
Code
Examples of commands
Byte
Bit
7:6
5:4
3:1
RFU
(1)
0
ISO/IEC 14443
Type B
0x03
NFC Forum Tag
Type 4B
1, 2
Function
>>>0x02020301:
ISO/IEC 14443 Type B tag with
CRC appended
19/74
Commands
STRFNFCA
Table 9.
Protocol
Code
Examples of commands
Byte
Bit
7:6
5:4
3:1
RFU
ISO/IEC 18092
NFC Forum Tag
Type 3
Function
(1)
7:5
RFU
0: FWT = 2.4 ms
1: FWT is specified by
PP:MM bits
3:0
Slot counter
0: 1 slot
1: 2 slots
F: 16 slots
0x04
2,3
>>>0x02020451:
ISO/IEC18092 tag, 212 Kbps
transmission and reception
rates with CRC appended.
Parameter Slot counter is not
mandatory. If it is not present, it
is assumed that SlotCounter =
0x00 (1 slot)
For device detection
commands, byte 1 bit 4 must be
set to 0. In this case, the FWT
is 2.4 ms for the 1st slot and
1.2 ms more for each following
slot, if slot counter is specified.
If slot counter = 0x10, the
STRFNFCA does not respect
reply timings, but polls
incoming data and searches a
valid response during ~8.4 ms.
20/74
STRFNFCA
Commands
Table 10.
Protocol
(Card)
ISO/IEC
14443
Type A
ISO/IEC
14443
Type B
ISO/IEC
18092
12
13
14
Bit
7:6
5:4
RFU
0: HFO
1: ClkRec
RFU
7:6
5:4
RFU
0: HFO
1: ClkRec
7:4
RFU
RFU
0: HFO
1: ClkRec
Function
Examples of commands
Comments
>>>0x02021403
21/74
Commands
5.5
STRFNFCA
Direction
Data
Comments
03
Host to
STRFNFCA 00
Command code
00
STRFNFCA
01
to Host
<FieldDet>
Result code
Example
>>>0x0300
Length of data
Length of data
<<<0x000101
The result of this command depends on the protocol selected. If we select a Reader mode
protocol, the flag FieldDet is set to 1 because the RF field is turned ON by the reader.
Table 12.
Function
Response example
00
01
01
Result code
POLLFIELD
22/74
Comments
STRFNFCA
5.6
Commands
Direction
Data
0x04
Host to
<Len>
STRFNFCA
<Data>
STRFNFCA
to Host
Comments
Command code
Length of data
Result code
<Len>
Length of data
0x90
<<<0x800F5077FE01B30000000000
71718EBA00
The tag response is decoded. This is an
Data received.
example of an ISO/IEC 14443 ATQB
Interpretation depends on
response (Answer to Request Type B)
protocol
Result code
STRFNFCA 0x04
to Host
ACK or NAK
Valid bits
STRFNFCA 0x86
to Host
0x00
Error code
STRFNFCA 0x87
to Host
0x00
Error code
STRFNFCA 0x88
to Host
0x00
Error code
STRFNFCA 0x89
to Host
0x00
Error code
STRFNFCA 0x8A
to Host
0x00
Error code
STRFNFCA 0x8B
to Host
0x00
Error code
0x8C
STRFNFCA
to Host
0x00
Error code
STRFNFCA 0x8D
to Host
0x00
Data to be sent
0x80
<Data>
Example
ISO 14443-A
ACK or NAK detection
<<<0x900400
Exception for 4-bit frames. This function
is limited.
ACK/NAK always returns 0. (1)
<<<0x8600 Communication error
Length of data
Length of data
Length of data
Length of data
Length of data
Length of data
Length of data
Error code
Length of data
23/74
Commands
STRFNFCA
Table 13.
Direction
Data
STRFNFCA 0x8E
to Host
0x00
Comments
Error code
Length of data
Example
<<<0x8E00 Reception lost without EOF
received
Table 14 gives examples of communication between the STRFNFCA and a contactless tag.
The STRFNFCA receives a SendRecv command (>>> 0x04...) from the host and returns its
response to the host (<<< 0x80...). Table 14 provides more details on the STRFNFCA
response format.
Table 14.
Protocol
List of <Data> Send values for the SENDRECV command for different
protocols
Explanation
Send example
Command example
04
03
022000
Command code
Length of entire data field
ISO/IEC
15693
Data
24/74
Comments
Example of an Inventory command
using different protocol configuration:
Uplink: 100% ASK, 1/4 coding
Downlink: High data rate, Single subcarrier
>>> 0x0403260100 (Inventory - 1 slot)
<<< 0x800D0000CDE0406CD62902
E0057900
If length of data is 0, only the EOF will
be sent. This can be used for an anticollision procedure.
STRFNFCA
Commands
Table 14.
Protocol
List of <Data> Send values for the SENDRECV command for different
protocols (continued)
Explanation
Send example
Command example
04
07
9370800
28
F8C8E
Command code
Length of entire data field
ISO/IEC
14443
Type A
Data
Comments
Example of an NFC Forum Type 2
request sequence:
>>>0x04022607 (REQA)
<<<0x800544002800 (ATQA)
>>>0x0403932008 (Anti-collision CL1)
<<<0x80088804A8D5F1280000 (UID
CL1)...
Send example
04
03
050000
Example of an NFC Forum Type 4B
request sequence:
>>>0x0403050000 (REQB)
<<<0x800F5077FE01B30000000000
71718EBA00 (ATQB)
Command code
Length of entire data field
NFC
Forum Tag Data
Type 4B
ISO/IEC
18092
Send example
04
05
00FFFF0000
Command code
25/74
Commands
STRFNFCA
Table 15.
Protocol
List of <Data> Response values for the SENDRECV command for different
protocols
Explanation
Response
example
Response example
80 08 0000000000
77CF
Comments
00
Result code
ISO/IEC
15693
ISO/IEC
14443
Type A
Response
example
80 09 80B30B8DB500
00 00 00
Result code
Length of entire data
field
NFC
Forum
Data received from TAG
Tag Type 7: Collision is detected
4A
6: RFU
5: CRC error
NFC
4: parity error
Forum
Tag Type [3:0]: Shows how many significant bits are there
in the first byte
1
(Topaz)
To calculate a position of a
collision, application has to
take index of byte first. Index
of bit indicates a position
inside this byte. Note that
both indexes start from 0 and
bit index can be 8, meaning
that collision affected parity.
NFC
[7:4]: RFU
Forum
Tag Type [3:0]: Index of the first bit where collision is detected
2
Response
example
ISO/IEC
14443
Type B
5092036A8D0
80 0F 00000000071 3411
71
Result code
Length of entire data
field
NFC
Data received from tag
Forum
Tag Type Original (received) value of CRC
4B
[7:2]: RFU
1: CRC error if set
0: RFU
26/74
STRFNFCA
Commands
Table 15.
Protocol
ISO/IEC
18092
List of <Data> Response values for the SENDRECV command for different
protocols (continued)
Explanation
Response
example
Response example
80 12
Comments
01010105017B0...93FF
00
Result code
Length of entire data
field
<<<0x801201010105017B
06941004014B024F4993F
F00
NFC
Forum
Data received from tag
Tag Type [7:2]: RFU
3
1: CRC error if set
0: RFU
For more detailed examples of use with NFC Forum and ISO/IEC 15693 tags, refer to
Appendix D on page 62.
5.7
Direction
Host to
STRFNFCA
Data
Comments
05
Command code
00
Length of data
STRFNFCA to 00
Host
00
Result code
STRFNFCA to 82
Host
00
Error code
83
STRFNFCA to
Host
00
8F
STRFNFCA to
Host
00
Length of data
Length of data
Error code
Length of data
Error code
Length of data
Example
0500: Enters a Listening mode where
the STRFNFCA waits for a command
from an external reader.
0000 No error. Confirmation that
STRFNFCA now is in Listening mode
8200 Invalid command length
8300 Invalid protocol or protocol is not
supported. For example, application
selects protocol Iso-15693 using
command select protocol and then
executes command LISTEN. Iso-15693
is not supported in Card Emulation
mode
8F00 No field. Command cannot be
executed because there is no external
field
After reception of the LISTEN command and the return of a No error confirmation, the
STRFNFCA enters Listening mode. The STRFNFCA will exit Listening mode as soon it
receives a command from an external reader or the ECHO command (0x55) from the Host
Controller (MCU).
In all cases, the STRFNFCA will send data or an error code to the Host controller (MCU).
27/74
Commands
STRFNFCA
The ECHO command (0x55) allows exiting Listening mode. In response to the ECHO
command, the STRFNFCA sends 0x55 + 0x8500 (error code of the Listening state
cancelled by the MCU).
Possible return codes are listed in Table 17.
Table 17.
Direction
STRFNFCA
to Host
Data
Comments
80
Result code
<Len>
Length of data
<Data>
Example
<<<0x800605000071FF00
The request from the Reader is
Data received.
decoded. This is an example of Request
Interpretation depends on in ISO/IEC 14443-B protocol.
protocol
STRFNFCA 85
to Host
00
Error code
STRFNFCA 86
to Host
00
Error code
STRFNFCA 88
to Host
00
Error code
STRFNFCA 89
to Host
00
Error code
STRFNFCA 8A
to Host
00
Error code
STRFNFCA 8B
to Host
00
Error code
STRFNFCA 8D
to Host
00
Error code
STRFNFCA 8E
- MCU
00
Error code
Length of data
Length of data
Length of data
Length of data
Length of data
Length of data
Length of data
Length of data
If the request from the Reader was received and decoded correctly, the STRFNFCA will
send data back to the Host (Card Emulation application). This is explained in Table 18.
28/74
STRFNFCA
Commands
Table 18.
Protocol
Response example
80 0A 9370800F8C8E
Comments
8D 4E01 08
Result code
Length of entire data field
Data received from reader
ISO/IEC14443
Type A
<<<0x80 0A
9370800F8C8E
8D 4E01 08
80 06 050000
71FF 00
Result code
ISO/IEC14443
Type B
80 06 00FFFF0000
00
Result code
ISO/IEC18092
212/424
<<<0x800600F
FFF000000
7:2: RFU
1: CRC error if set
0: RFU
29/74
Commands
5.8
STRFNFCA
Direction
Data
Comments
Example
06
Command code
<Len>
Length of data
<Data>
>>>0x040C50920E997500000000B3
7171: Emulation of TAG response in
ISO/IEC 14443-B protocol
STRFNFCA 00
to Host
00
Result code
<<<0x0000
Data was successfully sent
STRFNFCA 82
to Host
00
Error code
Host to
STRFNFCA
STRFNFCA 83
to Host
00
Table 20.
Protocol
Length of data
Length of data
Error code
Length of data
Response example
Comments
06 03 0400 08
Command code
Length of entire data field
ISO/IEC14443
Type A
Data
Parameter:
7:6: RFU
5: Append CRC
4: RFU
3:0: Number of significant bits in first
byte
Send example
ISO/IEC14443
Type B
06 04 01020304
Command code
Length of entire data field
Data
30/74
<<<0x0603040008
STRFNFCA
Commands
Table 20.
Protocol
Reader
ISO/IEC18092
212/424
5.9
Comments
06 04 01020304
Command code
Length of entire data field
Data
Send example
Card
ISO/IEC18092
212/424
Response example
06 05 01020304
Command code
Length of entire data field
Data
Parameter:
Slot number (in which to reply)
00
Note the
difference in
data in
Reader and
Card
Emulation
mode: in
Reader mode
If slot number = 0x10,
there is no
replies immediately
slot
information
31/74
Commands
STRFNFCA
Table 21.
Direction
Data
07
Command code
0E
Length of data
<WU Source>
EnterCtrlL
EnterCtrlH
WUCtrlL
WUCtrlH
LeaveCtrlL
LeaveCtrlH
<WUPeriod>
Host to
STRFNFCA
32/74
Comments
Example
<OscStart>
<DacStart>
<DacDataL>
<DacDataH>
<SwingsCnt>
Number of swings HF
during tag detection
(Default value = 0x3F)
<MaxSleep>
STRFNFCA
Commands
Table 21.
Direction
Data
Comments
Example
0x00
Result code
0x01
Length of data
<Data>
STRFNFCA to
Host
Error code
STRFNFCA to 0x82
Host
0x00
Length of data
1. An initial calibration is necessary to determine DacDataL and DacDataH values required for leaving Tag
Detector state. For more information, contact your ST sales office for the corresponding application note.
5.9.1
Table 22.
07
0E
xx
yy zz
yy zz
yy zz
aa
bb
cc
dd ee
ff
gg
Comma
nd code
Data
length
WU
source
Enter
Control
WU
Control
Leave
Control
WU
Period
Osc
Start
DAC
Start
DAC
Data
Swing
Count
Max
Sleep
Table 23.
Parameter
Description
Command code
This byte is the command code. 07 represents the Idle command. This
command switches the device from Active mode to WFE mode.
Data length
This byte is the length of the command in bytes. Its value depends on the
following parameter values.
WU Source
This byte defines the authorized wake-up sources in the Wake-up source
register. Predefined values are:
0x01: Time out
0x02: Tag Detection
0x04: Field Detector
0x06: Not defined
0x10: Low pulse on SPI_SS
0x08: Low pulse on IRQ_IN
Enter Control
These two bytes (EnterCtrlL and EnterCtrlH) define the resources when
entering WFE mode.
0x0400: Hibernate
0x0100: Sleep (or 0x2100 if Timer source is enabled)
0x0142: Sleep (if Field Detector source is enabled)
0xA200: Tag Detector Calibration
0x2100: Tag Detection
WU Control
These two bytes (WuCtrlL and WuCtrlH) define the wake-up resources.
0x0400: Hibernate
0x3800: Sleep/Field Detector
0xF801: Tag Detector Calibration 0x7901: Tag Detection
33/74
Commands
STRFNFCA
Table 23.
Parameter
5.9.2
Description
Leave Control
These two bytes (LeaveCtrlL and LeaveCtrlH) define the resources when
returning to Ready state.
0x1800: Hibernate
0x1800: Sleep/Field Detector
0x1800: Tag Detector Calibration 0x1800: Tag Detection
WU Period
This byte is the coefficient used to adjust the time allowed between two tag
detections. Also used to specify the duration before Timeout. (Typical
value: 0x20)
Duration before Timeout = 256 * tL * (WU period + 2) * (MaxSleep + 1)
Osc Start
This byte defines the delay for HFO stabilization. (Recommended value:
0x60)
Defines the Wait time for HFO to stabilize: <OscStart> * tL
DAC Start
This byte defines the delay for DAC stabilization. (Recommended value:
0x60)
Defines the Wait time for DAC to stabilize: <DacStart> * tL
DAC Data
These two bytes (DacDataL and DacDataH) define the lower and higher
comparator values, respectively. These values are determined by a
calibration process.
When using the demo board, these values should be set to approximately
0x64 and 0x74, respectively.
Swing Count
This byte defines the number of HF swings allowed during Tag Detection.
(Recommended value: 0x3F)
Max Sleep
This byte defines the maximum number of tag detection trials or the
coefficient to adjust the maximum inactivity duration before Timeout.
MaxSleep must be: 0x00 < MaxSleep < 0x1F
This value must be set to 0x01 during tag detection calibration.
Also used to specify duration before Timeout.
Duration before Timeout = 256 * tL * (WU period + 2) * (MaxSleep + 1)
(Typical value: 0x28)
34/74
STRFNFCA
5.9.3
Commands
5.9.4
The Wake-up flag value is NOT significant when returning to Ready state from Hibernate
state or after a POR.
35/74
Commands
STRFNFCA
The Duration before Timeout is defined by parameters WU period and MaxSleep,
respectively 0x60 and 0x08 in the following example.
Duration before Timeout = 256 * tL * (WU period + 2) * (MaxSleep + 1)
Note:
The Timeout bit (bit 0) must be set to 1 in order to manage a certain number of
emitted bursts. Otherwise, bursts will be sent indefinitely until a stop event occurs
(for example, tag detection or a low pulse on pin IRQ_IN).
The Tag Detect bit (bit 1) must be set to 1 to enable RF burst emissions.
WU period (Byte 10): Defines the period of inactivity (tINACTIVE) between two RF bursts:
tINACTIVE = (WuPeriod + 2) * tREF
OscStart, DacStart (Bytes 11 and 12): Define the set-up time of the HFO and Digital
Analog Converter, respectively. In general, 3 ms is used both set-up times.
DacDataL, DacDataH (Bytes 13 and 14): Reference level for Tag Detection (calculated
during the tag detection calibration process).
SwingsCnt (Byte 15): Represents the number of 13.56-MHz swing allowed during a
Tag Detection burst. We recommend using 0x3F.
36/74
STRFNFCA
Commands
Note:
Maxsleep (Byte 16): The STRFNFCA emits (MaxSleep +1) bursts before leaving Tag
Detection mode if bit 0 (Timer Out) of the WU source register is set to 1. Otherwise,
when this bit is set to 0, a burst is emitted indefinitely.
Bytes 4 to 9 should be used as shown in the examples in Section 5.9: Idle command (0x07)
description.
Note that the MaxSleep value is coded on the 5 least significant bits, thus:
0x00 < MaxSleep < 0x1F.
All the previously described command parameters must be chosen accordingly for the initial
tag detection calibration when setting up the STRFNFCA.
Their value will impact tag detection efficiency, and STRFNFCA power consumption during
Tag Detection periods.
5.9.5
37/74
Commands
STRFNFCA
An efficient 8-step calibration algorithm is described in Example of tag detection calibration
process on page 58.
An example of a basic Idle command used during the Tag Detection Calibration process:
>>>0x07 0E 03 A1 00 F8 01 18 00 20 60 60 00 xx 3F 01
where xx is the DacDataH value.
An example of a tag detection sequence is provided in Example of tag detection command
using results of tag detection calibration on page 61.
5.10
Host to
STRFNFCA
STRFNFCA
to Host
Comments
0x08
Command code
0x03
Length of data
0x62 or 0x69
0x01
Register size
0x00
ST Reserved
0x00
Result code
<Len>
Length of data (=
RegCount)
<RegData>
STRFNFCA
to Host
Register address
Example
Ex 1. >>>0x0803690100
Reads the ARC_B register. (1)
Register data
0x82
Error code
0x00
Length of data
1. This command must be preceded by the setting of the ARC_B register index (0x0903680001).
Note:
5.11
set the Analog Register Configuration address index value before reading or
overwriting the Analog Register Configuration register (ARC_B) value
set the Timer Window (TimerW) value used to improve STRFNFCA demodulation
when communicating with ISO/IEC 14443 Type A tags
set the AutoDetect Filter used to help synchronization of STRFNFCA with ISO/IEC
18092 tags
configure the HF2RF bit(a) to manage ICC RF (VPS_TX) consumption in Ready state
a. When the HF2RF bit is 0, Reader mode is possible (default mode). When set to 1, VPS_TX power
consumption is reduced (Ready mode).
38/74
STRFNFCA
5.11.1
Commands
Improving RF performance
Adjusting the Modulation Index and Receiver Gain parameters helps adjust application
behavior. These parameters are the two nibbles of the Analog Register Configuration
register (ARC_B).
The default value of these parameters (Table 28) is set by the PROTOCOLSELECT command,
but they can be overwritten using the Write Register (WRREG) command (0x09). Table 26
and Table 27 list possible values for the Modulation Index and Receiver Gain parameters
respectively.
This new configuration is valid until a new PROTOCOLSELECT or Write Register (of register
ARC_B) command is executed. Register values are cleared at power off.
Table 25.
Direction
Data
0x09
Comments
Example
Command code
0x03 or
Length of data
0x04
0x68
>>>0x090468010113
Update ARC_B value to 0x13
STRFNFCA
to Host
0xXX
0x00
Result code
0x00
<<<0x0000
Register written
1. This command must be executed before reading the ARC_B register (0x0803690100).
2.
>>>0x02020451
<<<0x0000
>>>0x0903680001
<<<0x0000
b)
>>>0x0803690100
<<<0x015F
In this example, the ARC_B register value is 0x5F, where 5 is the Modulation Index
and F is the Receiver Gain.
3.
Modify the Modulation Index and Receiver Gain values with 0x23.
Write the ARC_B register index:
STRFNFCA reply:
Doc ID 023077 Rev 10
>>>0x090468010123
<<<0x0000
39/74
Commands
STRFNFCA
4.
>>>0x0903680001
<<<0x0000
b)
>>>0x0803690100
<<<0x0123
Table 26.
10%
17%
25%
30%
33%
36%
95%
Table 27.
34 dB
32 dB
27 dB
20 dB
8 dB
5.11.2
Default value
Recommended
values for
STRFNFCA
demo board
Possible
Modulation
Index values
(MS nibble)
Possible
Receiver Gain
values (LS
nibble)
0xDF
0xD7
0xD
0x2F
0x37
ISO/IEC 18092reader
0x5F
0x23
0x53
0x53
0xD3
0xD3
0xD
Communication
protocol
40/74
STRFNFCA
Commands
Table 29.
Direction
Comments
Example
Command code
0x03 or
Length of data
0x04
0x3A Timer Window (TimerW) value
Host to
STRFNFCA 0x00 or Flag Increment address or not after Write
0x01 command
0xXX
STRFNFCA
to Host
5.11.3
>>>0x09043A005804
Set recommended TimerW
value.
0x04
0x00
Result code
0x00
<<<0x0000
Register written
Comments
Example
Command code
0x03 or
Length of data
0x04
0x0A AutoDetect filter control value
Host to
STRFNFCA 0x00 or Flag Increment address or not after Write
0x01 command
STRFNFCA
to Host
0x02
0xA1
0x00
Result code
0x00
>>>0x09040A0102A1
Enable the AutoDetect filter.
<<<0x0000
Register written
41/74
Commands
5.11.4
STRFNFCA
Comments
Command code
0x03 or
Length of data
0x04
0x68
42/74
Example
0x00
Result code
0x00
>>>0x090468010710
ICC RF (VPS_TX) consumption
is reduced to approx. 2 A
(typ.) In this case, Reader
mode is not available.
>>>0x090468010700
Reset the HF2RF bit to 0 to
re-enable Reader mode.
<<<0x0000
Register written
STRFNFCA
5.12
Commands
Direction
Data
0x0A
Command code
0x01
Length of data
<BaudRate>
Host to
STRFNFCA
STRFNFCA
0x55
to Host
Caution:
Comments
Example
<<<0x55
New baud rate is used
to reply
If the BaudRate command is not correctly executed, the baud rate value will remain
unchanged.
43/74
Commands
5.13
STRFNFCA
Direction
Data
Comments
0D
Command code
<Len>
Length of data
<ATQA>
Host to
<SAK>
STRFNFCA
00
STRFNFCA
to Host
00
Length of data = 0
Error code
82
STRFNFCA
to Host
00
Example
<<<0x0000
Filter is successfully
activated/deactivated
<<<0x8200
Invalid command length
<<<0x8300
Invalid protocol
Length of data
The ACFILTER command activates or deactivates an anti-collision filter for ISO/IEC 14443A
card protocol.
If the filter is not activated, all received commands will be sent to external microcontroller.
If the filter is activated, internal firmware will try to interpret commands sent by the reader
itself and perform an anti-collision sequence. Data will not be sent to the external MCU
during anti-collision phase. It will only be sent when anti-collision is finished and STRFNFCA
is selected to perform Level 4 of ISO/IEC 14443 A protocol.
The STRFNFCA is able to interpret and respond to the following commands:
Table 34.
Command
Code
Definition
SENS_REQ
26 (7-bit)
Sense request
ALL_REQ
52 (7-bit)
SDD_REQ
93, 95, 97
SEL_REQ
Select request
If the Len field is 1, this function forces the STRFNFCA to enter to Halt state. If Len is 0,
this function returns the actual state.
44/74
STRFNFCA
5.14
Commands
Direction
Data
Comments
Host to STRFNFCA
0x55
Command code
STRFNFCA to Host
0x55
Code response
Example
45/74
Electrical characteristics
STRFNFCA
Electrical characteristics
6.1
Symbol
VPS_Main
VPS_TX
VIO
VMaxCarrier
Parameter
Value
Unit
Supply voltage
0.3 to 7.0
0.3 to 7.0
14.0
25 to +85
25 to +85
TSTG
65 to +150
VESD
2000
TA
PTOT (1)
Note:
46/74
Stresses listed above may cause permanent damage to the device. This is a stress rating
only and functional operation of the device at these or any other conditions above those
indicated in the operational sections of the specification is not implied.
Exposure to absolute maximum rating conditions for extended periods may affect device
reliability.
STRFNFCA
Electrical characteristics
6.2
DC characteristics
Table 37.
Symbol
Parameter
Condition
Min.
Typ.
Max.
Unit
2.7
3.0
3.3
2.7
3.0
3.3
VIL
0.2 x
VPS_Main
VIH
0.7 x
VPS_Main
VPS_Main
VOH
IOH = - 8 A
0.7 x
VPS_Main
VPS_Main
VOL
IOLMAX = 500 A
0.15 x
VPS_Main
POR
Table 38.
Symbol
1.8
Condition
Min.
Typ.
Max.
Unit
2.7
3.0
3.3
4.5
5.0
5.5
VIL
0.2 x
VPS_Main
VIH
0.7 x
VPS_Main
VPS_Main
VOH
IOH = - 8 A
0.7 x
VPS_Main
VPS_Main
VOL
IOLMAX = 500 A
0.15 x
VPS_Main
POR
1.8
47/74
Electrical characteristics
6.3
STRFNFCA
Symbol
Parameter
ICC (VPS)
Power-up
ICC (VPS)
Card Emulation
ICC (VPS)
Hibernate
ICC (VPS)
Sleep/Field
Detector
Condition
Typ.
Max.
Unit
TA = 25C
200
600
TA = 25C
2.5
5.0
mA
TA = 25C
TA = 25C
20/25
80
TA = 25C
2.5
5.0
mA
TA = 25C,
4 RF bursts
per second
50
100
The STRFNFCA supports two VPS_TX supply ranges for RF drivers: 2.7V to 3.3V or 4.5V
to 5.5V. Antenna matching circuit must be defined accordingly.
Table 40.
Symbol
Condition
Typ.
Max.
Unit
TA = 25C
70
100
mA
TA = 25C
200
ICC RF (VPS_TX)
Peak(3) current during Burst detection
Tag Detect
TA = 25C
100
mA
70
1. Parameter measured using recommended output matching network. (Z load is 27 and 0).
2. This consumption can be reduced to approximately 2 A (typ.) by setting a control bit (bit HF2RF) to 1
using command 090468010710. In this case, Reader mode is not available.
To re-enable Reader mode, reset the HF2RF bit to 0 using the command 090468010700 or execute a
new PROTOCOLSELECT command.
3. The maximum differential input voltage between pins RX1 and RX2 (VRx1-Rx2) has a peak-peak of 18 V.
Table 41.
Symbol
Condition
Typ.
Max.
Unit
TA = 25C
120
200
mA
TA = 25C
300
ICC RF (VPS_TX)
Peak(3) current during Burst detection
Tag Detect
TA = 25C
200
mA
120
1. Parameter measured using recommended output matching network. (Z load is 16 and 0).
48/74
STRFNFCA
Electrical characteristics
2. This consumption can be reduced to approximately 2 A (typ.) by setting a control bit (bit HF2RF) to 1
using command 090468010710. In this case, Reader mode is not available.
To re-enable Reader mode, reset the HF2RF bit to 0 using the command 090468010700 or execute a
new PROTOCOLSELECT command.
3. The maximum differential input voltage between pins RX1 and RX2 (VRx1-Rx2) has a peak-peak of 18 V.
This voltage can be limited by adding a damping resistor in parallel of the antenna or between ST_R0 and
Ground.
49/74
Electrical characteristics
6.4
STRFNFCA
SPI characteristics
The STRFNFCA supports (CPOL = 0, CPHA = 0) and (CPOL = 1, CPHA = 1) modes.
Table 42.
Symbol
Max.
Unit
2.0
MHz
VIL
0.3
VIH
VOL
VOH
0.7
70
fSCK
1/ tc(SCK)
tSU(NSS)(1)
th(NSS)
(1)
Parameter
Condition
Min.
0.7
ns
200
tCH(SCKH)(1)
200
tSU(SI)(1)
20
th(SI)(1)
80
tv(SO)(1)
th(SO)(1)
Cb_SPI_IN
Cb_SPI_OUT
VPS
0.4
ns
ns
80
ns
After enable
edge
pF
20
pF
1. Values based on design simulation and/or characterization results, and not on tested in production.
Figure 12. SPI timing diagram (Slave mode and CPOL = 0, CPHA = 0)
SCK Input
NSS input
tSU(NSS)
tc(SCK)
CPOL = 0
CPHA = 0
tCH(SCKH)
tV(SO)
MISO
th(NSS)
tCH(SCKL)
th(SO)
MSB Out
Bit 6 Out
MSB In
Bit 1 In
LSB Out
tsu(SI)
MOSI
th(SI)
50/74
LSB In
MS18165V2
STRFNFCA
Electrical characteristics
Figure 13. SPI timing diagram (Slave mode and CPOL = 1, CPHA = 1)
NSS input
tc(SCK)
SCK Input
tSU(NSS)
tCH(SCKH)
th(NSS)
tCH(SCKL)
CPOL = 1
CPHA = 1
tv(SO)
MSB Out
MISO
tsu(SI)
MOSI
th(SO)
Bit 6 Out
LSB Out
th(SI)
MSB In
Bit 1 In
LSB In
MS18166V2
51/74
Electrical characteristics
6.5
STRFNFCA
RF characteristics
Test conditions are TA = 0C to 50C, unless otherwise specified.
VPS_TX = 3V 10% and VPS_MAIN = 3V 10%.
Table 43.
Symbol
fC
MI Carrier
Parameter
Condition
Frequency of operating
field (carrier frequency)
Carrier Modulation Index
from reader
ISO/IEC 14443 -Type A
ISO/IEC 14443 -Type B
ISO/IEC 18092
Min.
Typ.
Max.
Unit
13.553
13.56
13.567
MHz
10
100
14
100
8
10
HField (1)
1.5
7.5
A/m
HField (1)
1.5
7.5
A/m
VMaxCarrier
18
Frequency of Subcarrier
modulation (ISO/IEC
14443, ISO/IEC 15693 and
ISO/IEC 18092)
fC / 16
fS
(2)
ALoad
18
18
mV
8
8
mV
18
18
mV
8
8
mV
18
18
mV
8
8
mV
fC + fS
fC - fS
ALoad
fC + fS
fC - fS
ALoad
fC + fS
fC - fS
DataR
106
106
106
212
424
424
Kbps
1. Maximum values based on design simulation and/or characterization results, and not tested in
production.
52/74
STRFNFCA
Electrical characteristics
Table 44.
Symbol
Parameter
Level of detection
(1)
Min.
Typ.
0.5
Max.
Unit
A/m
1. Parameter measured using recommended output matching network for ISO/IEC 14443 communication.
Table 45.
Reader characteristics
Symbol
fC
Parameter
Frequency of operating field (carrier frequency)
Min.
Typ.
Max.
Unit
13.553
13.56
13. 567
MHz
100
14
14
30
100
ISO/IEC 14443-A
ISO/IEC 14443-B
ISO/IEC 18092
ISO/IEC 15693 (10% modulation)(2)
ISO/IEC 15693 (100% modulation)
8
8
10
80
27
55
mW
16
230
mW
100
Receiver specifications
Small signal differential input resistance
(Rx1/Rx2)(1)
VRx1-Rx2
18
22
pF
mV
1. Maximum values based on design simulation and/or characterization results, and not tested in production.
2. Parameter measured on samples using recommended output matching network. (Z load is 27 and 0.)
3. This voltage can be limited by adding a damping resistor in parallel of the antenna or between ST_R0 and
Ground.
4. Based on ISO/IEC 10373-6 protocol measurement. The reader sensitivity corresponds to the load
modulation value of the REQ reply sent by an ISO reference card when decoded by the STRFNFCA.
53/74
Electrical characteristics
6.6
STRFNFCA
Oscillator characteristics
The external crystal used for this product is a 27.12 MHz crystal with an accuracy of
14 kHz.
Table 46.
Symbol
fXTAL
Parameter
Conditions
Min.
Oscillator frequency
Typ.
Max.
Unit
27.12
MHz
RF
Feedback resistor
pF
VPS is stabilized
10
ms
For CL1 and CL2, it is recommended to use high-quality external ceramic capacitors in the
10 pF to 20 pF range (typ.), designed for high-frequency applications, and selected to match
the requirements of the crystal or resonator (see Figure 14). CL1 and CL2 are usually the
same size. The crystal manufacturer typically specifies a load capacitance which is the
series combination of CL1 and CL2.
Figure 14. Typical application with a 27.12 MHz crystal
CL1
fHFO
XIN
27.12 MH z
crystal
RF
XOU T
NFC device
CL2
ai14145b
Note:
54/74
For CL1 and CL2 it is recommended to use high-quality ceramic capacitors in the 10 pF to
20 pF range selected to match the requirements of the crystal or resonator. CL1 and CL2, are
usually the same size. The crystal manufacturer typically specifies a load capacitance which
is the series combination of CL1 and CL2.
Load capacitance CL has the following formula: CL = CL1 x CL2 / (CL1 + CL2) + Cstray where
Cstray is the pin capacitance and board or trace PCB-related capacitance. Typically, it is
between 2 pF and 7 pF.
STRFNFCA
ddd
A1
A3
D
e
16
17
E2
24
L
32
Pin # 1 ID
R = 0.30
D2
Bottom view
Table 47.
42_ME
millimeters
Symbol
Note
Min.
Typ.
Max.
Min.
Typ.
Max.
0.800
0.900
1.000
0.0315
0.0354
0.0394
A1
0.000
0.020
0.050
0.0000
0.0008
0.0020
A3
0.200
0.0079
0.180
0.250
0.300
0.0071
0.0098
0.0118
4.850
5.000
5.150
0.1909
0.1969
0.2028
D2 (AMK_B)
3.500
3.600
3.700
0.1378
0.1417
0.1457
4.850
5.000
5.150
0.1909
0.1969
0.2028
E2 (AMK_B)
3.500
3.600
3.700
0.1378
0.1417
0.1457
0.500
1
1
0.0197
55/74
STRFNFCA
millimeters
Symbol
L
Note
Min.
Typ.
Max.
Min.
Typ.
Max.
0.300
0.400
0.500
0.0118
0.0157
0.0197
ddd (AMK)
0.050
Note:
56/74
1
2
0.0020
STRFNFCA
Appendix A
Bits [7:6]
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
LFO frequency
RFU(1)
IRQ on pin
SPI_SS
IRQ on pin
IRQ_IN
Field Detect
Tag Detect
Timeout
1. Must be set to 0.
Table 49.
Bits [7:6]
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
LFO frequency
RFU
IRQ on pin
SPI_SS
IRQ on pin
IRQ_IN
Field Detect
Tag Detect
Timeout
57/74
Appendix B
STRFNFCA
The following script works on the evaluation board and with the STRFNFCA developement
software available from the ST internet site.
This is a dichotomous approach to quickly converge to the DacDataRef value for which a
wake-up event switches from tag detection to Timeout. In this process, only the DacDataH
parameter is changed in successive Idle commands. And we look at the wake-up event
reply to decide the next step.
00 01 02 corresponds to a Tag Detect,
00 01 01 corresponds to a Timeout.
REM,
03
REM,
A100
REM,
F801
REM,
1800
HFO
REM,
REM,
60 Osc
3ms
(LFO @ 32kHz)
REM,
60 Dac
3ms
(LFO @ 32kHz)
REM,
00
DacDataL
REM,
xx
REM,
3F
Swing 13.56
REM,
4.6 us
= Timeout
when
58/74
STRFNFCA
REM, Step 0: force wake-up event to Tag Detect (set DacDataH = 0x00)
REM, With these conditions Wake-Up event must be Tag Detect
>>> 070E03A100F801180020606000003F01
<<< 000102
REM, Read Wake-up event
= Tag Detect
0x80
or
Wake-up event
= Tag
or
59/74
STRFNFCA
>>> 070E0B21007801180020606064743F01
<<< 000101
60/74
STRFNFCA
Appendix C
The following script works on the evaluation board and with the STRFNFCA developement
software available from the ST internet site.
This is an example of a Tag Detection command when a tag is not present in the RF
operating volume using the STRFNFCA:
>>> 070E0B21007801180020606064743F01
<<< 000101 Wake-up event = Timeout (0x01)
>>> 0803620100
<<< 000101
This is an example of a Tag Detection command when a tag is present in the RF operating
volume using the STRFNFCA:
>>> 070E0B21007801180020606064743F01
<<< 000102 Wake-up event = Tag Detect (0x02)
>>> 0803620100
<<< 000102
61/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNF-
Appendix D
The following script works on the evaluation board and with the STRFNFCA developement
software available from the ST internet site.
This section provides examples of STRFNFCA command code used to activate NFC Forum
and ISO/IEC 15693 tags using STRFNFCA development software.
SENDRECV: Is the encapsulated STRFNFCA SendReceive command for which command
codes, number of bytes, and CRC are automatically appended to the parameter.
In this section,
The STRFNFCA command overhead (command code, length of data and transmission
flag) is in black.
The STRFNFCA response overhead (result code, length of data and status) is in green.
When the CRC append option is set in the Protocol Select command, the CRC is
automatically appended by the STRFNFCA, but the CRC is not visible in the instruction log
file.
When the CRC is present in the command or response, CRC reply is in italics.
The following symbols correspond to:
>>> Frame sent by Host to STRFNFCA
<<< Frame received by Host from STRFNFCA
D.1
D.1.1
REM,
REM,
RFOFF
>>> 02020000
<<< 0000
REM,
TEST
TOPAZ
REM,
option TOPAZ
>>> 020402000300
<<< 0000
REM, Optimization of synchronization between digital and analog
inputs by adjusting TimerW value (default 0x52, min. 0x50, max.
0x60). Recommended value is 0x56 or 0x58 for NFC Forum Tag Type 1
(Topaz).
62/74
STRFNFCA
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693
>>> 09043A005804
<<< 0000
REM, Recommended modulation and gain is 0xD1 or 0xD3 for NFC Forum
Tag Type 1 (Topaz).
>>> 0904680101D1
<<< 0000
REM, last Byte x7 or x8 in SENDRECV
14443 _Type A frame
REM,
command
>>> 04 02 26 07
<<< 80 05 000C 280000
REM,
>>> 04 08 78000000000000 A8
<<< 80 0B 11 48 6E567A00 3E45 080000
REM, RAll 0408 0000 UID0 UID 1 UID2 UID3 Reply HR0 HR1 UID0 UID 1
UID2 UID3 datas
>>> 04 08 000000 6E567A00 A8
<<< 80 40 11 48 6E567A00
0002250000100E000313D1010F5402656E557365204352393552462021000000000
0000000000000000000000000000000000000000000CCCCCC
REM,
Write_E ad08
Write_NE ad08
Write_E ad08
63/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNF<<< 80 07 08 00 87C1 080000
REM,
D.1.2
64/74
STRFNFCA
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693
>>> SENDRECV, 9570 7910000069 28
<<< 80 06 00 FE51 080000
REM,
READ @A5
READ @A5
D.1.3
65/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNFREM, last Byte x7 or x8 in SENDRECV
14443 _Type A frame
command
TAG selected
***
ISO14443A_4 RATS/ATS
******
ISO14443A_4 PPS
66/74
STRFNFCA
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693
*******************
*******************
ReadBinary
CC (offset Le)
*******************
by Identifier 0001
*******************
bytes)
*******************
*******************
***
Header D1 type 01 Payload 11 type 54 status 02 english 656E
, MSG : M24LR16 type
D.2
D.2.1
67/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNFREM,
FIELD OFF
>>> 02020000
<<< 0000
REM, 14443B (STRFNFCA PROTOCOL Selection 14443_B
>>> 020403010180
<<< 0000
REM, 14443B Optimization STRFNFCA Analog Configuration for 144443
(0x30)
>>> 090468010130
<<< 0000
CRC_B(AID) ABAB
REM,
Nb Appli (1) 01
REM,
00
REM, Prot Info byte 3 E1 (Max frame wait time 4.9 ms Appli
proprietary CID supported)
REM, CRC_B AE00
REM,
14443_3
REM,
REQB ....
>>> 04 03 050000
<<< 80 0F 50AABBCCDD30ABAB010081E1 AE00 00
68/74
STRFNFCA
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693
REM, ATTRIB 0x1D PUPI 1byte 1byte 1byte 1 byte
Identifier Param1 Param2 Param3 Param4)
00
+ CRC_B (1D
REM,
Param1
REM,
Param2
07
REM,
Param3
01
ISO14443 compliant
REM,
Param4 08
REM,
CID (8)
REM, 80 response OK
00 STRFNFCA reply OK
card Identifier
04 nb byte response
REM,
Reply 10F9E0
coefBufferLength 1
REM,
ATTRIB ....CID0
CID 1
+ CRC_B
>>> 04 09 1D AABBCCDD00070100
<<< 80 04 10 F9E0 00
REM,
14443_4
REM,
APDU
REM,
Response (optional ):
REM,
)
REM,
[INF] CRC_B
>>> SENDRECV,
02
00 A4 040007D2760000850100
<<< 80 06 029000296A 00
REM,
response 90 00 ok
REM,
response
REM,
Select CC
Read CC
0001
69/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNF>>> SENDRECV, 03
00 A4 0000 02 0001
0001
D.3
ISO/IEC 18092
D.3.1
REM,
RFOFF
>>> 02020000
<<< 0000
REM,
>>> 02020451
<<< 0000
REM, ISO/IEC 18092 New Modulation and Gain 0x50
>>> 090468010150
<<< 0000
REM, ISO/IEC 18092 Enable AutoDetect Filter to synchronize NFC Forum
Tag Type 3 with STRFNFCA device
>>> 09040A0102A1
<<< 0000
REM,
0)
REQC 00 FFFF 00 00
REM, ATQC 80 12 01
(Manuf Parameter)
>>> 04 05 00FFFF0000
<<< 80 12 01 010102148E0DB413 100B4B428485D0FF
70/74
00
STRFNFCA
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693
D.4
ISO/IEC 15693
D.4.1
Protocol Selection
Up link
Ask 30%
coding 1/4
REM,
REM,
REM,
Protocol Selection
>>> 02020105
<<< 0000
REM,
GetSystem Info
00 AFI 00 MemorySize 3F
Protocol Selection
Up link
Ask 30%
coding 1/4
REM,
REM,
Inventory 1 Slot
REM,
Protocol Selection
71/74
Examples of STRFNFCA command code to activate NFC Forum and ISO/IEC 15693 tags STRFNF>>> 02020105
<<< 0000
72/74
00
STRFNFCA
Revision history
Revision history
Table 50.
Date
Revision
15-Sep-2010
Initial release.
21-Sep-2010
13-May-2011
24-Oct-2011
28-Oct-2011
10-Nov-2011
10-Jul-2012
26-Jul-2012
16-Nov-2012
10
11-Apr-2012
Changes
73/74
STRFNFCA
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (ST) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to STs terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN STS TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USERS OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
74/74