Philips Semiconductors Product data
P87LPC764
Low power, low price, low pin count (20 pin)
microcontroller with 4 kbyte OTP
2003 Sep 03
21
SU01163
KBF (KBI INTERRUPT)
EKB
(FROM IEN1 REGISTER)
P0.7
KBI.7
P0.6
KBI.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
KBI.5
KBI.4
KBI.3
KBI.2
KBI.1
KBI.0
Figure 14. Keyboard Interrupt
BIT SYMBOL FUNCTION
KBI.7 KBI.7 When set, enables P0.7 as a cause of a Keyboard Interrupt.
KBI.6 KBI.6 When set, enables P0.6 as a cause of a Keyboard Interrupt.
KBI.5 KBI.5 When set, enables P0.5 as a cause of a Keyboard Interrupt.
KBI.4 KBI.4 When set, enables P0.4 as a cause of a Keyboard Interrupt.
KBI.3 KBI.3 When set, enables P0.3 as a cause of a Keyboard Interrupt.
KBI.2 KBI.2 When set, enables P0.2 as a cause of a Keyboard Interrupt.
KBI.1 KBI.1 When set, enables P0.1 as a cause of a Keyboard Interrupt.
KBI.0 KBI.0 When set, enables P0.0 as a cause of a Keyboard Interrupt.
Note: the Keyboard Interrupt must be enabled in order for the settings of the KBI register to be effective. The interrupt flag
(KBF) is located at bit 7 of AUXR1.
KBI.0
SU01164
KBI.1KBI.2KBI.3KBI.4KBI.5KBI.6KBI.7
01234567
KBI
Reset Value: 00h
Not Bit Addressable
Address: 86h
Figure 15. Keyboard Interrupt Register (KBI)
Philips Semiconductors Product data
P87LPC764
Low power, low price, low pin count (20 pin)
microcontroller with 4 kbyte OTP
2003 Sep 03
22
Oscillator
The P87LPC764 provides several user selectable oscillator options,
allowing optimization for a range of needs from high precision to
lowest possible cost. These are configured when the EPROM is
programmed. Basic oscillator types that are supported include: low,
medium, and high speed crystals, covering a range from 20 kHz to
20 MHz; ceramic resonators; and on-chip RC oscillator.
Low Frequency Oscillator Option
This option supports an external crystal in the range of 20 kHz to 100 kHz.
Table 5 shows capacitor values that may be used with a quartz crystal in this mode.
Table 5. Recommended oscillator capacitors for use with the low frequency oscillator option
Oscillator
V
DD
= 2.7 to 4.5 V V
DD
= 4.5 to 6.0 V
Frequency
Lower Limit Optimal Value Upper Limit Lower Limit Optimal Value Upper Limit
20 kHz 15 pF 15 pF 33 pF 33 pF 33 pF 47 pF
32 kHz 15 pF 15 pF 33 pF 33 pF 33 pF 47 pF
100 kHz 15 pF 15 pF 33 pF 15 pF 15 pF 33 pF
Medium Frequency Oscillator Option
This option supports an external crystal in the range of 100 kHz to 4 MHz. Ceramic resonators are also supported in this configuration.
Table 6 shows capacitor values that may be used with a quartz crystal in this mode.
Table 6. Recommended oscillator capacitors for use with the medium frequency oscillator option
Oscillator Fre-
V
DD
= 2.7 to 4.5 V V
DD
= 4.5 to 6.0 V
quency
Lower Limit Optimal Value Upper Limit Lower Limit Optimal Value Upper Limit
100 kHz 33 pF 33 pF 47 pF 33 pF 33 pF 47 pF
1 MHz 15 pF 15 pF 33 pF 15 pF 22 pF 47 pF
4 MHz 15 pF 15 pF 33 pF 15 pF 15 pF 33 pF
High Frequency Oscillator Option
This option supports an external crystal in the range of 4 to 20 MHz. Ceramic resonators are also supported in this configuration.
Table 7 shows capacitor values that may be used with a quartz crystal in this mode.
Table 7. Recommended oscillator capacitors for use with the high frequency oscillator option
Oscillator
V
DD
= 2.7 to 4.5 V V
DD
= 4.5 to 6.0 V
Frequency
Lower Limit Optimal Value Upper Limit Lower Limit Optimal Value Upper Limit
4 MHz 15 pF 33 pF 47 pF 15 pF 33 pF 68 pF
8 MHz 15 pF 15 pF 33 pF 15 pF 33 pF 47 pF
16 MHz 15 pF 15 pF 33 pF
20 MHz 15 pF 15 pF 33 pF
On-Chip RC Oscillator Option
The on-chip RC oscillator option has a typical frequency of 6 MHz
and can be divided down for slower operation through the use of the
DIVM register. For on-chip oscillator tolerance see AC Electrical
Characteristics table. A clock output on the X2/P2.0 pin may be
enabled when the on-chip RC oscillator is used.
External Clock Input Option
In this configuration, the processor clock is input from an external
source driving the X1/P2.1 pin. The rate may be from 0 Hz up to
20 MHz when V
DD
is above 4.5 V and up to 10 MHz when V
DD
is
below 4.5 V. When the external clock input mode is used, the X2/P2.0
pin may be used as a standard port pin. A clock output on the X2/P2.0
pin may be enabled when the external clock input is used.
Clock Output
The P87LPC764 supports a clock output function when either the
on-chip RC oscillator or external clock input options are selected.
This allows external devices to synchronize to the P87LPC764.
When enabled, via the ENCLK bit in the P2M1 register, the clock
output appears on the X2/CLKOUT pin whenever the on-chip
oscillator is running, including in Idle mode. The frequency of the
clock output is 1/6 of the CPU clock rate. If the clock output is not
needed in Idle mode, it may be turned off prior to entering Idle,
saving additional power. The clock output may also be enabled
when the external clock input option is selected.
Philips Semiconductors Product data
P87LPC764
Low power, low price, low pin count (20 pin)
microcontroller with 4 kbyte OTP
2003 Sep 03
23
SU01165
87LPC764
QUARTZ CRYSTAL OR
CERAMIC RESONATOR
X2
X1
THE OSCILLATOR MUST BE CONFIGURED IN ONE OF
THE FOLLOWING MODES:
– LOW FREQUENCY CRYSTAL
– MEDIUM FREQUENCY CRYSTAL
– HIGH FREQUENCY CRYSTAL
*
CAPACITOR VALUES MAY BE OPTIMIZED FOR
DIFFERENT OSCILLATOR FREQUENCIES (SEE TEXT)
A SERIES RESISTOR MAY BE REQUIRED IN ORDER TO
LIMIT CRYSTAL DRIVE LEVELS. THIS IS PARTICULARLY
IMPORTANT FOR LOW FREQUENCY CRYSTALS (SEE TEXT).
Figure 16. Using the Crystal Oscillator
SU01166
87LPC764
X2
X1
THE OSCILLATOR MUST BE CONFIGURED IN
THE EXTERNAL CLOCK INPUT MODE.
A CLOCK OUTPUT MAY BE OBTAINED ON
THE X2 PIN BY SETTING THE ENCLK BIT IN
THE P2M1 REGISTER.
CMOS COMPATIBLE EXTERNAL
OSCILLATOR SIGNAL
Figure 17. Using an External Clock Input

P87LPC764FN,112

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