5-26
MSM66573 Family User's Manual
Chapter 5 Port Functions
5.11 Port 7 (P7)
Port 7 is a 7-bit I/O port. Each individual bit can be specified as input or output by the port
7 mode register (P7IO). When output is specified (corresponding bits of P7IO = "1"), the
value of the corresponding bits in the port 7 data register (P7) will be output from their
appropriate pins.
In addition to its port function, P7 is assigned secondary functions (such as SIO0 receive
data input). If a secondary function output is to be used, set the corresponding bits of the
port 7 mode register (P7IO) and the port 7 secondary function control register (P7SF) to "1".
If a secondary function input is to be used, reset corresponding bits of the port 7 mode
register (P7IO) 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 P7IO = "0") and the port 7 secondary
function control register (P7SF) is set to "1", the pin inputs corresponding to those bits will
be pulled-up.
If bits 0, 2 and 5 of port 7 are set as secondary function outputs (P7IOn = 1, P7SFn = 1),
their output will be fixed at "0", regardless of the value of the port 7 data register.
Figure 5-14 shows the configuration of the port 7 data register (P7), port 7 mode register
(P7IO) and the port 7 secondary function control register (P7SF).
7
P7IO7
6
5
4
3
2
1
0
P7IO6
P7IO5
P7IO2
P7IO1
P7IO0
7
PWM1OUT
P7SF7
6
5
4
3
2
1
0
PWM0OUT
P7SF6
TXD0
P7SF1
P7SF0
7
P7_7
6
5
4
3
2
1
0
P7_6
P7_5
P7_2
P7_1
P7_0
000
0
00
0
00
000
0
P7SF5
P7SF2
—
P7IO4
PTM3OUT
P7SF4
P7_4
0
Not pulled-up
P7_0 input
SIO0 receive
data input
Primary function
P7_0 output
1
Pulled-up
Secondary function
0 output*
Not pulled-up
P7_1 input
Primary function
P7_1 output
Pulled-up
Secondary function SIO0 transmit data output
Not pulled-up
P7_2 input
SIO0 external
clock input
Primary function
P7_2 output
Pulled-up
Secondary function
0 output*
Not pulled-up
P7_4 input
Primary function
P7_4 output
Pulled-up
Secondary function Timer 3 output
Not pulled-up
P7_5 input, timer 3
External event input
Primary function
P7_5 output
Pulled-up
Secondary function
0 output*
Not pulled-up
P7_6 input
Primary function
P7_6 output
Pulled-up
Secondary function PWM0 output
Not pulled-up
P7_7 input
Primary function
P7_7 output
Pulled-up
Secondary function PWM1 output
0
1
0
1
0
1
0
1
0
1
0
1
0 (Input setting)
1 (Output setting)
P7IO
At reset
P7SF
At reset
P7
At reset
Address:
R/W access:
002F [H]
R/W
Address:
R/W access:
0027 [H]
R/W
Address:
R/W access:
R/W
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."
Figure 5-14 P7, P7IO, P7SF Configuration