© Koninklijke Philips Electronics N.V. 2006. All rights reserved.
User manual
Rev. 01 — 12 January 2006
90
Philips Semiconductors
UM10161
Volume 1
Chapter 9: UART0
initialization conditions implement a one character delay minus the stop bit whenever
THRE=1 and there have not been at least two characters in the U0THR at one time since
the last THRE = 1 event. This delay is provided to give the CPU time to write data to
U0THR without a THRE interrupt to decode and service. A THRE interrupt is set
immediately if the UART0 THR FIFO has held two or more characters at one time and
currently, the U0THR is empty. The THRE interrupt is reset when a U0THR write occurs or
a read of the U0IIR occurs and the THRE is the highest interrupt (U0IIR[3:1] = 001).
9.3.8 UART0 FIFO Control Register (U0FCR - 0xE000 C008)
The U0FCR controls the operation of the UART0 Rx and TX FIFOs.
9.3.9 UART0 Line Control Register (U0LCR - 0xE000 C00C)
The U0LCR determines the format of the data character that is to be transmitted or
received.
Table 91:
UART0 FIFO Control Register (U0FCR - address 0xE000 C008) bit description
Bit
Symbol
Value
Description
Reset value
0
FIFO Enable 0
UART0 FIFOs are disabled. Must not be used in the
application.
0
1
Active HIGH enable for both UART0 Rx and TX
FIFOs and U0FCR[7:1] access. This bit must be set
for proper UART0 operation. Any transition on this
bit will automatically clear the UART0 FIFOs.
1
RX FIFO
Reset
0
No impact on either of UART0 FIFOs.
0
1
Writing a logic 1 to U0FCR[1] will clear all bytes in
UART0 Rx FIFO and reset the pointer logic. This bit
is self-clearing.
2
TX FIFO
Reset
0
No impact on either of UART0 FIFOs.
0
1
Writing a logic 1 to U0FCR[2] will clear all bytes in
UART0 TX FIFO and reset the pointer logic. This bit
is self-clearing.
5:3
-
0
Reserved, user software should not write ones to
reserved bits. The value read from a reserved bit is
not defined.
NA
7:6
RX Trigger
Level
00
These two bits determine how many receiver
UART0 FIFO characters must be written before an
interrupt is activated.
0
trigger level 0 (1 character or 0x01).
01
trigger level 1 (4 characters or 0x04).
10
trigger level 2 (8 characters or 0x08).
11
trigger level 3 (14 characters or 0x0E).
Table 92:
UART0 Line Control Register (U0LCR - address 0xE000 C00C) bit description
Bit
Symbol
Value
Description
Reset value
1:0
Word Length
Select
00
5 bit character length
0
01
6 bit character length
10
7 bit character length
11
8 bit character length