21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Key-Input InterruptMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSetting port P10 direction registerb7b0Port P10 direction register [Address 03F616]PD100 : Input mode (Functions as an input port)1 : Output mode (Functions as an output port)Setting pull-up control register 2b71b0Pull-up control register 2 [Address 03FE16]PUR2P104 to P1071 : Pulled highSetting interrupt control registerb70b0Key input interrupt control register [Address 004D16]KUPICInterrupt priority level select bitb2 b1 b00 0 0 : Level 0 (interrupt disabled)0 0 1 : Level 10 1 0 : Level 20 1 1 : Level 31 0 0 : Level 41 0 1 : Level 51 1 0 : Level 61 1 1 : Level 7Interrupt request bit0 : Interrupt not requestedFigure 2.13.5. Set-up procedure of key-input interrupt437

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!