English
Language : 

K60P100M100SF2RM Datasheet, PDF (1559/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Chapter 51 Universal Asynchronous Receiver/Transmitter (UART)
6. Write to set up interrupt enable bits desired (C3[ORIE], C3[NEIE], C3[PEIE], and
C3[FEIE])
7. Write to set C4[MAEN1] = 0 and C4[MAEN2] = 0.
8. Write to C5 register and configure DMA control register bits as desired for
application.
9. Write to set C7816[INIT] = 1,C7816[ TTYPE] = 0, 7C7816[ISO_7816E] = 1.
Program C7816[ONACK] and C7816[ANACK] as desired.
10. Write to IE7816 register to set interrupt enable parameters as desired.
11. Write to ET7816 register and set as desired.
12. Write to set C2[ILIE] = 0, C2[RE] = 1, C2[TE] = 1, C2[RWU] = 0 and C2[SBK] = 0.
Setup interrupt enables C2[TIE], C2[TCIE] and C2[RIE] as desired.
At this time the UART will start listening for an initial character. Once identified it will
automatically adjust the S2[MSBF], C3[TXINV] and S2[RXINV] bits. The software
should then receive and process an answer to reset. Upon processing the answer to reset
software should write to set C2[RE] = 0 and C2[TE] = 0. Software should then adjust
7816 specific and UART generic parameters to match and configuration data that was
received during the answer on reset period. Once the new settings have been programmed
(including the new baud rate and C7816[TTYPE]) the C2[RE] and C2[TE] can be re-
enabled as required.
51.8.2.1 Transmission procedure for (C7816[TTYPE] = 0)
When the protocol selected is C7816[TTYPE] = 0, it is assumed that the software has a
prior knowledge of who should be transmitting and receiving. Hence, no mechanism is
provided for automated transmission/receipt control. Software should monitor the
S1[TDRE] flag (or configure for an interrupt) and provide additional data for
transmission as appropriate. Additionally, software should set C2[TE] = 1 and control
TXDIR whenever it is the UART's turn to transmit information. For ease of monitoring it
is suggested that only data to be transmitted until the next receiver/transmit switch over
be loaded into the transmit buffer/FIFO.
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1559