
Rev.2.10 Apr 14, 2006 page 353 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 23. Usage Notes
23.10.1.4 Timer A (Pulse Width Modulation Mode)
The timer remains idle after reset. Set the mode, count source, counter value, etc. using the TAiMR
(i = 0 to 4) register, the TAi register, bits TA0TGL and TA0TGH in the ONSF register, and the TRGSR
register before setting the TAiS bit in the TABSR register to 1 (count starts).
Always make sure the TAiMR register, bits TA0TGL and TA0TGH, 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 operating mode with any of the following procedures:
• Select pulse width modulation mode after reset.
• Change an operating mode from timer mode to pulse width modulation mode.
• Change an operating mode from event counter mode to pulse width modulation mode.
To use the timer Ai interrupt (the IR bit), set the IR bit to 0 by program after the above listed changes
have been made.
When setting TAiS bit to 0 (count stops) 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 remain unchanged.
______
If a low-level signal is applied to the NMI pin when the IVPCR1 bit in the TB2SC register = 1 (three-phase
______
output forcible cutoff by input on NMI pin enabled), pins TA1OUT, TA2OUT, and TA4OUT go to a
high-impedance state.
Comentários a estes Manuais