52.4.1.2 Transmission bit order
When the S2[MSBF] bit is set, the UART automatically transmits the MSB of the data
word as the first bit after the start bit. Likewise the LSB of the data word is transmitted
immediately preceding the parity bit (or the stop bit if parity is not enabled). All
necessary bit ordering is handled automatically by the module hence the format of the
data written to the D register for transmission is completely independent of the
S2[MSBF] setting.
52.4.1.3 Character transmission
To transmit data, the MCU writes the data bits to the UART transmit buffer using UART
data registers (C3[T8]/D). Data in the transmit buffer is then in turn transferred to the
transmitter shift register as needed. The transmit shift register then shifts a frame out
through the transmit data output signal after it has prefaced it with any required start and
stop bits. The UART data registers (C3[T8] and D) provide access to the transmit buffer
structure.
The UART also sets a flag, the transmit data register empty flag (S1[TDRE]) and
generates interrupt or DMA request (C5[TDMAS]), whenever the number of datawords
in the transmit buffer is equal to or less than the value indicated by the
TWFIFO[TXWATER]. The transmit driver routine may respond to this flag by writing
additional datawords to the transmit buffer using (C3[T8]/D) as space permits.
See
for specific programing sequences.
Setting the C2[TE] bit automatically loads the transmit shift register with a preamble of
10 logic 1s (if C1[M] = 0), 11 logic 1s (if C1[M] = 1 and C4[M10] = 0), or 12 logic 1s (if
C1[M] = 1, C4[M10] = 1, C1[PE] = 1). After the preamble shifts out, control logic
transfers the data from the UART data register into the transmit shift register. The
transmitter automatically transmits the correct start bit and stop bit before and after the
dataword.
When C7816[ISO_7816E] = 1 setting the C2[TE] bit does not result in a preamble being
generated. The transmitter starts transmitting as soon as the corresponding guard time
expires. When C7816[TTYPE] = 0 the value in GT is used, when C7816[TTYPE] = 1 the
value BGT is used since it is assumed that the C2[TE] will remain asserted until the end
of the block transfer. The C2[TE] bit is automatically cleared when in C7816[TTYPE] =
1 and the block being transmitted has been completed. When C7816[TTYPE] = 0, the
transmitter listens for a NACK indication. If no NACK is received it is assumed that
character was correctly received. If a NACK is received the transmitter will resend the
data, assuming that the number of retries for that character (number of NACKs received)
is less than or equal to the value in ET7816[TXTHRESHOLD].
Chapter 52 Universal Asynchronous Receiver/Transmitter (UART)
K53 Sub-Family Reference Manual, Rev. 6, Nov 2011
Freescale Semiconductor, Inc.
1473
Содержание K53 Series
Страница 2: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 2 Freescale Semiconductor Inc...
Страница 58: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 58 Freescale Semiconductor Inc...
Страница 70: ...Orderable part numbers K53 Sub Family Reference Manual Rev 6 Nov 2011 70 Freescale Semiconductor Inc...
Страница 168: ...Human machine interfaces HMI K53 Sub Family Reference Manual Rev 6 Nov 2011 168 Freescale Semiconductor Inc...
Страница 206: ...Boot K53 Sub Family Reference Manual Rev 6 Nov 2011 206 Freescale Semiconductor Inc...
Страница 218: ...Security Interactions with other Modules K53 Sub Family Reference Manual Rev 6 Nov 2011 218 Freescale Semiconductor Inc...
Страница 342: ...PMC Memory Map Register Definition K53 Sub Family Reference Manual Rev 6 Nov 2011 342 Freescale Semiconductor Inc...
Страница 362: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 362 Freescale Semiconductor Inc...
Страница 384: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 384 Freescale Semiconductor Inc...
Страница 406: ...Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 406 Freescale Semiconductor Inc...
Страница 424: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 424 Freescale Semiconductor Inc...
Страница 514: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 514 Freescale Semiconductor Inc...
Страница 524: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 524 Freescale Semiconductor Inc...
Страница 546: ...Restrictions on Watchdog Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 546 Freescale Semiconductor Inc...
Страница 594: ...Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 594 Freescale Semiconductor Inc...
Страница 628: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 628 Freescale Semiconductor Inc...
Страница 702: ...Flash Operation in Low Power Modes K53 Sub Family Reference Manual Rev 6 Nov 2011 702 Freescale Semiconductor Inc...
Страница 772: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 772 Freescale Semiconductor Inc...
Страница 808: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 808 Freescale Semiconductor Inc...
Страница 864: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 864 Freescale Semiconductor Inc...
Страница 894: ...DAC Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 894 Freescale Semiconductor Inc...
Страница 908: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 908 Freescale Semiconductor Inc...
Страница 920: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 920 Freescale Semiconductor Inc...
Страница 926: ...Functional Description K53 Sub Family Reference Manual Rev 6 Nov 2011 926 Freescale Semiconductor Inc...
Страница 1092: ...FTM Interrupts K53 Sub Family Reference Manual Rev 6 Nov 2011 1092 Freescale Semiconductor Inc...
Страница 1114: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1114 Freescale Semiconductor Inc...
Страница 1156: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1156 Freescale Semiconductor Inc...
Страница 1304: ...On The Go Operation K53 Sub Family Reference Manual Rev 6 Nov 2011 1304 Freescale Semiconductor Inc...
Страница 1334: ...USB Voltage Regulator Module Signal Descriptions K53 Sub Family Reference Manual Rev 6 Nov 2011 1334 Freescale Semiconductor Inc...
Страница 1388: ...Initialization Application Information K53 Sub Family Reference Manual Rev 6 Nov 2011 1388 Freescale Semiconductor Inc...
Страница 1514: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1514 Freescale Semiconductor Inc...
Страница 1622: ...Software restrictions K53 Sub Family Reference Manual Rev 6 Nov 2011 1622 Freescale Semiconductor Inc...
Страница 1694: ...Initialization application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1694 Freescale Semiconductor Inc...
Страница 1704: ...Functional description K53 Sub Family Reference Manual Rev 6 Nov 2011 1704 Freescale Semiconductor Inc...
Страница 1734: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1734 Freescale Semiconductor Inc...
Страница 1800: ...Application information K53 Sub Family Reference Manual Rev 6 Nov 2011 1800 Freescale Semiconductor Inc...
Страница 1822: ...K53 Sub Family Reference Manual Rev 6 Nov 2011 1822 Freescale Semiconductor Inc...