Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
Product data Rev. 05 — 17 December 2004 28 of 53
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
The P89LPC901 supports 6 interrupt sources: timers 0 and 1, brownout detect,
Watchdog/real-time clock, keyboard, and the comparator.
The P89LPC902 supports 6 interrupt sources: timers 0 and 1, brownout detect,
Watchdog/real-time clock, keyboard, and comparators 1 and 2.
The P89LPC903 supports 9 interrupt sources: timers 0 and 1, serial port Tx, serial
port Rx, combined serial port Rx/Tx, brownout detect, Watchdog/real-time clock,
keyboard, and comparators 1 and 2.
Each interrupt source can be individually enabled or disabled by setting or clearing a
bit in the interrupt enable registers IEN0 or IEN1. The IEN0 register also contains a
global disable bit, EA, which disables all interrupts.
Each interrupt source can be individually programmed to one of four priority levels by
setting or clearing bits in the interrupt priority registers IP0, IP0H, IP1, and IP1H. An
interrupt service routine in progress can be interrupted by a higher priority interrupt,
but not by another interrupt of the same or lower priority. The highest priority interrupt
service cannot be interrupted by any other interrupt source. If two requests of
different priority levels are pending at the start of an instruction, the request of higher
priority level is serviced.
If requests of the same priority level are pending at the start of an instruction, an
internal polling sequence determines which request is serviced. This is called the
arbitration ranking. Note that the arbitration ranking is only used to resolve pending
requests of the same priority level.
8.11.1 External interrupt inputs
The P89LPC901/902/903 has a Keypad Interrupt function. This can be used as an
external interrupt input.
If enabled when the P89LPC901/902/903 is put into Power-down or Idle mode, the
interrupt will cause the processor to wake-up and resume operation. Refer to Section
8.14 “Power reduction modes” for details.
Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
Product data Rev. 05 — 17 December 2004 29 of 53
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Fig 15. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC901).
002aaa450
BOF
EBO
KBIF
EKBI
INTERRUPT
TO CPU
WAKE-UP
(IF IN POWER-DOWN)
EWDRT
CMF
EC
EA (IE0.7)
TF1
ET1
TF0
ET0
RTCF
ERTC
(RTCCON.1)
WDOVF
Fig 16. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC902).
002aaa451
BOF
EBO
KBIF
EKBI
INTERRUPT
TO CPU
WAKE-UP
(IF IN POWER-DOWN)
EWDRT
CMF
EC
EA (IE0.7)
TF1
ET1
TF0
ET0
RTCF
ERTC
(RTCCON.1)
WDOVF
Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
Product data Rev. 05 — 17 December 2004 30 of 53
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
8.12 I/O ports
The P89LPC901 has between 3 and 6 I/O pins: P0.4, P0.5, P1.2, P1.5, P3.0, and
P3.1 The exact number of I/O pins available depends on the clock and reset options
chosen, as shown in Tabl e 11.
[1] Required for operation above 12 MHz.
The P89LPC902 and P89LPC903 devices have either 5 or 6 I/O pins depending on
the reset pin option chosen.
8.12.1 Port configurations
All but one I/O port pin on the P89LPC901/902/903 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.
P1.5 (RST) can only be an input and cannot be configured.
Fig 17. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC903).
002aaa452
BOF
EBO
KBIF
EKBI
INTERRUPT
TO CPU
WAKE-UP
(IF IN POWER-DOWN)
EWDRT
CMF
EC
EA (IE0.7)
RTCF
ERTC
(RTCCON.1)
WDOVF
TF1
ET1
TI & RI/RI
ES/ESR
TI
EST
TF0
ET0
Table 11: Number of I/O pins available
Clock source Reset option Number of I/O pins
(8-pin package)
On-chip oscillator or Watchdog oscillator No external reset (except during power-up) 6
External
RST pin supported 5
External clock input No external reset (except during power-up) 5
External
RST pin supported
[1]
4
Low/medium/high speed oscillator
(external crystal or resonator)
No external reset (except during power-up) 4
External
RST pin supported
[1]
3

P89LPC902FD,112

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT 1KB FLASH 8SO
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union