Datasheet

LPC2104_2105_2106_7 © NXP B.V. 2008. All rights reserved.
Product data sheet Rev. 07 — 20 June 2008 13 of 41
NXP Semiconductors
LPC2104/2105/2106
Single-chip 32-bit microcontrollers
[1] Available on LPC2104/2105/2106/01 only.
6.6 Pin connect block
The pin connect block allows selected pins of the microcontroller to have more than one
function. Configuration registers control the multiplexers to allow connection between the
pin and the on chip peripherals. Peripherals should be connected to the appropriate pins
prior to being activated, and prior to any related interrupt(s) being enabled. Activity of any
enabled peripheral function that is not mapped to a related pin should be considered
undefined.
The Pin Control Module contains two registers as shown in Table 5.
6.7 Pin function select register 0 (PINSEL0 - 0xE002 C000)
The PINSEL0 register controls the functions of the pins as per the settings listed in
Table 6. The direction control bit in the IODIR register is effective only when the GPIO
function is selected for a pin. For other functions, direction is controlled automatically.
Settings other than those shown in Table 6 are reserved, and should not be used
UART 1 Rx Line Status (RLS)
Transmit Holding Register empty (THRE)
Rx Data Available (RDA)
Character Time-out Indicator (CTI)
Modem Status Interrupt (MSI)
Auto-Baud Time-Out (ABTO)
[1]
End of Auto-Baud (ABEO)
[1]
7
PWM0 Match 0 to 6 (MR0, MR1, MR2, MR3, MR4, MR5, MR6) 8
I
2
C-bus SI (state change) 9
SPI and SSP
[1]
SPIF, MODF (SPI)
TXRIS, RXRIS, RTRIS, RORRIS (SSP)
[1]
10
- reserved 11
PLL PLL Lock (PLOCK) 12
RTC RTCCIF (Counter Increment), RTCALF (Alarm) 13
System Control External Interrupt 0 (EINT0) 14
System Control External Interrupt 1 (EINT1) 15
System Control External Interrupt 2 (EINT2) 16
Table 4. Interrupt sources
…continued
Block Flag(s) VIC channel #
Table 5. Pin control module registers
Address Name Description Access
0xE002 C000 PINSEL0 Pin function select register 0 Read/Write
0xE002 C004 PINSEL1 Pin function select register 1 Read/Write