P89LV51RB2_RC2_RD2_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 55 of 76
NXP Semiconductors
P89LV51RB2/RC2/RD2
8-bit microcontrollers with 80C51 core
6.10 Security bit
The Security Bit protects against software piracy and prevents the contents of the flash
from being read by unauthorized parties in Parallel Programmer mode. It also protects
against code corruption resulting from accidental erasing and programming to the internal
flash memory.
When the Security Bit is activated, all parallel programming commands except for
Chip-Erase are ignored (thus the device cannot be read). However, ISP reading, writing,
or erasing of the user’s code can still be performed if the serial number and length has not
been programmed. Therefore, when a user requests to program the Security Bit, the
programmer should prompt the user and program a serial number into the device.
6.11 Interrupt priority and polling sequence
The device supports eight interrupt sources under a four level priority scheme. Table 43
summarizes the polling sequence of the supported interrupts. Note that the SPI serial
interface and the UART share the same interrupt vector. (See Figure 26).
Table 43. Interrupt polling sequence
Description Interrupt flag Vector address Interrupt
enable bit
Interrupt
priority bit
Service
priority
Wake-up
power-down
External
interrupt 0
IE0 0003H EX0 PX0/H 1 (highest) yes
Brownout - 004BH EBO PBO/H 2 no
T0 TF0 000BH ET0 PT0/H 3 no
External
interrupt 1
IE1 0013H EX1 PX1/H 4 yes
T1 TF1 001BH ET1 PT1/H 5 no
PCA CF/CCFn 0033H EC PPCH 6 no
UART/SPI TI/RI/SPIF 0023H ES PS/H 7 no
T2 TF2, EXF2 002BH ET2 PT2/H 8 no
P89LV51RB2_RC2_RD2_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 56 of 76
NXP Semiconductors
P89LV51RB2/RC2/RD2
8-bit microcontrollers with 80C51 core
Fig 26. Interrupt structure
002aaa544
highest
priority
interrupt
interrupt
polling
sequence
INT0#
IE and IEA
registers
IP/IPH/IPA/IPAH
registers
individual
enables
global
disable
IE0
0
1
IT0
lowest
priority
interrupt
TF0
brownout
INT1#
TF1
CF
ECF
CCFn
ECCFn
TF2
EXF2
IE1
0
1
IT1
SPIF
SPIE
RI
TI
Table 44. IEN0 - Interrupt enable register 0 (address A8H) bit allocation
Bit addressable; reset value: 00H.
Bit 7 6 5 4 3 2 1 0
Symbol EA EC ET2 ES ET1 EX1 ET0 EX0
P89LV51RB2_RC2_RD2_5 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 05 — 15 December 2009 57 of 76
NXP Semiconductors
P89LV51RB2/RC2/RD2
8-bit microcontrollers with 80C51 core
Table 45. IEN0 - Interrupt enable register 0 (address A8H) bit descriptions
Bit Symbol Description
7 EA Interrupt Enable Bit: EA = 1 interrupt(s) can be serviced, EA = 0
interrupt servicing disabled.
6 EC PCA Interrupt Enable bit.
5 ET2 Timer 2 Interrupt Enable.
4 ES Serial Port Interrupt Enable.
3 ET1 Timer 1 Overflow Interrupt Enable.
2 EX1 External Interrupt 1 Enable.
1 ET0 Timer 0 Overflow Interrupt Enable.
0 EX0 External Interrupt 0 Enable.
Table 46. IEN1 - Interrupt enable register 1 (address E8H) bit allocation
Bit addressable; reset value: 00H.
Bit 7 6 5 4 3 2 1 0
Symbol - - - - EBO - - -
Table 47. IEN1 - Interrupt enable register 1 (address E8H) bit descriptions
Bit Symbol Description
7 to 4 - Reserved for future use. Should be set to ‘0’ by user programs.
3 EBO Brownout Interrupt Enable. 1 = enable, 0 = disable.
2 to 0 - Reserved for future use. Should be set to ‘0’ by user programs.
Table 48. IP0 - Interrupt priority 0 low register (address B8H) bit allocation
Bit addressable; reset value: 00H.
Bit 7 6 5 4 3 2 1 0
Symbol - PPC PT2 PS PT1 PX1 PT0 PX0
Table 49. IP0 - Interrupt priority 0 low register (address B8H) bit descriptions
Bit Symbol Description
7 - Reserved for future use. Should be set to ‘0’ by user programs.
6 PPC PCA interrupt priority LOW bit.
5 PT2 Timer 2 interrupt priority LOW bit.
4 PS Serial Port interrupt priority LOW bit.
3 PT1 Timer 1 interrupt priority LOW bit.
2 PX1 External interrupt 1 priority LOW bit.
1 PT0 Timer 0 interrupt priority LOW bit.
0 PX0 External interrupt 0 priority LOW bit.
Table 50. IP0H - Interrupt priority 0 high register (address B7H) bit allocation
Not bit addressable; reset value: 00H.
Bit 7 6 5 4 3 2 1 0
Symbol - PPCH PT2H PSH PT1H PX1H PT0H PX0H

P89LV51RD2BN,112

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