English
Language : 

M38203M4 Datasheet, PDF (90/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.1 I/O pins
Port P0 direction register, port P1 direction register
b7 b6 b5 b4 b3 b2 b1 b0
Port P0 direction register (P0D) [Address 0116]
Port P1 direction register (P1D) [Address 0316]
B
Name
0 Port P0 direction
register /
Port P1 direction
register
Functions
At reset R W
0 : All bits are input mode
0×
1 : All bits are output mode
1 Nothing is allocated. These bits cannot be written
to to and be read out.
7
0 ××
Note: In ports P0 and P1, input/output switching is performed by a port unit.
By setting bit 0 of the corresponding port direction register to “0”, the
port is set for the input mode. By setting to “1”, the port is set for the
output mode. Nothing is allocated for bits 1 to 7 of the ports P0 and
P1 direction registers, and these bits cannot be written to.
Fig. 2.1.3 Structure of ports P0 and P1 direction registers
Table 2.1.2 Memory allocation of port direction registers
Port
Port direction register address
P0
000116
P1
000316
P2
000516
P4
000916
P5
000B16
P6
000D16
P7
000F16
2–4
3820 GROUP USER’S MANUAL