APPENDIX
Appendix 2. Control registers
b7 b6 b5 b4 b3 b2 b1 b0
Port Pi register (i = 1, 2, 5 to 7)
(Addresses 316, 616, B16, E16, F16)
Funtion
Bit
0
Bit name
At reset R/W
Undefined RW
Undefined RW
Undefined RW
Undefined RW
Undefined RW
Undefined RW
Undefined RW
Undefined RW
Reference
5-4
Port pin Pi0
Port pin Pi1
Port pin Pi2
Port pin Pi3
Port pin Pi4
Port pin Pi5
Port pin Pi6
Port pin Pi7
Data is input from or output to a pin by reading from
or writing to the corresponding bit.
1
2
0 : “L” level
1 : “H” level
3
4
5
6
7
Notes 1: Nothing is assigned for bits 0 to 4 of the port P5 register. These bits are undefined at reading.
2: Nothing is assigned for bits 6 and 7 of the port P6 register. These bits are undefined at reading.
3: Nothing is assigned for bits 5 to 7 of the port P7 register. These bits are undefined at reading.
b7 b6 b5 b4 b3 b2 b1 b0
At reset R/W
Port Pi direction register (i = 1, 2, 5 to 7)
(Addresses 516, 816, D16, 1016, 1116)
Bit
Bit name
Function
Reference
5-3
Port P1
11-18
P6or-t20
P2
0
1
2
3
4
5
6
7
Port Pi0 direction bit
Port Pi1 direction bit
Port Pi2 direction bit
Port Pi3 direction bit
Port Pi4 direction bit
Port Pi5 direction bit
Port Pi6 direction bit
Port Pi7 direction bit
0
0
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
RW
RW
0 : Input mode
(The port functions as an input port.)
1 : Output mode
7-10
8-6
(The port functions as an output port.)
9-9
P5
P6or-t20
8-6
10-13
Port P6
5-6
7-10
P7
P6or-t20
9-9
12-11
Notes 1: Nothing is assigned for bits 0 to 4 of the port P5 direction register. These bits are undefined at reading.
2: Nothing is assigned for bits 6 and 7 of the port P6 direction register. These bits are undefined at reading.
3: Nothing is assigned for bits 5 to 7 of the port P7 direction register. These bits are undefined at reading.
4: Any of bits 0 to 5 of the port P6 direction register becomes “0” by input of a falling edge to pin P6OUTCUT/INT4. (Refer to
section “5.2.3 Pin P6OUTCUT/INT4.”)
7906 Group User’s Manual Rev.2.0
20-11