3 fifo – Freescale Semiconductor ColdFire MCF52210 User Manual

Page 407

Advertising
background image

UART Modules

MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2

Freescale Semiconductor

24-21

framing error, overrun error, and received break conditions set the respective PE, FE, OE, and RB error
and break flags in the USRn at the received character boundary. They are valid only if USRn[RXRDY] is
set.

If a break condition is detected (URXDn is low for the entire character including the stop bit), a character
of all 0s loads into the receiver holding register and USRn[RB,RXRDY] are set. URXDn must return to a
high condition for at least one-half bit time before a search for the next start bit begins.

The receiver detects the beginning of a break in the middle of a character if the break persists through the
next character time. If the break begins in the middle of a character, receiver places the damaged character
in the Rx FIFO and sets the corresponding USRn error bits and USRn[RXRDY]. Then, if the break lasts
until the next character time, receiver places an all-zero character into the Rx FIFO and sets
USRn[RB,RXRDY].

Figure 24-20

shows receiver functional timing.

Figure 24-20. Receiver Timing Diagram

24.4.2.3

FIFO

The FIFO is used in the UART’s receive buffer logic. The FIFO consists of three receiver holding registers.
The receive buffer consists of the FIFO and a receiver shift register connected to the URXDn (see

Figure 24-18

). Data is assembled in the receiver shift register and loaded into the top empty receiver

holding register position of the FIFO. Therefore, data flowing from the receiver to the CPU is
quadruple-buffered.

In addition to the data byte, three status bits—parity error (PE), framing error (FE), and received break
(RB)—are appended to each data character in the FIFO; overrun error (OE) is not appended. By

C1

C2

C4

C6

C7

C8

C3

C5

C6, C7, and C8 is lost

(C2)

Status

Data

(C3)

Status

Data

(C4)

Status

Data

C5 is

lost

Reset by

command

Receiver

Enabled

USRn[RXRDY]

Overrun

internal
module

select

USRn[FFULL]

(C1)

Status

Data

USRn[OE]

Automatically asserted
when ready to receive

Manually asserted first time,
automatically negated if overrun occurs

UOP0[RTS] = 1

1

UMR2n[RXRTS] = 1

URXDn

URTS

1

Advertising
This manual is related to the following products: