P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 31 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
(1) P89LPC9241/9251.
Fig 9. Interrupt sources, interrupt enables, and power-down wake-up sources
002aae429
IE0
EX0
IE1
EX1
BOIF
EBO
KBIF
EKBI
interrupt
to CPU
wake-up
(if in power-down)
EWDRT
CMF2
CMF1
EC
EA (IE0.7)
TF1
ET1
TI and RI/RI
ES/ESR
TI
EST
SI
EI2C
RTCF
ERTC
(RTCCON.1)
WDOVF
TF0
ET0
ENADCI0
(1)
ADCI0
(1)
ENADCI1
(1)
ADCI1
(1)
ENBI0
(1)
BNDI0
(1)
ENBI1
(1)
BNDI1
(1)
EAD
(1)
P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 32 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
7.16 I/O ports
The P89LPC9201/9211/922A1/9241/9251 has four I/O ports: Port 0, Port 1 and Port 3.
Ports 0 and 1 are 8-bit ports, and Port 3 is a 2-bit port. The exact number of I/O pins
available depends upon the clock and reset options chosen, as shown in Table 9
.
7.16.1 Port configurations
All but three I/O port pins on the P89LPC9201/9211/922A1/9241/9251 may be configured
by software to one of four types on a bit-by-bit basis. These are: quasi-bidirectional
(standard 80C51 port outputs), push-pull, open drain, and input-only. Two configuration
registers for each port select the output type for each port pin.
1. P1.5 (RST
) can only be an input and cannot be configured.
2. P1.2 (SCL/T0) and P1.3 (SDA/INT0
) may only be configured to be either input-only or
open-drain.
7.16.1.1 Quasi-bidirectional output configuration
Quasi-bidirectional output type can be used as both an input and output without the need
to reconfigure the port. This is possible because when the port outputs a logic HIGH, it is
weakly driven, allowing an external device to pull the pin LOW. When the pin is driven
LOW, it is driven strongly and able to sink a fairly large current. These features are
somewhat similar to an open-drain output except that there are three pull-up transistors in
the quasi-bidirectional output that serve different purposes.
The P89LPC9201/9211/922A1/9241/9251 is a 3 V device, but the pins are 5 V tolerant. In
quasi-bidirectional mode, if a user applies 5 V on the pin, there will be a current flowing
from the pin to V
DD
, causing extra power consumption. Therefore, applying 5 V in
quasi-bidirectional mode is discouraged.
A quasi-bidirectional port pin has a Schmitt trigger input that also has a glitch suppression
circuit.
7.16.1.2 Open-drain output configuration
The open-drain output configuration turns off all pull-ups and only drives the pull-down
transistor of the port driver when the port latch contains a logic 0. To be used as a logic
output, a port configured in this manner must have an external pull-up, typically a resistor
tied to V
DD
.
Table 9. Number of I/O pins available
Clock source Reset option Number of I/O
pins (28-pin
package)
On-chip oscillator or watchdog
oscillator
No external reset (except during
power-up)
18
External RST
pin supported 17
External clock input No external reset (except during
power-up)
17
External RST
pin supported 16
Low/medium/high speed
oscillator (external crystal or
resonator)
No external reset (except during
power-up)
16
External RST pin supported 15
P89LPC92X1 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 2.1 — 27 August 2012 33 of 75
NXP Semiconductors
P89LPC9201/9211/922A1/9241/9251
8-bit microcontroller with 8-bit ADC
An open-drain port pin has a Schmitt trigger input that also has a glitch suppression
circuit.
7.16.1.3 Input-only configuration
The input-only port configuration has no output drivers. It is a Schmitt trigger input that
also has a glitch suppression circuit.
7.16.1.4 Push-pull output configuration
The push-pull output configuration has the same pull-down structure as both the
open-drain and the quasi-bidirectional output modes, but provides a continuous strong
pull-up when the port latch contains a logic 1. The push-pull mode may be used when
more source current is needed from a port output. A push-pull port pin has a
Schmitt triggered input that also has a glitch suppression circuit. The
P89LPC9201/9211/922A1/9241/9251 device has high current source on eight pins in
push-pull mode. See Table 11
Limiting values.
7.16.2 Port 0 analog functions
The P89LPC9201/9211/922A1/9241/9251 incorporates two Analog Comparators. In order
to give the best analog function performance and to minimize power consumption, pins
that are being used for analog functions must have the digital outputs and digital inputs
disabled.
Digital outputs are disabled by putting the port output into the Input-Only
(high-impedance) mode.
Digital inputs on Port 0 may be disabled through the use of the PT0AD register, bits 1:5.
On any reset, PT0AD[1:5] defaults to logic 0s to enable digital functions.
7.16.3 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 P89LPC9201/9211/922A1/9241/9251 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 Table 12 “
Static characteristics 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.
7.17 Power monitoring functions
The P89LPC9201/9211/922A1/9241/9251 incorporates power monitoring functions
designed to prevent incorrect operation during initial power-up and power loss or
reduction during operation. This is accomplished with two hardware functions: Power-on
detect and brownout detect.

P89LPC9241FDH,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU MCU 8-Bit CISC 4KB Flash2.5V/3.3V 20Pin
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union