Rev.2.00 Oct 16, 2006 page 266 of 354
REJ09B0340-0200
M30245 Group
2. Key-Input Interrupt
Figure 2.14.6. Set-up procedure of key-input interrupt
Setting key input interrupt control register
Key input interrupt control register [Address 0041
16
]
KUPIC
b7
b0
Interrupt priority level select bit
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
b2 b1 b0
Interrupt request bit
0 : Interrupt not requested
Setting port P10 direction register
Port P10 direction register [Address 03F6
16
]
PD10
0 : Input mode (Functions as an input port)
1 : Output mode (Functions as an output port)
b7
b0
Setting pull-up control register 2
Pull-up control register 2 [Address 03FE
16
]
PUR2
b7
b0
P10
0
to P10
3
1 : Pulled high
1
0
Setting key input mode register
Key input mode register [Address 03F9
16
]
KUPM
P10 Key-input edge select bit 0
P10 Key-input edge select bit 1
b1 b0
0 0 : Falling edge
b7
b0
P10
0
and P10
1
Key-input enable bit
1 : Enabled
P10
4
and P10
5
Key-input enable bit
1 : Disabled
P10
2
and P10
3
Key-input enable bit
1 : Enabled
P10
6
and P10
7
Key-input enable bit
1 : Disabled
1
1
0 0
0
0
0
0
0
0
1 1
1
1
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...