The first byte (TS) that is being sent in the ATR has two purposes. Its first purpose is to synchronize the terminal and the ICC (more details can be found in the norms), the second purpose is that it allows the Terminal to see whether the Direct or Indirect convention is being used by the ICC. Direct convention means that the l.s.b. (least significant bit) of the byte is being sent first over the I/O line. The indirect convention will send the m.s.b. (most significant bit) first. For most cards, the direct convention is used, in which case the TS byte is set to ‘3B’.
The second byte (T0) will allow the Terminal to know the protocol that is being used by the ICC. When the msb of T0 is High, protocol T=1 is used and the card will be rejected (because T=1 is not supported by the Terminal). The following 3 bits will tell whether the characters TB1, TC1 and TD1 are present in the ATR. The 4 lsb compose the number of historical characters present in the Smartcard. These historical characters are part of the ATR and are sent at the very end. They do not contain any useful information for this project. More information about the historical characters can be found in the norms.
If TB1 is present in the ATR (depending on the value of T0), its value will need to be ‘00’ for protocal T=0.
If TC1 is present in the ATR (depending on the value of T0), it will determine how much guard time is being used in between the sending of two characters. If its value is different from its standard value, the Terminal will need to apply the correct guard time immediately for all further communication (more information in the norms).
The historical bytes (max 15) are being sent lastly. Their value is of no importance, yet they do need to be read in order to avoid confusion about which device (ICC or Terminal) has control over the I/O line (i.e. who is the sender and who is the receiver). The ICC and the Terminal shall know at any given time who is sending and who is receiving.
More detailed information about the ATR can be found in chapter 8 of the ISO/IEC 7816-1 norm.