English
Language : 

PXS20RM Datasheet, PDF (995/1368 Pages) Freescale Semiconductor, Inc – PXS20 Microcontroller
LIN Controller (LINFlexD)
Table 31-5. UART buffer structure
BDR
0
1
2
3
4
5
6
7
UART mode
Tx0
Tx1
Tx2
Tx3
Rx0
Rx1
Rx2
Rx3
For 16-bit frames, the lower 8 bits will be written in BDR0 and the upper 8 bits will be written in BDR1.
31.9.3 UART transmitter
In order to start transmission in UART mode, the UARTCR[UART] and UARTCR[TXEN] bits must be
set. Transmission starts when BDR0 (least significant data byte) is programmed. The number of bytes
transmitted is equal to the value configured by the UARTCR[TDFLTFC] field (see Table 31-17).
The Transmit buffer size is as follows:
• 4 bytes when UARTCR[WL1] = 0
• 2 half-words when UARTCR[WL1] = 1
Therefore, the maximum transmission that can be triggered is 4 bytes (2 half-words). After the
programmed number of bytes has been transmitted, the UARTSR[DTFTFF] flag is set. If the
UARTCR[TXEN] field is cleared during a transmission, the current transmission is completed, but no
further transmission can be invoked. The buffer can be configured in FIFO mode (mandatory when DMA
Tx is enabled) by setting UARTCR[TFBM].
The access to the BDRL register is shown in Table 31-6.
Table 31-6. BDRL access in UART mode
Access
Mode1
Word length2
IPS operation result
Write Byte0
Write Byte1-2-3
Write Half-word0-1
Write Word
Write Byte0-1-2-3
Write Half-word0
Write Half-word1
Write Word
Read Byte0-1-2-3
FIFO
FIFO
FIFO
FIFO
FIFO
FIFO
FIFO
FIFO
FIFO
Byte
Byte
Byte
Byte
Half-word
Half-word
Half-word
Half-word
Byte/Half-word
OK
IPS transfer error
IPS transfer error
IPS transfer error
IPS transfer error
OK
IPS transfer error
IPS transfer error
IPS transfer error
Freescale Semiconductor
PXS20 Microcontroller Reference Manual, Rev. 1
31-19