|
M16C6S_09 Datasheet, PDF (195/208 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER | |||
|
◁ |
M16C/6S Group
Usage Notes
Timer A (Pulse Width Modulation Mode)
The timer remains idle after reset. Set the mode, count source, counter value, etc. using bits TA0TGL and
TA0TGH in the TAiMR (i = 0 to 4) register, the TAi register, the ONSF register and the TRGSR register
before setting the TAiS bit in the TABSR register to 1 (count starts).
Always make sure bits TA0TGL and TA0TGH in the TAiMR register, the ONSF register and the TRGSR
register are modified while the TAiS bit remains 0 (count stops) regardless whether after reset or not.
The IR bit is set to 1 when setting a timer operation mode with any of the following procedures:
⢠Select the PWM mode after reset.
⢠Change an operation mode from timer mode to PWM mode.
⢠Change an operation mode from event counter mode to PWM mode.
To use the timer Ai interrupt (interrupt request bit), set the IR bit to 0 by program after the above listed
changes have been made.
When setting TAiS register to 0 (count stop) during PWM pulse output, the following action occurs:
⢠Stop counting.
⢠When TAiOUT pin is output âHâ, output level is set to âLâ and the IR bit is set to 1.
⢠When TAiOUT pin is output âLâ, both output level and the IR bit remains unchanged.
Rev.5.01 Dec 10, 2009 page 195 of 201
REJ03B0014-0501
|
▷ |