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.

Timer AMitsubishi microcomputers<strong>M16C</strong> / 62 GroupSINGLE-CHIP 16-BIT CMOS MICROCOMPUTER2.2.16 Precautions for Timer A (pulse width modulation mode)(1) To clear reset, the count start flag is set to “0”. Set a value in the timer Ai register, then set theflag to “1”.(2) The timer Ai interrupt request bit becomes “1” if setting operation mode of the timer in compliancewith any of the following procedures:• Selecting PWM mode after reset.• Changing operation mode from timer mode to PWM mode.• Changing operation mode from event counter mode to PWM mode.Therefore, to use timer Ai interrupt (interrupt request bit), set timer Ai interrupt request bit to“0” after the above listed changes have been made.(3) Setting the count start flag to “0” while PWM pulses are being output causes the counter tostop counting. If the TAiOUT pin is outputting an “H” level in this instance, the output levelgoes to “L”, and the timer Ai interrupt request bit goes to “1”. If the TAiOUT pin is outputting an“L” level in this instance, the level does not change, and the timer Ai interrupt request bit doesnot becomes “1”.311

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

Saved successfully!

Ooh no, something went wrong!