Philips Semiconductors Product data
P87LPC767
Low power, low price, low pin count (20 pin)
microcontroller with 4-kbyte OTP and 8-bit A/D converter
2002 Mar 25
4
SU01352
UNUSED CODE
MEMORY SPACE
32-BYTE CUSTOMER
CODE SPACE
(ACCESSIBLE VIA MOVC)
UNUSED CODE
MEMORY SPACE
4 K BYTES ON-CHIP
CODE MEMORY
INTERRUPT VECTORS
SPECIAL FUNCTION
REGISTERS
(ONLY DIRECTLY
ADDRESSABLE)
128 BYTES ON-CHIP DATA
MEMORY
(DIRECTLY AND
INDIRECTLY
ADDRESSABLE)
16-BIT ADDRESSABLE BYTES
UNUSED SPACE
CONFIGURATION BYTES
UCFG1, UCFG2
(ACCESSIBLE VIA MOVX)
UNUSED SPACE
FFFFh
FCFFh
FCE0h
1000h
0FFFh
FFh
80h
7Fh
0000h
00h 0000h
FD00h
FD01h
FFFFh
* The 87LPC767 does not support access to external data memory. However, the User Configuration Bytes
are accessed via the MOVX instruction as if they were in external data memory.
ON-CHIP CODE
MEMORY SPACE
ON-CHIP DATA
MEMORY SPACE
EXTERNAL DATA
MEMORY SPACE*
Figure 1. P87LPC767 Program and Data Memory Map
Philips Semiconductors Product data
P87LPC767
Low power, low price, low pin count (20 pin)
microcontroller with 4-kbyte OTP and 8-bit A/D converter
2002 Mar 25
5
PIN DESCRIPTIONS
MNEMONIC PIN NO. TYPE NAME AND FUNCTION
P0.0–P0.7 1, 13, 14,
16–20
I/O Port 0: Port 0 is an 8-bit I/O port with a user-configurable output type. Port 0 latches are configured in
the quasi-bidirectional mode and have either ones or zeros written to them during reset, as determined
by the PRHI bit in the UCFG1 configuration byte. The operation of port 0 pins as inputs and outputs
depends upon the port configuration selected. Each port pin is configured independently. Refer to the
section on I/O port configuration and the DC Electrical Characteristics for details.
The Keyboard Interrupt feature operates with port 0 pins.
Port 0 also provides various special functions as described below.
1 O P0.0 CMP2 Comparator 2 output.
20 I P0.1 CIN2B Comparator 2 positive input B.
19 I P0.2 CIN2A Comparator 2 positive input A.
18 I P0.3 CIN1B Comparator 1 positive input B.
I AD0 A/D channel 0 input.
17 I P0.4 CIN1A Comparator 1 positive input A.
I AD1 A/D channel 1 input.
16 I P0.5 CMPREF Comparator reference (negative) input.
I AD2 A/D channel 2 input.
14 O P0.6 CMP1 Comparator 1 output.
I AD3 A/D channel 3 input.
13 I/O P0.7 T1 Timer/counter 1 external count input or overflow output.
P1.0–P1.7 2–4, 8–12 I/O Port 1: Port 1 is an 8-bit I/O port with a user-configurable output type, except for three pins as noted
below. Port 1 latches are configured in the quasi-bidirectional mode and have either ones or zeros
written to them during reset, as determined by the PRHI bit in the UCFG1 configuration byte. The
operation of the configurable port 1 pins as inputs and outputs depends upon the port configuration
selected. Each of the configurable port pins are programmed independently. Refer to the section on I/O
port configuration and the DC Electrical Characteristics for details.
Port 1 also provides various special functions as described below.
12 O P1.0 TxD Transmitter output for the serial port.
11 I P1.1 RxD Receiver input for the serial port.
10 I/O
I/O
P1.2 T0 Timer/counter 0 external count input or overflow output.
SCL I
2
C serial clock input/output. When configured as an output, P1.2 is open
drain, in order to conform to I
2
C specifications.
9 I
I/O
P1.3 INT0 External interrupt 0 input.
SDA I
2
C serial data input/output. When configured as an output, P1.3 is open
drain, in order to conform to I
2
C specifications.
8 I P1.4 INT1 External interrupt 1 input.
4 I P1.5 RST External Reset input (if selected via EPROM configuration). A low on this pin
resets the microcontroller, causing I/O ports and peripherals to take on their
default states, and the processor begins execution at address 0. When used
as a port pin, P1.5 is a Schmitt trigger input only.
Philips Semiconductors Product data
P87LPC767
Low power, low price, low pin count (20 pin)
microcontroller with 4-kbyte OTP and 8-bit A/D converter
2002 Mar 25
6
P2.0–P2.1
6, 7 I/O Port 2: Port 2 is a 2-bit I/O port with a user-configurable output type. Port 2 latches are configured in the
quasi-bidirectional mode and have either ones or zeros written to them during reset, as determined by
the PRHI bit in the UCFG1 configuration byte. The operation of port 2 pins as inputs and outputs
depends upon the port configuration selected. Each port pin is configured independently. Refer to the
section on I/O port configuration and the DC Electrical Characteristics for details.
Port 2 also provides various special functions as described below.
7 O P2.0 X2 Output from the oscillator amplifier (when a crystal oscillator option is
selected via the EPROM configuration).
CLKOUT CPU clock divided by 6 clock output when enabled via SFR bit and in
conjunction with internal RC oscillator or external clock input.
6 I P2.1 X1 Input to the oscillator circuit and internal clock generator circuits (when
selected via the EPROM configuration).
V
SS
5 I Ground: 0 V reference.
V
DD
15 I Power Supply: This is the power supply voltage for normal operation as well as Idle and
Power Down modes.
SPECIAL FUNCTION REGISTERS
Name Description
SFR
Address
Bit Functions and Addresses
MSB LSB
Reset
Value
E7 E6 E5 E4 E3 E2 E1 E0
ACC* Accumulator E0h 00h
C7 C6 C5 C4 C3 C2 C1 C0
ADCON#* A/D Control C0h ENADC ADCI ADCS RCCLK AADR1 AADR0 00h
AUXR1# Auxiliary Function Register A2h KBF BOD BOI LPEP SRST 0 DPS 02h
1
F7 F6 F5 F4 F3 F2 F1 F0
B* B register F0h 00h
CMP1#
Comparator 1 control
register
ACh CE1 CP1 CN1 OE1 CO1 CMF1 00h
1
CMP2#
Comparator 2 control
register
ADh CE2 CP2 CN2 OE2 CO2 CMF2 00h
1
DAC0# A/D Result C5h 00h
DIVM#
CPU clock divide-by-M
control
95h 00h
DPTR: Data pointer (2 bytes)
DPH Data pointer high byte 83h 00h
DPL Data pointer low byte 82h 00h
CF CE CD CC CB CA C9 C8
I2CFG#* I
2
C configuration register C8h/RD SLAVEN MASTRQ 0 TIRUN CT1 CT0 00h
1
C8h/WR SLAVEN MASTRQ CLRTI TIRUN CT1 CT0
DF DE DD DC DB DA D9 D8
I2CON#* I
2
C control register D8h/RD RDAT ATN DRDY ARL STR STP
MASTER
80h
1
D8h/WR CXA IDLE CDR CARL CSTR CSTP XSTR XSTP
I2DAT# I
2
C data register D9h/RD RDAT 0 0 0 0 0 0 0 80h
D9h/WR XDAT x x x x x x x
AF AE AD AC AB AA A9 A8
IEN0* Interrupt enable 0 A8h EA EWD EBO ES ET1 EX1 ET0 EX0 00h
EF EE ED EC EB EA E9 E8
IEN1#* Interrupt enable 1 E8h ETI EC1 EAD EC2 EKB EI2 00h
1
BF BE BD BC BB BA B9 B8
IP0* Interrupt priority 0 B8h PWD PBO PS PT1 PX1 PT0 PX0 00h
1
IP0H# Interrupt priority 0 high byte B7h PWDH PBOH PSH PT1H PX1H PT0H PX0H 00h
1

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