Datasheet
LPC2109_2119_2129_5 © NXP B.V. 2007. All rights reserved.
Product data sheet Rev. 05 — 7 March 2007 16 of 35
NXP Semiconductors
LPC2109/2119/2129
Single-chip 16/32-bit microcontrollers
6.9 Pin function select register 2 (PINSEL2 - 0xE002 C014)
The PINSEL2 register controls the functions of the pins as per the settings listed in
Table 8
. 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 the table are reserved, and should not be used.
6.10 General purpose parallel I/O
Device pins that are not connected to a specific peripheral function are controlled by the
GPIO registers. Pins may be dynamically configured as inputs or outputs. Separate
registers allow setting or clearing any number of outputs simultaneously. The value of the
output register may be read back, as well as the current state of the port pins.
6.10.1 Features
• Direction control of individual bits.
• Separate control of output set and clear.
• All I/O default to inputs after reset.
6.11 10-bit ADC
The LPC2109/2119/2129 each contain single 10-bit successive approximation ADC with
four multiplexed channels.
6.11.1 Features
• Measurement range of 0 V to 3 V.
• Capable of performing more than 400000 10-bit samples per second.
• Burst conversion mode for single or multiple inputs.
• Optional conversion on transition on input pin or Timer Match signal.
31:30 P0.31 0 0 Reserved 0
0 1 Reserved
1 0 Reserved
1 1 Reserved
Table 7. Pin function select register 1 (PINSEL1 - 0xE002 C004)
…continued
PINSEL1 Pin Name Value Function Value after
reset
Table 8. Pin function select register 2 (PINSEL2 - 0xE002 C014)
PINSEL2 bits Description Reset value
1:0 Reserved -
2 When 0, pins P1[31:26] are GPIO pins. When 1,
P1[31:26] are used as Debug port.
0
3 When 0, pins P1[25:16] are used as GPIO pins. When 1,
P1[25:16] are used as Trace port.
0
31:4 Reserved -