21.07.2015 Views

M16C User Manual.pdf

M16C User Manual.pdf

M16C User Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Timer A ApplicationsMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTERSetting timer A0Selecting one-shot timer mode and functionsb70 00 1 0 0b01 0Timer A0 mode register [Address 039616]TA0MRSelection of one-shot timer modePulse output function select bit0 : Pulse is not output (TA0OUT pin is normal port pin)External trigger select bit0 : Falling edge of TA0IN pin's input signalTrigger select bit1 : Selected by event/trigger select register0 (Must always be “0” in one-shot timer mode)Count source select bitb7 b60 0 : f1b7 b60 00 11 01 1Countsourcef1f8f32fC32Count source periodf(XIN) : 16MHZ f(XcIN) : 32.768kHZ62.5ns500ns2µs976.56µsSetting one-shot start flag(Select TA0IN pin to input TA0 trigger)b7b0One-shot start flag [Address 038216]ONSFTimer A0 event/trigger select bitb7 b60 0 : Input on TA0IN is selected (Note)Note: Set the corresponding port direction register to “0”.Setting delay time(b15)b7(b8)b0 b73E16 8016b0Timer A0 register [Address 038716, 038616]TA0Continued to the next pageFigure 3.3.3. Set-up procedure of delayed one-shot output (1)466

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

Saved successfully!

Ooh no, something went wrong!