© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
7 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
P1.7/OCC/
AD04
4
28
I/O
P1.7 —
Port 1 bit 7.
O
OCC —
Output Compare C.
I
AD04 —
ADC0 channel 4 analog input.
P2.0 to P2.7
I/O
Port 2:
Port 2 is an 8-bit I/O port with a user-configurable output type.
During reset Port 2 latches are configured in the input only mode with the
internal pull-up disabled. The operation of Port 2 pins as inputs and
outputs depends upon the port configuration selected. Each port pin is
configured independently. Refer to
Section 5.1 “Port configurations” on
for details.
All pins have Schmitt triggered inputs.
Port 2 also provides various special functions as described below:
P2.0/ICB/ AD07 1
25
I/O
P2.0 —
Port 2 bit 0.
I
ICB —
Input Capture B.
I
AD07 —
ADC0 channel 7 analog input.
P2.1/OCD/
AD06
2
26
I/O
P2.1 —
Port 2 bit 1.
O
OCD —
Output Compare D.
I
AD06 —
ADC0 channel 6 analog input.
P2.2/MOSI
13
9
I/O
P2.2 —
Port 2 bit 2.
I/O
MOSI —
SPI master out slave in. When configured as master, this pin is
output; when configured as slave, this pin is input.
P2.3/MISO
14
10
I/O
P2.3 —
Port 2 bit 3.
I/O
MISO —
When configured as master, this pin is input, when configured
as slave, this pin is output.
P2.4/SS
15
11
I/O
P2.4 —
Port 2 bit 4.
I
SS —
SPI Slave select.
P2.5/SPICLK
16
12
I/O
P2.5 —
Port 2 bit 5.
I/O
SPICLK —
SPI clock. When configured as master, this pin is output;
when configured as slave, this pin is input.
P2.6/OCA
27
23
I/O
P2.6 —
Port 2 bit 6.
O
OCA —
Output Compare A.
P2.7/ICA
28
24
I/O
P2.7 —
Port 2 bit 7.
I
ICA —
Input Capture A.
P3.0 to P3.1
I/O
Port 3:
Port 3 is a 2-bit I/O port with a user-configurable output type.
During reset Port 3 latches are configured in the input only mode with the
internal pull-up disabled. The operation of Port 3 pins as inputs and
outputs depends upon the port configuration selected. Each port pin is
configured independently. Refer to
Section 5.1 “Port configurations” on
for details.
All pins have Schmitt triggered inputs.
Port 3 also provides various special functions as described below:
Table 1:
Pin description
…continued
Symbol
Pin
Type Description
TSSOP28,
PLCC28
HVQFN28