Download UM10208 LPC288x User manual
Transcript
UM10208 Philips Semiconductors Chapter 15: LPC288x UART Table 177. NHP Mode Register (MODE - 0x8010 1034) Bit Name Description 0 NHP When this bit is 0, as it is after a reset, the UART is compatible with 0 other UARTs derived from the National 16x50 family, in that reading the RBR removes the byte read from the RBR (and receive FIFO), and the UART requests interrupts under control of the IER. When this bit is 1, bytes must be explicitly removed from the receive FIFO by writing to the NHP Pop Register, and the UART interrupt request is derived from the INTS and INTE registers, which are described in subsequent sections. 31:1 Reset value Reserved. Software should not write ones to reserved bits. The value 1 of reserved bits when read is not defined. 3.20 NHP Pop Register (POP - 0x8010 1030) Table 178. NHP Pop Register (POP - 0x8010 1030) Bit Name Description Reset value When bit 0 of the NHP Mode Register is 1, writing to this write-only register removes the byte from the RBR (and Rx FIFO). In NHP mode, this register should be written after reading a byte from the RBR, because doing so does not remove the byte from the RBR. 3.21 Interrupt Status Register (INTS - 0x8010 1FE0) When bit 0 of the NHP Mode register is 1, the UART interrupt request is derived from this read-only register and the Interrupt Enable Register, which is described in a subsequent section. Table 179. Interrupt Status Register (INTS - 0x8010 1FE0) Bit Name Description Reset value 0 DCTSInt This bit is set when the CTS pin changes state, and is cleared by writing a 1 to bit 0 of the INTCS register. 0 3:1 - Reserved. The value of reserved bits when read is not defined. - 4 THREInt This bit is set when the Transmit Holding Register becomes empty (in 0 FIFO modes, when the Transmit FIFO becomes empty). It can be set by writing to the THR or by writing a 1 to bit 4 of the INTCS register. 5 RxTOInt This bit is set when there is at least one character in the Rx FIFO, and 0 no characters have been received nor read from the Rx FIFO for 4 character times. It is cleared by any of: receiving a new character, popping the RBR, or writing a 1 to bit 5 of the INTCS register. 6 RxDAInt This bit is set when the reception of a character brings the number of 0 received characters available to the threshold level. (In ‘450 mode the threshold is 1 character, in FIFO modes it is controlled by bits 7:6 of the FCR.) This bit is cleared by popping the RBR below the threshold. 7 WakeUpInt This bit is set whenever a character is received, and is cleared by writing a 1 to bit 7 of the INTCS register. 0 8 ABEOInt This bit is set when an auto-baud sequence is completed, and is cleared by writing a 1 to bit 8 of the INTCS register. 0 UM10208_1 User manual © Koninklijke Philips Electronics N.V. 2006. All rights reserved. Rev. 01 — 5 September 2006 156 of 338