
Programmable I/O Port
deeopmen
Preliminary Specifications REV.E
Specifications in this manual are tentative and subject to change.
Mitsubishi microcomputers
M30220 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
150
Figure 1.19.9. Key input mode register
Real time port control register (Note)
Symbol
RTP
Address
03FF
16
When reset
00
16
Bit name
Function
Bit symbol
W
R
b7
b6
b5
b4
b3
b2
b1
b0
RTP2
P1
0
to P1
3
real time port
mode select bi
t
P1
4
to P1
7
real time port
mode select bit
P2
0
to P2
3
real time port
mode select bi
t
P2
4
to P2
7
real time port
mode select bit
P12
0
to P12
3
real time port
mode select bit
P12
4
and P12
5
real time
port mode select bit
RTP3
RTP4
RTP5
The corresponding ports of
output is controlled
0 : Ordinary port output
1 : Real time port output
RTP1
P0
4
to P0
7
real time port
mode select bit
RTP0
P0
0
to P0
3
real time port
mode select bit
RTP6
RTP7
Note : The corresponding port direction register is invalidated.
Figure 1.19.10. Realtime port control register
Key input mode register
Bit name
Function
Bit
P1KIS
W
R
Symbol
KUPM
Address
0126
16
When reset
01100000
2
b7
b6
b5
b4
b3
b2
b1
b0
AAA
P1 key input select bit (Note1)
0 : Falling edge
1 : Two edges
0 : Disable
1 : Enable
0 : Falling edge
1 : Two edges
0 : Disable
1 : Enable
0 : Disable
1 : Enable
P1 key input enable bit
P2 key input select bit (Note1)
P2 key input enable bit
P3 key input enable bit
P12
0
to P12
3
pull-up (Note2)
The corresponding port is
pulled high with a pull-up
resistor
0 : Not pulled high
1 : Pulled high
P12
4
to P12
7
pull-up (Note2)
P13
0
to P13
2
pull-up (Note2)
P1KIE
P2KIS
P2KIE
P3KIE
PUP12L
PUP12H
PUP13
AA
AA
AA
AA
AA
AA
AA
AA
AA
Note 1 : If this bit is set for “Two edges” when the corresponding port has been
specified to have a pullup, the port is automatically pulled high intermittently.
Operating sub-clock.
Note 2 : The pull-up resistance is not connected for pins that are set for output from
peripheral functions, regardless of the setting in the pull-up control register.