Port N Direction Control Registers - Panasonic MN101L Series User Manual

Lsi
Table of Contents

Advertisement

Chapter 7
I/O Port
7.2.3

Port n Direction Control Registers

PnDIR is the register to control I/O direction of I/O when it is used as a general purpose port.
Port 0 Direction Control Register (P0DIR: 0x03F30)
bp
Bit name
At reset
Access
bp
7-0
Port 1 Direction Control Register (P1DIR: 0x03F31)
bp
Bit name
At reset
Access
bp
7-0
Port 2 Direction Control Register (P2DIR: 0x03F32)
bp
Bit name
At reset
Access
bp
7
6-0
VII - 12
Control Registers
7
6
0
0
R/W
R/W
Bit name
I/O mode selection
P0DIR7-0
0: Intput mode
1: Output mode
7
6
0
0
R/W
R/W
Bit name
I/O mode selection
0: Intput mode
P1DIR7-0
1: Output mode
7
6
-
0
0
R
R/W
Bit name
-
Always read as 0.
I/O mode selection
0: Intput mode
P2DIR6-0
1: Output mode
5
4
P0DIR7-0
0
0
R/W
R/W
R/W
Description
5
4
P1DIR7-0
0
0
R/W
R/W
R/W
Description
5
4
P2DIR6-0
0
0
R/W
R/W
R/W
Description
3
2
1
0
0
0
R/W
R/W
3
2
1
0
0
0
R/W
R/W
3
2
1
0
0
0
R/W
R/W
0
0
R/W
0
0
R/W
0
0
R/W

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mn101lr05dMn101lr04dMn101lr03dMn101lr02d

Table of Contents