p89lpc9402 NXP Semiconductors, p89lpc9402 Datasheet - Page 23

no-image

p89lpc9402

Manufacturer Part Number
p89lpc9402
Description
8-bit Microcontroller With Accelerated Two-clock 80c51 Core 8 Kb 3 V Byte-erasable ?ash With 32 Segment 4 Lcd Driver
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p89lpc9402FBD
Manufacturer:
ON
Quantity:
783
Part Number:
p89lpc9402FBD,557
Manufacturer:
NXP Semiconductors
Quantity:
10 000
NXP Semiconductors
P89LPC9402_1
Product data sheet
7.14.1.1 Quasi-bidirectional output configuration
7.14.1.2 Open-drain output configuration
7.14.1.3 Input-only configuration
7.14.1.4 Push-pull output configuration
7.14.1 Port configurations
7.14.2 Port 0 analog functions
All but three I/O port pins on the P89LPC9402 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.
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 P89LPC9402 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
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.
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
An open-drain port pin has a Schmitt trigger input that also has a glitch suppression
circuit.
The input-only port configuration has no output drivers. It is a Schmitt trigger input that
also has a glitch suppression circuit.
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
trigger input that also has a glitch suppression circuit.The P89LPC9402 device has high
current source on eight pins in push-pull mode. See
The P89LPC9402 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.
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.
DD
.
Rev. 01 — 22 April 2009
8-bit microcontroller with accelerated two-clock 80C51 core
Table 11 “Limiting
P89LPC9402
values”.
© NXP B.V. 2009. All rights reserved.
23 of 60
DD
,

Related parts for p89lpc9402