UM10346_1
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 01 — 2 November 2009
33 of 132
NXP Semiconductors
UM10346
LPC980/982 User manual
4.6 Port 0 and Analog Comparator functions
The P89LPC980/982 incorporates two Analog Comparators. In order to give the best
analog performance and minimize power consumption, pins that are being used for
analog functions must have both the digital outputs and digital inputs disabled.
Digital outputs are disabled by putting the port pins into the input-only mode as described
in the Port Configurations section (see
).
Digital inputs on Port 0 may be disabled through the use of the PT0AD register. Bits 1
through 5 in this register correspond to pins P0.1 through P0.5 of Port 0, respectively.
Setting the corresponding bit in PT0AD disables that pin’s digital input. Port bits that have
their digital inputs disabled will be read as 0 by any instruction that accesses the port.
On any reset, PT0AD bits 1 through 5 default to logic 0s to enable the digital functions.
4.7 Additional port features
After power-up, all pins are in Input-Only mode.
Please note that this is different from
the LPC76x series of devices.
•
After power-up, all I/O pins except P1.5, may be configured by software.
•
Pin P1.5 is input only. Pins P1.2 and P1.3 are configurable for either input-only or
open drain.
Every output on the P89LPC980/982 has been designed to sink typical LED drive current.
However, there is a maximum total output current for all ports which must not be
exceeded. Please refer to the P89LPC980/982
data sheet
for detailed specifications.
All ports pins that can function as an output have slew rate controlled outputs to limit noise
generated by quickly switching output signals. The slew rate is factory-set to
approximately 10 ns rise and fall times.
Fig 12. Push-pull output
002aaa917
port latch
data
input
data
port
pin
strong
glitch rejection
V
DD
P
N