Philips Semiconductors
LPC2131/2132/2134/2136/2138
Single-chip 16/32-bit microcontrollers
Table 8: Pin function select register 2 (PINSEL2 - 0xE002C014)
PINSEL2 bits Description
Reset value
1:0
Reserved
-
2
When 0, pins P1.31:26 are GPIO pins. When 1,
0
P1.31:26 are used as Debug port.
3
When 0, pins P1.25:16 are used as GPIO pins. When 1, 0
P1.25:16 are used as Trace port.
31:30
Reserved
-
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 A/D converter
The LPC2131/32 contain one and the LPC2134/2136/2138 contains two analog to digital
converters. These converters are single 10-bit successive approximation analog to digital
converters with eight multiplexed channels.
6.11.1 Features
• Measurement range of 0 V to 3.3 V.
• Each converter capable of performing more than 400,000 10-bit samples per second.
• Burst conversion mode for single or multiple inputs.
• Optional conversion on transition on input pin or Timer Match signal.
• Global Start command for both converters (LPC2134/2136/2138 only).
6.12 10-bit D/A converter
This peripheral is available in the LPC2132/2134/2136/2138 only. The D/A converter
enables the LPC2132/2134/2136/2138 to generate variable analog output.
6.12.1 Features
• 10 bit digital to analog converter.
• Buffered output.
• Power-down mode available.
• Selectable speed versus power.
9397 750 14868
Preliminary data sheet
Rev. 02 — 15 April 2005
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
20 of 41