
ML66525 Family User’s Manual
Chapter 5
Port Functions
5 - 34
5.13 Port 10 (P10)
Port 10 is a 6-bit I/O port.
Each individual bit can be specified as input or output by the port
10 mode register (P10IO).
When output is specified (corresponding bits of P10IO = “1”), the
value of the corresponding bits in the port 10 data register (P10) will be output from their
appropriate pins.
In addition to its port function, P10 is assigned secondary functions (such as SIO3
transmit-receive clock I/O).
If a secondary function output is to be used, set the
corresponding bits of the port 10 mode register (P10IO) and the port 10 secondary function
control register (P10SF) to “1”.
If a secondary function input is to be used, reset
corresponding bits of the port 10 mode register (P10IO) to “0” to configure the input mode
(same input as the primary function input).
If the port is set as an input (corresponding bits of P10IO = “0”) and the port 10 secondary
function control register (P10SF) is set to “1”, the pin inputs corresponding to those bits will be
pulled-up.
If bits 1, 3, 4, and 5 of port 10 are set as secondary function outputs (P10IOn = 1, P10SFn = 1),
the output will be fixed at “0”, regardless of the value of the port 10 data register.
Figure 5-15 shows the configuration of the port 10 data register (P10), port 10 mode register
(P10IO) and the port 10 secondary function control register (P10SF).
0
000
00
76
5
4
321
0
76
54
3
2
1
0
76
54
32
1
0
000
00
0
000
00
—
0 output*: “0” is output, regardless of the value of the port data register.
“—” indicates a bit that does not exist.
If read, the value will be “0”.
P10IO3
P10IO5
P10IO2 P10IO1 P10IO0
P10IO
P10SF3
P10SF1
SIOCK3
P10SF0
P10SF
P10_3
P10_5
P10_2 P10_1 P10_0
P10
At reset
P10SF5
SIOO3
P10SF2
P10IO4
P10SF4
P10_4
0
1
0
1
0
1
0
1
0
1
0
1
At reset
Address: 00BA [H]
R/W access: R/W
Address: 00C2 [H]
R/W access: R/W
Address: 00CA [H]
R/W access: R/W
Not pulled-up
P10_2 input
Primary function
P10_1 output
0 output*
0 (Input setting)
1 (Output setting)
Pulled-up
Secondary function
P10_0 output
SIO3 transmit-receive
clock output
P10_0 input
SIO3 transmit-
receive clock input
SIO3 transmit data output
P10_2 output
P10_3 output
SIO4 transmit/receive
clock output
SIO4 receive data output
P10_4 output
P10_5 output
0 output*
P10_1 input
SIO3 receive
data input
P10_3 input
SIO4 transmit/
receive clock input
P10_5 input
SIO4 receive
data input
P10_4 input
Not pulled-up
Pulled-up
Not pulled-up
Pulled-up
Not pulled-up
Pulled-up
Not pulled-up
Pulled-up
Not pulled-up
Pulled-up
Primary function
Secondary function
Primary function
Secondary function
Primary function
Secondary function
Primary function
Secondary function
Primary function
Secondary function
—
——
Figure 5-15
P10, P10IO, P10SF Configuration