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