
1996 Dec 11
28
Philips Semiconductors
Preliminary specification
Low voltage 16-bit microcontroller
P90CL301BFH (C100)
8.2
Port SP Control Register (SPCON)
The special ports SPn (SP0 to SP7) consist of 8 I/O lines and are controlled via the two registers SPCON and SPR. The
registers SPCON and SPR are reset by a peripheral reset. The port latch is accessed through the register SPR.
8.2.1
P
ORT
SP C
ONTROL
R
EGISTER
(SPCON)
Table 28
Port SP Control Register (address FFFF 8109H)
Table 29
Description of SPCON bits
8.2.2
P
ORT
SP
LATCH
(SPR)
Table 30
Port SP latch (FFFF 810BH)
7
6
5
4
3
2
1
0
ES7
ES6
ES5
ES4
ES3
ES2
ES1
ES0
BIT
SYMBOL
DESCRIPTION
7 to 0
ES7 to ES0
If ESn = 0, then ‘port SPn’ is enabled; if ESn = 1, then the alternate function is enabled;
n = 0 to 7. The default value after reset is logic 0, except for ES7 which is set at reset.
7
6
5
4
3
2
1
0
SP7
SP6
SP5
SP4
SP3
SP2
SP1
SP0
8.2.3
A
LTERNATIVE FUNCTIONS FOR PORTS
P
AND
SP
Table 31
Alternative functions for P0 to P15 and
SP0 to SP7 pins
Functions within brackets are parallel functions.
PORT PIN
ALTERNATE FUNCTION
P0
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
D8
D9
D10
D11
D12
D13
D14
D15
PWM0 (CP0)
PWM1 (CP1)
SCL
SDA
P12
P13
P14
P15
SP0
SP1
SP2
SP3
SP4
SP5
SP6
SP7
ADC0
ADC1
ADC2
ADC3
RX1/INT0
TX1/INT1 (CLK0)
RX0/INT2 (CP2)
TX0/INT3 (CP3)
INT4 (CP4)
INT5 (CP5)
INT6 (CLK1)
NMIN
PORT PIN
ALTERNATE FUNCTION