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.

Controlling Power ApplicationsMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERMainInitial conditionb7b00 0 1 System clock control register 0 [Address 000616]CM0WAIT state internal clock stop bitb71 10 0b0XCIN-XCOUT drive capacity select bitPort Xc select bit1 : Functions as XCIN-XCOUT oscillatorMain clock (XIN-XOUT) stop bit0 : OscillatingMain clock divide ratio select bit 0System clock select bit0 : XIN-XOUTTimer B2 mode register [Address 039D16]TB2MROperation mode select bitb1 b00 0 : Timer modeCount source select bitb7 b61 1 : fC32 (f(XCIN) divided by 32)b15 b8 b7 b00316 FF16Timer B2 register [Address 039516, 039416]TB2b71b0Clock prescaler reset flag [Address 038116]CPSRFRrescaler is resetb71b0Count start flag [Address 038016]TABSRTB2 start countingb700b01Timer B2 interrupt control register [Address 005C16]TB2ICTB2 interrupt priority levelb7000b01INT0 interrupt control register [Address 005D16]INT0ICINT0 interrupt priority levelInterrupt priority level (IPL) = 0Interrupt enable flag (I) = 0Setting interrupt except clearing wait modeb700b00Interrupt control register TBiIC(i=3 to 5) [Address 004516 to 004716]BCNIC [Address 004A16]DMiIC (i = 0, 1) [Address 004B16, 004C16]KUPIC [Address 004D16]ADIC [Address 004E16]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]Interrupt priority level select bitb2 b1 b00 0 0 : Interrupt disabledTBiIC (i = 0, 1) [Address 005A16, 005B16]INTiIC (i =3) [Address 004416]SiIC/INTjIC (i =4 to 3) [Address 004816 to 004916](j=3, 4) [Address 004816 to 004916]INTiIC (i =1 to 2) [Address 005E16 to 005F16]Continued to the next pageFigure 3.8.2. Set-up procedure of controlling power using wait mode (1)481

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

Saved successfully!

Ooh no, something went wrong!