Renesas M16C Series User Manual page 292

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

Advertisement

M30240 Group
Setting port Pi direction register
b7
Setting pull-up control register 0
b7
Setting interrupt control register
b7
Figure 2.123: Set-up procedure of key-input interrupt
Rev.1.00 Sep 24, 2003 Page 274 of 360
b0
Port Pi direction register [Address 03E2
PDi (i = 0,1)
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
b0
Pull-up control register 0 [Address 03FC
PUR0
P0 0 to P0 3
0 : Not pulled high
1 : Pulled high
P0 4 to P0 7
0 : Not pulled high
1 : Pulled high
P1 0 to P1 3
0 : Not pulled high
1 : Pulled high
P1 4 to P1 7
0 : Not pulled high
1 : Pulled high
b0
Key input interrupt control register [Address 004D
0
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
Key-Input Interrupt
, 03E3
]
16
16
]
16
]
16

Advertisement

Table of Contents
loading

Table of Contents