English
Language : 

M16C62_M Datasheet, PDF (482/615 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
Key-Input Interrupt
Mitsubishi microcomputers
M16C / 62A Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Setting port P10 direction register
b7
b0
Port P10 direction register [Address 03F616]
PD10
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
Setting pull-up control register 2
b7
1
b0
Pull-up control register 2 [Address 03FE16]
PUR2
P104 to P107
1 : Pulled high
Setting interrupt control register
b7
b0
0
Key input interrupt control register [Address 004D16]
KUPIC
Interrupt priority level select bit
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
Interrupt request bit
0 : Interrupt not requested
Figure 2.13.5. Set-up procedure of key-input interrupt
2-165