9.3.7.1.4 Baud Rate in ISO 7816 Mode

The ISO7816 specification defines the bit rate with the following formula:

B=DiFi×f

where:

  • B is the bit rate
  • Di is the bit rate adjustment factor
  • Fi is the clock frequency division factor
  • f is the ISO7816 clock frequency (Hz)

Di is a binary value encoded on a 4-bit field, named DI, as represented in the following table.

Table 9-22. Binary and Decimal Values for Di
DI field00010010001101000101011010001001
Di (decimal)124816321220

Fi is a binary value encoded on a 4-bit field, named FI, as represented in the following table.

Table 9-23. Binary and Decimal Values for Fi
FI field000000010010001101000101011010011010101111001101
Fi (decimal)372372558744111614881860512768102415362048

The following table shows the resulting Fi/Di Ratio, which is the ratio between the ISO7816 clock and the baud rate clock.

Table 9-24. Possible Values for the Fi/Di Ratio
Fi/Di372558744111614881806512768102415362048
1372558744111614881860512768102415362048
21862793725587449302563845127681024
493139.5186279372465128192256384512
846.569.7593139.5186232.56496128192256
1623.2534.8746.569.7593116.232486496128
3211.6217.4323.2534.8746.558.131624324864
123146.5629312415542.666485.33128170.6
2018.627.937.255.874.49325.638.451.276.8102.4

If the USART is configured in ISO7816 mode, the clock selected by the USCLKS field in FLEX_US_MR is first divided by the value programmed in field CD field in FLEX_US_BRGR. The resulting clock can be provided to the SCK pin to feed the smart card clock inputs. This means that FLEX_US_MR.CLKO can be set.

This clock is then divided by the value programmed in the FI_DI_RATIO field in the FI DI Ratio register (FLEX_US_FIDI). This is performed by the Sampling Divider, which performs a division by up to 65535 in ISO7816 mode. The noninteger values of the Fi/Di Ratio are not supported and the user must program the FI_DI_RATIO field to a value as close as possible to the expected value.

The FI_DI_RATIO field resets to the value 0x174 (372 in decimal) and is the most common divider between the ISO7816 clock and the bit rate (Fi = 372, Di = 1).

The following figure shows the relation between the Elementary Time Unit, corresponding to a bit time, and the ISO7816 clock.

Figure 9-12. Elementary Time Unit (ETU)