ECMA-390 2nd Edition / June 2012
Front-End Configuration Command for NFC-WI (NFC-FEC)
Reference number ECMA-123:2009
© Ecma International 2009
COPYRIGHT PROTECTED DOCUMENT
© Ecma International 2012
Contents
Page
1
Scope ...................................................................................................................................................... 1
2
Conformance ......................................................................................................................................... 1
3
Normative references ............................................................................................................................ 1
4
Terms and definitions ........................................................................................................................... 1
5
Conventions and notations .................................................................................................................. 1
6
Acronyms ............................................................................................................................................... 1
7 7.1 7.2 7.3 7.4
States ...................................................................................................................................................... 1 Escape state ........................................................................................................................................... 2 Command Ready state .......................................................................................................................... 2 Command Busy state ............................................................................................................................ 2 Quit state ................................................................................................................................................ 2
8 8.1 8.2 8.3 8.4
Commands and Responses ................................................................................................................. 2 Command and response Format ......................................................................................................... 2 Checksum .............................................................................................................................................. 3 Commands ............................................................................................................................................. 3 Responses ............................................................................................................................................. 4
9 9.1 9.2
Information-Transfer ............................................................................................................................. 5 Transceiver Frames............................................................................................................................... 5 Front-end Frames .................................................................................................................................. 5
© Ecma International 2012
i
ii
© Ecma International 2012
Introduction ECMA-373 specifies a two-wire interface for which this Standard defines commands, responses and their transmission, allowing the exchange of control and state information between the transceiver and the front-end as specified in ECMA-373. Such exchange may include: indication of the presence of the RF field and control information to change data rates and communication modes of the Front-end. This 2nd edition is fully aligned with the 1st edition of ISO/IEC 16353:2011.
This Ecma Standard has been adopted by the General Assembly of June 2012.
© Ecma International 2012
iii
"COPYRIGHT NOTICE This document may be copied, published and distributed to others, and certain derivative works of it may be prepared, copied, published, and distributed, in whole or in part, provided that the above copyright notice and this Copyright License and Disclaimer are included on all such copies and derivative works. The only derivative works that are permissible under this Copyright License and Disclaimer are: (i) works which incorporate all or portion of this document for the purpose of providing commentary or explanation (such as an annotated version of the document), (ii) works which incorporate all or portion of this document for the purpose of incorporating features that provide accessibility, (iii) translations of this document into languages other than English and into different formats and (iv) works by making use of this specification in standard conformant products by implementing (e.g. by copy and paste wholly or partly) the functionality therein. However, the content of this document itself may not be modified in any way, including by removing the copyright notice or references to Ecma International, except as required to translate it into languages other than English or into a different format. The official version of an Ecma International document is the English language version on the Ecma International website. In the event of discrepancies between a translated version and the official version, the official version shall govern. The limited permissions granted above are perpetual and will not be revoked by Ecma International or its successors or assigns. This document and the information contained herein is provided on an "AS IS" basis and ECMA INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE."
iv
© Ecma International 2012
Front-End Configuration Command for NFC-WI (NFC-FEC)
1
Scope
This Standard specifies commands for NFC-WI (ECMA-373). The commands allow exchange of control and state information between the Transceiver and the Front-end.
2
Conformance
To conform to this Standard, an NFC-FEC device shall conform to all mandatory parts specified herein and all mandatory parts of ECMA-373 (NFC-WI).
3
Normative references
The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ECMA-373, Near Field Communication Wired Interface (NFC-WI)
4
Terms and definitions
For the purposes of this Standard, the terms and definitions in ECMA-373 apply.
5
Conventions and notations
For the purposes of this Standard the conventions and notations in ECMA-373 apply.
6
Acronyms
For the purposes of this Standard the acronyms in ECMA-373 apply.
7
States
NFC-FEC extends the compound NFC-WI Command state with the Escape, Quite, “Command Ready” and “Command Busy” sub-states as specified in Figure 1.
© Ecma International 2012
1
ACT_RES
DEAC_REQ
ESC_REQ
RES_ACK
Escape
Quit
RES_ACK
CMD_QUIT
Command Ready CMD_xxx
RES_ACK RES_NACK
NFC-WI states
DEAC_RES
NFC-FEC states
ACT_REQ
Command Busy Figure 1 — NFC-WI states and NFC-FEC sub-states
7.1
Escape state
NFC-FEC shall move from the NFC-WI ON state to Escape by the Escape sequence (ESC_REQ) as defined in ECMA-373, 9.5.1. NFC-FEC shall move from Escape to Command Ready after receiving RES_ACK or after expiry of the timeout specified in 8.4.
7.2
Command Ready state
NFC-FEC allows transmission of commands in the Command Ready state. After submission of a command, NFC-FEC shall move to Command Busy state. CMD_QUIT or expiry of the timeout specified in 8.4 shall move NFC-FEC to the Quit state.
7.3
Command Busy state
When a response is transmitted, or after expiry of the timeout specified in 8.4, NFC-FEC shall move back to Command Ready state.
7.4
Quit state
Reception of RES_ACK or after expiry of the timeout specified in 8.4, NFC-FEC shall move to ON.
8
Commands and Responses
8.1
Command and response Format
The command and response format is specified in Figure 2, the data field is optional and of arbitrary length.
2
© Ecma International 2012
8 bit header
Data
8 bit checksum
Figure 2 — Command and Response format
8.2
Checksum
The checksum shall be the bytewise exclusive OR of the Initialization Vector (11111111) and the Header and the Data. The receiver shall respond with RES_NACK if it receives a wrong checksum.
8.3
Commands
Table 1 specifies the coding of commands. Undefined commands are RFU and their use is prohibited.
© Ecma International 2012
3
Table 1 — Coding of Commands
8.4
Command Header 0001 1111 0000 0000 0000 0001
Name
Description
Expected Response
CMD_QUIT CMD_NOP CMD_IMP_106
0000 0010
CMD_IMP_212
0000 0011
CMD_IMP_424
0000 1001
CMD_IMA_106
0000 1010
CMD_IMA_212
0000 1011
CMD_IMA_424
0000 1100
CMD_IMA_847
0000 1101
CMD_IMA_1695
0000 1110
CMD_IMA_3390
0000 1111
CMD_IMA_6780
0000 0100 0000 0101 0000 0110 0001 0000
CMD_TM CMD_RF_OFF CMD_RF_ON CMD_WR
0001 0010
CMD_RR
0001 0001
CMD_WB
0001 0011
CMD_RB
0001 0100
CMD_GS
Quit No operation Set Initiator passive communication mode 106kbps Set Initiator passive communication mode 212kbps Set Initiator passive communication mode 424kbps Set Initiator active communication mode 106kbps Set Initiator active communication mode 212kbps Set Initiator active communication mode 424kbps Set Initiator active communication mode 847kbps Set Initiator active communication mode 1695kbps Set Initiator active communication mode 3390kbps Set Initiator active communication mode 6780kbps Set Target communication mode Switch RF field OFF Switch RF field on Write register, followed by two data bytes (register address, value) Read register, followed by one data byte (address); Write block, followed by six data bytes (2 bytes address, 4 bytes value) Read block, followed by two data byte (address); Get status; reply shall be four data bytes
ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK ACK or NACK 1 byte ACK or NACK
4 bytes 4 bytes
Responses
Table 2 specifies the coding of responses. Undefined responses are RFU and their use prohibited. Table 2 — Coding of Responses Header 1010 0101 1010 1010 1010 1001
Name RES_ACK RES_NACK RES_DATA
Description ACK (no data) NACK Data
In case the expected response is ACK or NACK, then any response different to ACK shall be handled as NACK. For all commands the response timeout is 2 ms.
4
© Ecma International 2012
9
Information-Transfer
The commands and responses as specified in 8 shall be transmitted between a “Start of communication” and “End of communication” symbol specified in 9.1 and 9.2 respectively. The odd parity bit P shall be set such that the number of ONEs is odd in (bit 1 to bit 8, P).
9.1
Transceiver Frames
The transceiver shall use Manchester encoding as defined in ECMA-373, 10.1 and the bit coding for fCLK/128 as defined in ECMA-373, 10.3.2. Transceiver frames shall use the following framing. -
Start of communication: ONE.
-
n *(8 data bits (ZERO or ONE) + odd parity bit with n>=1). The LSB of each byte is transmitted first.
-
End of communication: HIGH for one bit duration.
9.2
Front-end Frames
The RF Front-end shall use Modified Miller encoding as defined in ECMA-373, 10.2 and the bit coding for a bit rate of . fCLK/128 as defined in ECMA-373, 10.3.1. Front-end frames shall use the following framing. -
Start of communication: ZERO.
-
n *(8 data bits (ZERO or ONE) + odd parity bit with n>=1). The LSB of each byte is transmitted first.
-
End of communication: ZERO followed by no gating for two bit durations.
© Ecma International 2012
5
© Ecma International 2012