Renesas M16C Series User Manual page 290

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
Interrupt control register (Note 2)
b7
b6
b5
b4
b3
b2
Port Pi direction register
b7
b6
b5
b4
b3
Pull-up control register 0
b7
b6
b5
b4
b3
b2
Figure 2.120: Key-input interrupt-related registers
Rev.1.00 Sep 24, 2003 Page 272 of 360
Symbol
b1
b0
KUPIC
Bit symbol
Bit name
Interrupt priority level
ILVL0
select bit
ILVL1
ILVL2
Interrupt request bit
IR
Nothing is assigned.
These bits can neither be set nor reset. When read, their contents are
indeterminate.
Note 1: This bit can only be reset (= 0). It cannot be set (= 1).
Note 2:
To rewrite the interrupt control register, do so when it would not generate an interrupt
request for that register. See the Interrupt precautions section for more details.
b2
b1
b0
Symbol
PDi (i = 0, 1)
Bit symbol
Bit name
PDi_0
Port Pi
direction register
0
PDi_1
Port Pi
direction register
1
PDi_2
Port Pi
direction register
2
PDi_3
Port Pi
direction register
3
PDi_4
Port Pi
direction register
4
PDi_5
Port Pi
direction register
5
PDi_6
Port Pi
direction register
6
PDi_7
Port Pi
direction register
7
b1
b0
Symbol
PUR0
Bit symbol
Bit name
PU00
P0
to P0
pull-up
0
3
PU01
P0
to P0
pull-up
4
7
PU02
P1
to P1
pull-up
0
3
PU03
P1
to P1
pull-up
4
7
PU04
P2
to P2
pull-up
0
3
PU05
P2
to P2
pull-up
4
7
PU06
P3
to P3
pull-up
0
3
PU07
P3
to P3
4
7
When reset
Address
XXXX0000
004D
16
Function
b2 b1 b0
0 0 0 : Level 0 (interrupt disabled)
0 0 1 : Level 1
0 1 0 : Level 2
0 1 1 : Level 3
1 0 0 : Level 4
1 0 1 : Level 5
1 1 0 : Level 6
1 1 1 : Level 7
0 : Interrupt not requested
1 : Interrupt requested
Address
When reset
03E2
, 03E3
16
16
Function
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 0, 1)
Address
03FC
16
Function
The corresponding port is pulled high
with a pull-up resistor
0 : Not pulled high
1 : Pulled high
Key-Input Interrupt
2
R
W
(Note1)
00
16
R
W
When reset
00
16
R
W

Advertisement

Table of Contents
loading

Table of Contents