| Electronic Components Datasheet Search |
|
SEC2410 Datasheet(PDF) 109 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
SEC2410 Datasheet(HTML) 109 Page - Microchip Technology |
|
109 / 283 page ![]() 2013 - 2014 Microchip Technology Inc. DS00001587C-page 109 SEC2410/SEC4410 13.8 T=0 Operation The T=0 protocol is highly interactive, and there is no timeout constraint placed on the Controller side. For this mode, to support newer high bit rates, there are new timer interactions defined for this mode, and a new pair of state machines is needed in order to filter incoming data. In T=0 mode, unless ATR mode is also specified, a transmission is immediately followed by received data. Therefore, when in T=0 mode and not ATR mode, and the Receiver is newly enabled (see the FCR register), this is interpreted as meaning that the receiver will begin accepting data only when transmission is finished. According to the various stan- dards, the card is supposed to have a minimum turnaround delay before it starts transmitting data, but in practice the controller does not rely on that, and will accept data as soon as the last character has been transmitted. T=0 protocol commands specify the length of the expected response from the card. Therefore, software can be inter- rupted once by the FIFO Threshold interrupt, when the entire expected message has been received, or when it has been ended prematurely by the card (Timeout Timer [WWT] error, EOM interrupt for early SW1/SW2 presentation, or Parity Error). 13.8.1 T=0 TIMER OPERATION In T=0 mode, the Guard Timer will be used to determine the DGT requirement (turnaround guard time) when beginning transmission, and to insert the extra guard time (EGT) delay between characters. DGT and EGT are not monitored when receiving from the card. As when beginning T=1 mode, the Guard Timer is not effective until at least one character has been transmitted or received. Therefore, when software enables the Guard Timer for the first time, it must determined by other means that the DGT guard time has elapsed before enabling the Transmitter. In T=0 mode, the Timeout Timer will be used to monitor the card’s performance relative to WWT, which defines both the maximum allowed turn-around time in a card’s response, and the maximum allowed spacing between characters while the card is transmitting. In this mode, the Timeout timer will start on the last transmitted character, will reload and con- tinue on each received character, but will post an interrupt, disable the receiver and stop if it underflows. The minimum character guard time (2 etu) on transmission will be set by the fact that T=0 mode is selected in the Pro- tocol Mode register. On transmission, the guard period will be monitored only for a Parity Error response from the Smart Card, and not for any other form of interference. 13.9 T=0 Byte Filtering There is a new consideration regarding FIFO space. The Smart Card may insert NULL characters at various points in the communication, whose purpose is to reset the Timeout Timer (being used for WWT). Also, there is an unpredictable number of INS bytes, which signal when a card is prepared to transfer only one byte instead of the whole remaining block. A pair of state machines are provided to filter out these extra bytes in a T=0 exchange, thus ensuring that no valid exchange will ever overflow the FIFO. Both state machines filter only bytes that are being received from the card, but they are called “Incoming” and “Outgoing” based on the nature of the command being executed. The direction is defined relative to the card, so that “Outgoing” means reading data out of the card, and “Incoming” means writing data into the card. The special “Procedure Bytes” are those bytes sent by the card that are not data. These are: • NULL, encoded as 0x60, which is used as padding to reset the WWT timing monitor • SW1, encoded as 0x61-0x6F and 0x90-0x9F. This is the first byte of status, which flags the end of a transfer. It is always followed by one byte, SW2, which completes the status indication and is the last byte of the transaction. • INS and INS are used as flags, and represent a true (INS) and complemented (INS) echo of the Instruction byte (sent by the terminal) that is being executed by the card. The encodings of INS and INS are such that they can never be confused with NULL or SW1. 13.9.1 T=0 OUTGOING BYTE FILTER The first (“Outgoing”) state machine is used when a command is being issued that reads data from the card. In this sce- nario, the card responds on receipt of the command, and it does not stop transmitting until the entire requested block of data has been transferred. The format of this response is variable depending on the card’s performance. The Outgo- ing state machine, then, filters out the variable portions of this response, leaving only the outgoing data and status, which will be of a predictable maximum size of 258 bytes (256 bytes of information data plus the status bytes SW1 and SW2). |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |