Post-ATR Initialization

After the terminal has done a Reset of the Smart Card and received the setup parameters contained in the ATR, the user software can configure the module for communication as follows:

  1. Disable the UART for configuration changes by clearing the ON bit.
  2. Set the PRTCL (UxSCCON[1]), T0PD (UxSCCON[2]), CONV (UxSCCON[3]) and TXRPT[1:0] bits (UxSCCON[5:4]) according to ATR parameters.
  3. Program the UxBRG register for the ETU defined in ATR.
  4. Program guard time using Parameter 1 and set the GTCIE bit (UxSCCON[16]).
  5. Program the wait time using Parameter 3 and set the WTCIE bit (UxSCCON[17]).
  6. Configure the RX interrupt watermark using the RXWM[2:0] bits (UxSTAT[16:24]).
  7. Set the ON, TXEN and RXEN bits.