Programmable I/O Ports
M30240 Group
Rev.1.00 Sep 24, 2003 Page 114 of 360
Figure 1.110: Port register
Figure 1.111: Pull-up control register
Port Pi register
Symbol Address When reset
Pi (i = 0 to 3,6,7,10)
03E016, 03E116, 03E416, 03E516 Indeterminate
03EC
16, 03ED16, 03F416 Indeterminate
Bit name FunctionBit symbol WR
b7 b6 b5 b4 b3 b2 b1 b0
Pi_0 Port Pi
0
register
Pi_1 Port Pi
1
register
Pi_2 Port Pi
2
register
Pi_3 Port Pi
3
register
Pi_4 Port Pi
4
register
Pi_5 Port Pi
5
register
Pi_6 Port Pi
6
register
Pi_7 Port Pi
7
register
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
0 : “L” level data
1 : “H” level data
(i = 0 to 3,6,7,10)
Port P8 register
Symbol Address When reset
P8
03F016 Indeterminate
Bit name FunctionBit symbol WR
b7 b6 b5 b4 b3 b2 b1 b0
P8_0 Port P8
0
register
P8_1 Port P8
1
register
P8_2 Port P8
2
register
P8_3 Port P8
3
register
P8_4 Port P8
4
register
P8_5 Port P8
5
register
P8_6 Port P8
6
register
P8_7 Port P8
7
register
Data is input and output to and from
each pin by reading and writing to
and from each corresponding bit
(except for P8
5
)
0 : “L” level data
1 : “H” level data
Pull-up control register 0
Symbol
Address
When reset
PUR0
03FC16
0016
Bit name FunctionBit symbol WR
b7 b6 b5 b4 b3 b2 b1 b0
PU00 P0
0
to P0
3
pull-up
PU01
PU02
PU03
PU04
PU05
PU06
PU07
The corresponding port is pulled high
with a pull-up resistor
0 : Not pulled high
Pulled high
1 :
Pull-up control register 1
Symbol
Address
When reset
PUR1
03FD
16
Bit name FunctionBit symbol WR
b7 b6 b5 b4 b3 b2 b1 b0
PU10
PU11
PU12
PU13
PU14
PU15
PU16
PU17
P0
4
to P0
7
pull-up
P1
0
to P1
3
pull-up
P1
4
to P1
7
pull-up
P2
0
to P2
3
pull-up
P2
4
to P2
7
pull-up
P3
0
to P3
3
pull-up
P3
4
to P3
7
pull-up
0016
P6
4
to P6
7
pull-up
P6
0
to P6
3
pull-up
P7
0
to P7
3
pull-up
P8
0
to P8
3
pull-up
P10
0
to P10
3
pull-up
P7
4
to P7
7
pull-up
P8
4
, P8
6
, P8
7
pull-up
P10
4
to P10
7
pull-up
The corresponding port is pulled high
with a pull-up resistor
0 : Not pulled high
Pulled high
1 :