![](http://datasheet.mmic.net.cn/20000/935267360512_datasheet_1349165/935267360512_7.png)
Philips Semiconductors
Preliminary specification
87LPC768
Low power, low price, low pin count (20 pin) microcontroller with
4 kB OTP 8-bit A/D, Pulse Width Modulator
2000 May 02
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.
PWM3
Pulse Width Modulator 3 output.
20
I
P0.1
CIN2B
Comparator 2 positive input B.
PWM0
Pulse Width Modulator 0 output.
19
I
P0.2
CIN2A
Comparator 2 positive input A.
BRAKE
PWM brake input.
18
I
P0.3
CIN1B
Comparator 1 positive input B.
AD0
A/D channel 0 input.
17
I
P0.4
CIN1A
Comparator 1 positive input A.
AD1
A/D channel 1 input.
16
I
P0.5
CMPREF
Comparator reference (negative) input.
AD2
A/D channel 2 input.
14
O
P0.6
CMP1
Comparator 1 output.
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
P1.2
T0
Timer/counter 0 external count input or overflow output.
SCL
I2C serial clock input/output. When configured as an output, P1.2 is open
drain, in order to conform to I2C specifications.
9
I
I/O
P1.3
INT0
External interrupt 0 input.
SDA
I2C serial data input/output. When configured as an output, P1.3 is open
drain, in order to conform to I2C 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.
3
O
P1.6
PWM1
Pulse Width Modulator 1 output
2
O
P1.7
PWM2
Pulse Width Modulator 2 output