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
P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 25 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
OCRBL Output compare
B register low
FAH 00 0000 0000
OCRCH Output compare
C register high
FDH 00 0000 0000
OCRCL Output compare
C register low
FCH 00 0000 0000
OCRDH Output compare
D register high
FFH 00 0000 0000
OCRDL Output compare
D register low
FEH 00 0000 0000
Bit address 87 86 85 84 83 82 81 80
P0* Port 0 80H T1/KB7 CMP1
/KB6
CMPREF
/KB5
CIN1A
/KB4
CIN1B
/KB3
CIN2A
/KB2
CIN2B
/KB1
CMP2
/KB0
[1]
Bit address 97 96 95 94 93 92 91 90
P1* Port 1 90H OCC OCB RST
INT1 INT0/SDA T0/SCL RXD TXD
[1]
Bit address A7 A6 A5 A4 A3 A2 A1 A0
P2* Port 2 A0H ICA OCA SPICLK SS
MISO MOSI OCD ICB
[1]
Bit address B7 B6 B5 B4 B3 B2 B1 B0
P3*Port3 B0H------XTAL1XTAL2
[1]
P0M1 Port 0 output
mode 1
84H (P0M1.7) (P0M1.6) (P0M1.5) (P0M1.4) (P0M1.3) (P0M1.2) (P0M1.1) (P0M1.0) FF
[1]
1111 1111
P0M2 Port 0 output
mode 2
85H (P0M2.7) (P0M2.6) (P0M2.5) (P0M2.4) (P0M2.3) (P0M2.2) (P0M2.1) (P0M2.0) 00
[1]
0000 0000
P1M1 Port 1 output
mode 1
91H (P1M1.7) (P1M1.6) - (P1M1.4) (P1M1.3) (P1M1.2) (P1M1.1) (P1M1.0) D3
[1]
11x1 xx11
P1M2 Port 1 output
mode 2
92H (P1M2.7) (P1M2.6) - (P1M2.4) (P1M2.3) (P1M2.2) (P1M2.1) (P1M2.0) 00
[1]
00x0 xx00
P2M1 Port 2 output
mode 1
A4H (P2M1.7) (P2M1.6) (P2M1.5) (P2M1.4) (P2M1.3) (P2M1.2) (P2M1.1) (P2M1.0) FF
[1]
1111 1111
P2M2 Port 2 output
mode 2
A5H (P2M2.7) (P2M2.6) (P2M2.5) (P2M2.4) (P2M2.3) (P2M2.2) (P2M2.1) (P2M2.0) 00
[1]
0000 0000
Table 6. Special function registers - P89LPC9351/9361
* 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
P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 26 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
P3M1 Port 3 output
mode 1
B1H------(P3M1.1)(P3M1.0)03
[1]
xxxx xx11
P3M2 Port 3 output
mode 2
B2H------(P3M2.1)(P3M2.0)00
[1]
xxxx xx00
PCON Power control
register
87H SMOD1 SMOD0 - BOI GF1 GF0 PMOD1 PMOD0 00 0000 0000
PCONA Power control
register A
B5H RTCPD DEEPD VCPD ADPD I2PD SPPD SPD CCUPD 00
[1]
0000 0000
Bit address D7 D6 D5 D4 D3 D2 D1 D0
PSW* Program status
word
D0H CY AC F0 RS1 RS0 OV F1 P 00 0000 0000
PT0AD Port 0 digital input
disable
F6H - - PT0AD.5 PT0AD.4 PT0AD.3 PT0AD.2 PT0AD.1 - 00 xx00 000x
RSTSRC Reset source
register
DFH - BOIF BOF POF R_BK R_WD R_SF R_EX
[3]
RTCCON RTC control D1H RTCF RTCS1 RTCS0 - - - ERTC RTCEN 60
[1][6]
011x xx00
RTCH RTC register high D2H 00
[6]
0000 0000
RTCL RTC register low D3H 00
[6]
0000 0000
SADDR Serial port
address register
A9H 00 0000 0000
SADEN Serial port
address enable
B9H 00 0000 0000
SBUF Serial Port data
buffer register
99H xx xxxx xxxx
Bit address 9F 9E 9D 9C 9B 9A 99 98
SCON* Serial port control 98H SM0/FE SM1 SM2 REN TB8 RB8 TI RI 00 0000 0000
SSTAT Serial port
extended status
register
BAH DBMOD INTLO CIDIS DBISEL FE BR OE STINT 00 0000 0000
SP Stack pointer 81H 07 0000 0111
SPCTL SPI control
register
E2H SSIG SPEN DORD MSTR CPOL CPHA SPR1 SPR0 04 0000 0100
Table 6. Special function registers - P89LPC9351/9361
* 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
P89LPC9331_9341_9351_9361 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2012. All rights reserved.
Product data sheet Rev. 5.1 — 20 August 2012 27 of 94
NXP Semiconductors
P89LPC9331/9341/9351/9361
8-bit microcontroller with accelerated two-clock 80C51 core
SPSTAT SPI status
register
E1HSPIFWCOL------0000xxxxxx
SPDAT SPI data register E3H 00 0000 0000
TAMOD Timer 0 and 1
auxiliary mode
8FH - - - T1M2 - - - T0M2 00 xxx0 xxx0
Bit address 8F 8E 8D 8C 8B 8A 89 88
TCON* Timer 0 and 1
control
88H TF1 TR1 TF0 TR0 IE1 IT1 IE0 IT0 00 0000 0000
TCR20* CCU control
register 0
C8H PLEEN HLTRN HLTEN ALTCD ALTAB TDIR2 TMOD21 TMOD20 00 0000 0000
TCR21 CCU control
register 1
F9H TCOU2 - - - PLLDV.3 PLLDV.2 PLLDV.1 PLLDV.0 00 0xxx 0000
TH0 Timer 0 high 8CH 00 0000 0000
TH1 Timer 1 high 8DH 00 0000 0000
TH2 CCU timer high CDH 00 0000 0000
TICR2 CCU interrupt
control register
C9H TOIE2 TOCIE2D TOCIE2C TOCIE2B TOCIE2A - TICIE2B TICIE2A 00 0000 0x00
TIFR2 CCU interrupt flag
register
E9H TOIF2 TOCF2D TOCF2C TOCF2B TOCF2A - TICF2B TICF2A 00 0000 0x00
TISE2 CCU interrupt
status encode
register
DEH-----ENCINT.2ENCINT.1ENCINT.000xxxxx000
TL0 Timer 0 low 8AH 00 0000 0000
TL1 Timer 1 low 8BH 00 0000 0000
TL2 CCU timer low CCH 00 0000 0000
TMOD Timer 0 and 1
mode
89H T1GATE T1C/T T1M1 T1M0 T0GATE T0C/T T0M1 T0M0 00 0000 0000
TOR2H CCU reload
register high
CFH 00 0000 0000
TOR2L CCU reload
register low
CEH 00 0000 0000
TPCR2H Prescaler control
register high
CBH------TPCR2H.1TPCR2H.000xxxx xx00
Table 6. Special function registers - P89LPC9351/9361
* indicates SFRs that are bit addressable.
Name Description SFR
addr.
Bit functions and addresses Reset value
MSB LSB Hex Binary

P89LPC9331FDH,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU IC 80C51 MCU FLASH 4K
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union