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.

Power ControlMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER2.14.3 Wait Mode Set-UpSettings and operation for entering wait mode are described here.Operation(1) Enables the interrupt used for returning from wait mode.(2) Sets the interrupt enable flag (I flag) to “1”.(3) Clears the protection and changes the content of the system clock control register.(4) Executes the WAIT instruction.(1) Setting interrupt to cancel wait modeInterrupt control registerTBiIC(i=3 to 5) [Address 004516 to 004716]BCNIC [Address 004A16]KUPIC [Address 004D16]SiTIC(i=0 to 2) [Address 005116, 005316, 004F16]SiRIC(i=0 to 2) [Address 005216, 005416, 005016]TAiIC(i=0 to 4) [Address 005516 to 005916]TBiIC(i=0 to 2) [Address 005A16 to 005C16]INTiIC(i=3) [Address 004416]SiIC/INTjIC (i=4, 3) [Address 004816, 004916](j=3, 4) [Address 004816, 004916]INTiIC(i=0 to 2) [Address 005D16 to 005F16]b7b0b70b0Interrupt priority level select bitMake sure that the interrupt prioritylevel of the interrupt which is usedto cancel the wait mode is higherthan the processor interrupt priority(IPL) of the routine where theWAIT instruction is executed.Interrupt priority level select bitMake sure that the interrupt priority level of theinterrupt which is used to cancel the wait mode ishigher than the processor interrupt priority (IPL) ofthe routine where the WAIT instruction is executed.Reserved bitMust be set to “0”(2) Interrupt enable flag (I flag) “1”(3) Canceling protectb7b01Protect register [Address 000A16]PRCREnables writing to system clock control registers 0 and 1(addresses 000616 and 000716)1 : Write-enabled(3) Control of CPU clockb7 b0 System clock control register 10 0 0 0 [Address 000716] CM1Reserved bitMust be set to “0”Main clock division select bitb7 b60 0 : No division mode0 1 : Division by 2 mode1 0 : Division by 4 mode1 1 : Division by 16 modeNote: When switching the system clock, it is necessaryto wait for the oscillation to stabilize.b7b0System clock control register 0[Address 000616] CM0WAIT peripheral function clock stop bit0 : Do not stop f1, f8, f32 in wait mode1 : Stop f1, f8, f32 in wait modePort XC select bit0 : I/O port1 : XCIN-XCOUT generationMain clock (XIN-XOUT) stop bit0 : On1 : OffMain clock division select bit 00 : CM16 and CM17 valid1 : Division by 8 modeSystem clock select bit (Note)0 : XIN, XOUT1 : XCIN, XCOUT(4) WAIT instructionWait modeFigure 2.14.6. Example of wait mode set-up444

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

Saved successfully!

Ooh no, something went wrong!