xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx
Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Product data Rev. 05 — 17 December 2004 16 of 53
KBMASK Keypad interrupt mask
register
86H 00 00000000
KBPATN Keypad pattern register 93H FF 11111111
Bit address 87 86 85 84 83 82 81 80
P0* Port 0 80H - - CMPREF
/KB5
CIN1A
/KB4
----
[1]
Bit address 97 96 95 94 93 92 91 90
P1* Port 1 90H - -
RST - - T0 - -
[1]
Bit address B7 B6 B5 B4 B3 B2 B1 B0
P3*Port3 B0H------XTAL1XTAL2
[1]
P0M1 Port 0 output mode 1 84H - - (P0M1.5) (P0M1.4) ----FF11111111
P0M2 Port 0 output mode 2 85H - - (P0M2.5) (P0M2.4) ----0000000000
P1M1 Port 1 output mode 1 91H - - (P1M1.5) - - (P1M1.2) - - FF
[1]
11111111
P1M2 Port 1 output mode 2 92H - - (P1M2.5) - - (P1M2.2) - - 00
[1]
00000000
P3M1 Port 3 output mode 1 B1H ------(P3M1.1) (P3M1.0) 03
[1]
xxxxxx11
P3M2 Port 3 output mode 2 B2H ------(P3M2.1) (P3M2.0) 00
[1]
xxxxxx00
PCON Power control register 87H - - BOPD BOI GF1 GF0 PMOD1 PMOD0 00 00000000
PCONA Power control register A B5H RTCPD VCPD - - 00
[1]
00000000
PCONB reserved for Power Control
Register B
B6H--------00
[1]
xxxxxxxx
Bit address D7 D6 D5 D4 D3 D2 D1 D0
PSW* Program status word D0H CY AC F0 RS1 RS0 OV F1 P 00 00000000
PT0AD Port 0 digital input disable F6H - - PT0AD.5 PT0AD.4 ----00xx00000x
RSTSRC Reset source register DFH - - BOF POF - R_WD R_SF R_EX
[3]
RTCCON Real-time clock control D1H RTCF RTCS1 RTCS0 - - - ERTC RTCEN 60
[1]
[6]
011xxx00
RTCH Real-time clock register high D2H 00
[6]
00000000
RTCL Real-time clock register low D3H 00
[6]
00000000
SP Stack pointer 81H 07 00000111
TAMOD Timer 0 auxiliary mode 8FH -------T0M2 00 xxx0xxx0
Table 7: P89LPC901 Special function registers
…continued
* indicates SFRs that are bit addressable.
Name Description SFR
addr.
Bit functions and addresses Reset value
MSB LSB Hex Binary
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx
Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Product data Rev. 05 — 17 December 2004 17 of 53
[1] All ports are in input only (high impedance) state after power-up.
[2] BRGR1 and BRGR0 must only be written if BRGEN in BRGCON SFR is ‘0’. If any are written while BRGEN = 1, the result is unpredictable.
Unimplemented bits in SFRs (labeled ’-’) are X (unknown) at all times. Unless otherwise specified, ones should not be written to these bits since they may be used for other
purposes in future derivatives. The reset values shown for these bits are ‘0’s although they are unknown when read.
[3] The RSTSRC register reflects the cause of the P89LPC901/902/903 reset. Upon a power-up reset, all reset source flags are cleared except POF and BOF; the power-on reset
value is xx110000.
[4] After reset, the value is 111001x1, i.e., PRE2-PRE0 are all ‘1’, WDRUN = 1 and WDCLK = 1. WDTOF bit is ‘1’ after Watchdog reset and is ‘0’ after power-on reset. Other resets will
not affect WDTOF.
[5] On power-on reset, the TRIM SFR is initialized with a factory preprogrammed value. Other resets will not cause initialization of the TRIM register.
[6] The only reset source that affects these SFRs is power-on reset.
Bit address 8F 8E 8D 8C 8B 8A 89 88
TCON* Timer 0 and 1 control 88H TF1 TR1 TF0 TR0 ----0000000000
TH0 Timer 0 high 8CH 00 00000000
TH1 Timer 1 high 8DH 00 00000000
TL0 Timer 0 low 8AH 00 00000000
TL1 Timer 1 low 8BH 00 00000000
TMOD Timer 0 and 1 mode 89H - - T1M1 T1M0 - - T0M1 T0M0 00 00000000
TRIM Internal oscillator trim register 96H - - TRIM.5 TRIM.4 TRIM.3 TRIM.2 TRIM.1 TRIM.0
[5] [6]
WDCON Watchdog control register A7H PRE2 PRE1 PRE0 - - WDRUN WDTOF WDCLK
[4] [6]
WDL Watchdog load C1H FF 11111111
WFEED1 Watchdog feed 1 C2H
WFEED2 Watchdog feed 2 C3H
Table 7: P89LPC901 Special function registers
…continued
* indicates SFRs that are bit addressable.
Name Description SFR
addr.
Bit functions and addresses Reset value
MSB LSB Hex Binary
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx
Philips Semiconductors
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
9397 750 14465
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
Product data Rev. 05 — 17 December 2004 18 of 53
Table 8: P89LPC902 Special function registers
* indicates SFRs that are bit addressable.
Name Description SFR
addr.
Bit functions and addresses Reset value
MSB LSB Hex Binary
Bit address E7 E6 E5 E4 E3 E2 E1 E0
ACC* Accumulator E0H 00 00000000
AUXR1 Auxiliary function register A2H ----SRST 0 - DPS 00
[1]
000000x0
Bit address F7 F6 F5 F4 F3 F2 F1 F0
B* B register F0H 00 00000000
CMP1 Comparator 1 control register ACH - - CE1 - CN1 OE1 CO1 CMF1 00
[1]
xx000000
CMP2 Comparator 2 control register ADH - - CE2 - CN2 OE2 CO2 CMF2 00
[1]
xx000000
DIVM CPU clock divide-by-M
control
95H 00 00000000
DPTR Data pointer (2 bytes)
DPH Data pointer high 83H 00 00000000
DPL Data pointer low 82H 00 00000000
FMADRH Program Flash address high E7H 00 00000000
FMADRL Program Flash address low E6H 00 00000000
FMCON Program Flash Control
(Read)
E4H BUSY - - - HVA HVE SV OI 70 01110000
Program Flash Control
(Write)
FMCMD.
7
FMCMD.
6
FMCMD.
5
FMCMD.
4
FMCMD.
3
FMCMD.
2
FMCMD.
1
FMCMD.
0
FMDATA Program Flash data E5H 00 00000000
IEN0* Interrupt enable 0 A8H EA EWDRT EBO - ET1 - ET0 - 00 00000000
Bit address EF EE ED EC EB EA E9 E8
IEN1* Interrupt enable 1 E8H -----ECEKBI - 00
[1]
00x00000
Bit address BF BE BD BC BB BA B9 B8
IP0* Interrupt priority 0 B8H - PWDRT PBO - PT1 - PT0 - 00
[1]
x0000000
IP0H Interrupt priority 0 high B7H - PWDRT
H
PBOH - PT1H - PT0H - 00
[1]
x0000000
Bit address FF FE FD FC FB FA F9 F8
IP1* Interrupt priority 1 F8H -----PCPKBI - 00
[1]
00x00000
IP1H Interrupt priority 1 high F7H -----PCHPKBIH - 00
[1]
00x00000

P89LPC903FD,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