deveopmen
Programmable I/O Port
Rev.B2 for proof reading
Mitsubishi Microcomputers
M32C/83 group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
315
NMI
Data bus
Input-only port
Function
Port Pi direction register
(Note 1, 2, 3)
Bit name
Bit
Symbol
Symbol
PDi(i=0 to 5)
PDi(i=6 to 11)
PDi(i=12 to 15)
Address
03E2
16
, 03E3
16
, 03E6
16
, 03E7
16
, 03EA
16
, 03EB
16
03C2
16
, 03C3
16
, 03C6
16
, 03C7
16
, 03CA
16
, 03CB
16
03CE
16
, 03CF
16
, 03D2
16
, 03D3
16
When reset
00
16
00
16
00
16
R W
PDi_0
PDi_1
PDi_2
Port Pi
0
direction
register
PDi_3
PDi_4
PDi_5
PDi_7
PDi_6
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
Port Pi
1
direction
register
Port Pi
2
direction
register
Port Pi
3
direction
register
Port Pi
4
direction
register
Port Pi
5
direction
register
Port Pi
6
direction
register
Port Pi
7
direction
register
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
(Note 4)
Note 1: Set bit 2 of protect register (address 000A
16
) to "1" before rewriting to the port P9 direction register.
Note 2: In memory expansion and microprocessor mode, the contents of corresponding port direction register
of pins A
0
to A
22
, A
23
, D
0
to D
15
, MA0 to MA12, CS0 to CS3, WRL/WR/CASL, WRH/BHE/CASH,
RD/DW, BCLK/ALE/CLK
OUT
, HLDA/ALE, HOLD, ALE/RAS, and RDY are not changed.
Note 3: Port 11 to 15 registers exist in 144-pin version.
Note 4: Nothing is assigned in bit5 of Port P8 direction register, bit7 to bit5 of port P11 direction register and
bit7 of port P14 direction register.
When write, set to "0". When read, its content is indeterminate.
(Note 4)
(Note 4)
b7
b6
b5
b4
b3
b2
b1
b0
Figure 1.29.4. Programmable I/O ports (4)
Figure 1.29.5. Direction register