© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
38 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
6.
Power monitoring functions
The P89LPC938 incorporates power monitoring functions designed to prevent incorrect
operation during initial power-on and power loss or reduction during operation. This is
accomplished with two hardware functions: Power-on Detect and Brownout Detect.
6.1 Brownout detection
The Brownout Detect function determines if the power supply voltage drops below a
certain level. The default operation for a Brownout Detection is to cause a processor reset.
However, it may alternatively be configured to generate an interrupt by setting the BOI
(PCON.4) bit and the EBO (IEN0.5) bit.
Table 25:
Port output configuration
Port pin
Configuration SFR bits
PxM1.y
PxM2.y
Alternate usage
Notes
P0.0
P0M1.0
P0M2.0
KBIO, CMP2, AD05
P0.1
P0M1.1
P0M2.1
KBI1, CIN2B, AD00
for
usage as analog inputs.
P0.2
P0M1.2
P0M2.2
KBI2, CIN2A, AD01
P0.3
P0M1.3
P0M2.3
KBI3, CIN1B, AD02
P0.4
P0M1.4
P0M2.4
KBI4, CIN1A, AD03
P0.5
P0M1.5
P0M2.5
KBI5, CMPREF
P0.6
P0M1.6
P0M2.6
KBI6, CMP1
P0.7
P0M1.7
P0M2.7
KBI7, T1
P1.0
P1M1.0
P1M2.0
TXD
P1.1
P1M1.1
P1M2.1
RXD
P1.2
P1M1.2
P1M2.2
T0, SCL
Input-only or open-drain
P1.3
P1M1.3
P1M2.3
INTO, SDA
input-only or open-drain
P1.4
P1M1.4
P1M2.4
INT1
P1.5
P1M1.5
P1M2.5
RST
P1.6
P1M1.6
P1M2.6
OCB
P1.7
P1M1.7
P1M2.7
OCC, AD04
P2.0
P1M1.0
P1M2.0
ICB, AD07
P2.1
P1M1.1
P1M2.1
OCD, AD06
P2.2
P1M1.2
P1M2.2
MOSI
P2.3
P1M1.3
P1M2.3
MISO
P2.4
P1M1.4
P1M2.4
SS
P2.5
P1M1.5
P1M2.5
SPICLK
P2.6
P1M1.6
P1M2.6
OCA
P2.7
P1M1.7
P1M2.7
ICA
P3.0
P3M1.0
P3M2.0
CLKOUT, XTAL2
P3.1
P3M1.1
P3M2.1
XTAL1