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 A1Continued from the previous pageSelecting one-shot timer mode and functionsb70 00 1 0 1b01 0Timer A1 mode register [Address 039716]TA1MRSelection of one-shot timer modePulse output function select bit1 : Pulse is output (TA1OUT pin is pulse output pin)External trigger select bitInvalid when choosing timer's overflowTrigger 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 trigger select register(Set timer A0 to trigger timer A1)b71b00Trigger select register [Address 038316]TRGSRTimer A1 event/trigger select bitb1 b01 0 : TA0 overflow is selectedSetting one-shot timer's time(b15)b7(b8)b0 b70316 2016b0Timer A1 register [Address 038916, 038816]TA1Setting count start flagb7b01 1Count start flag [Address 038016]TABSRTimer A0 count start flag1 : Starts countingTimer A1 count start flag1 : Starts countingStart countingFigure 3.3.4. Set-up procedure of delayed one-shot output (2)467

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

Saved successfully!

Ooh no, something went wrong!