Nxp Semiconductors UM10237 ユーザーズマニュアル

ページ / 792
UM10237_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 19 December 2008 
465 of 792
NXP Semiconductors
UM10237
Chapter 17: LPC24XX Universal Asynchronous Receiver/Transmitter
Although 
 describes how to use TxEn bit in order to achieve hardware flow 
control, it is strongly suggested to let UART1 hardware implemented auto flow control 
features take care of this, and limit the scope of TxEn to software flow control.
LPC2400’s U1TER enables implementation of software and hardware flow control. When 
TXEn=1, UART1 transmitter will keep sending data as long as they are available. As soon 
as TXEn becomes 0, UART1 transmission will stop.
 describes how to use TXEn bit in order to achieve software flow control.
 
5.
Architecture
The architecture of the UART1 is shown below in the block diagram.
The APB interface provides a communications link between the CPU or host and the 
UART1.
The UART1 receiver block, U1RX, monitors the serial input line, RXD1, for valid input. 
The UART1 RX Shift Register (U1RSR) accepts valid characters via RXD1. After a valid 
character is assembled in the U1RSR, it is passed to the UART1 RX Buffer Register FIFO 
to await access by the CPU or host via the generic host interface.
The UART1 transmitter block, U1TX, accepts data written by the CPU or host and buffers 
the data in the UART1 TX Holding Register FIFO (U1THR). The UART1 TX Shift Register 
(U1TSR) reads the data stored in the U1THR and assembles the data to transmit via the 
serial output pin, TXD1.
The UART1 Baud Rate Generator block, U1BRG, generates the timing enables used by 
the UART1 TX block. The U1BRG clock input source is the APB clock (PCLK). The main 
clock is divided down per the divisor specified in the U1DLL and U1DLM registers. This 
divided down clock is a 16x oversample clock, NBAUDOUT.
The modem interface contains registers U1MCR and U1MSR. This interface is 
responsible for handshaking between a modem peripheral and the UART1.
The interrupt interface contains registers U1IER and U1IIR. The interrupt interface 
receives several one clock wide enables from the U1TX and U1RX blocks.
Table 414: UART1 Transmit Enable Register (U1TER - address 0xE001 0030) bit description
Bit
Symbol
Description
Reset Value
6:0
-
Reserved, user software should not write ones to reserved bits. 
The value read from a reserved bit is not defined.
NA
7
TXEN
When this bit is 1, as it is after a Reset, data written to the THR 
is output on the TXD pin as soon as any preceding data has 
been sent. If this bit cleared to 0 while a character is being sent, 
the transmission of that character is completed, but no further 
characters are sent until this bit is set again. In other words, a 0 
in this bit blocks the transfer of characters from the THR or TX 
FIFO into the transmit shift register. Software can clear this bit 
when it detects that the a hardware-handshaking TX-permit 
signal (CTS) has gone false, or with software handshaking, 
when it receives an XOFF character (DC3). Software can set 
this bit again when it detects that the TX-permit signal has gone 
true, or when it receives an XON (DC1) character.
1