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 MICROCOMPUTERInterrupt control register (Note 2) b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetKUPIC 004D16 XXXX00002Bit symbolILVL0ILVL1ILVL2Bit nameInterrupt priority levelselect bitFunctionb2 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 7RWIRInterrupt request bit0 : Interrupt not requested1 : Interrupt requested(Note1)Port P10 direction registerNothing is assigned.These bits can neither be set nor reset. When read, their contents areindeterminate.Note 1: This bit can only be accessed for reset (= 0), but cannot be accessed for set (= 1).Note 2: To rewrite the interrupt control register, do so at a point that dose not generate theinterrupt request for that register. For details, see the precautions for interrupts.b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetPD10 03F616 0016Bit symbolPD10_0PD10_1PD10_2PD10_3PD10_4PD10_5PD10_6Bit symbolPort P100 direction registerPort P101 direction registerPort P102 direction registerPort P103 direction registerPort P104 direction registerPort P105 direction registerPort P106 direction registerBit symbol0 : Imput mode(Functions as an input port)1 : Output mode(Functions as an output port)RWPD10_7Port P107 direction registerPull-up control register 2b7 b6 b5 b4 b3 b2 b1 b0Symbol Address When resetPUR2 03FE16 0016Bit symbolPU20PU21PU22PU23PU24PU25Bit nameP80 to P83 pull-upP84 to P87 pull-up(Except P85)P90 to P93 pull-upP94 to P97 pull-upP100 to P103 pull-upP104 to P107 pull-upFunctionThe corresponding port is pulledhigh with a pull-up resistor0 : Not pulled high1 : Pulled highNothing is assigned.In an attempt to write to these bits, write “0”. The value, if read, turns out to be “0”.R W Figure 2.13.2. key-input interrupt-related registers435

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

Saved successfully!

Ooh no, something went wrong!