Port Direction Registers - Mitsubishi 32172 User Manual

M32r series
Table of Contents

Advertisement

8

8.3.2 Port Direction Registers

P0 Direction Register (P0DIR)
P1 Direction Register (P1DIR)
P2 Direction Register (P2DIR)
P3 Direction Register (P3DIR)
P4 Direction Register (P4DIR)
P6 Direction Register (P6DIR)
P7 Direction Register (P7DIR)
P8 Direction Register (P8DIR)
P9 Direction Register (P9DIR)
P10 Direction Register (P10DIR)
P11 Direction Register (P11DIR)
P15 Direction Register (P15DIR)
P17 Direction Register (P17DIR)
P22 Direction Register (P22DIR)
D0
(
D8
Pn0DIR
Note: n = 0-4, 6-11, 15, 17, and 22
D
Bit Name
0
Pn0DIR (Port Pn0 direction bit)
1
Pn1DIR (Port Pn1 direction bit)
2
Pn2DIR (Port Pn2 direction bit)
3
Pn3DIR (Port Pn3 direction bit)
4
Pn4DIR (Port Pn4 direction bit)
5
Pn5DIR (Port Pn5 direction bit)
6
Pn6DIR (Port Pn6 direction bit)
7
Pn7DIR (Port Pn7 direction bit)
Note 1: The bits listed below have no functions assigned. (They show a 0 when read; writing to these bits
has no effect.)
P40, P60, P64-P67, P90-P92, P97, P120 -P123, P151, P152, P154-P157, P170, P171, P176,
P177, P221-P224, P226, P227
Note 2: When reset, all ports are set for input mode.
Note 3: Port P64 is available for only input mode. The P64DIR is nonexistent.
Note 4: Ports P93, P97, P124-127, P130-P137, P172, P173 and P221 are available for only input mode.
The P93DIR, P97DIR, P124-P127DIR, P130-P137DIR, P172DIR, P173DIR and P221DIR bits are
nonexistent.
Note 5: Ports P80 and P81 are available for only input mode. The P80DIR and P81DIR bits are nonexistent.
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
1
2
3
9
10
11
Pn1DIR
Pn2DIR
Pn3DIR
8.3 Input/Output Port Related Registers
4
5
12
13
Pn4DIR
Pn5DIR
Function
0: Input mode (when reset)
1: Output mode
8-9
<Address : H'0080 0720>
<Address : H'0080 0721>
<Address : H'0080 0722>
<Address : H'0080 0723>
<Address : H'0080 0724>
<Address : H'0080 0726>
<Address : H'0080 0727>
<Address : H'0080 0728>
<Address : H'0080 0729>
<Address : H'0080 072A>
<Address : H'0080 072B>
<Address : H'0080 072F>
<Address : H'0080 0731>
<Address : H'0080 0736>
6
D7
14
D15 )
Pn6DIR
Pn7DIR
<When reset: indeterminate>
R
W
Rev.1.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

32173

Table of Contents