|
M306H7MG-XXXFP Datasheet, PDF (315/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER | |||
|
◁ |
M306H7MG-XXXFP/MC-XXXFP/FGFP
19. USAGE NOTES
19.5.4 Timer A (Pulse Width Modulation Mode)
(1) 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, the ONSF register TA0TGL and TA0TGH bits and the TRGSR register before
setting the TAiS bit in the TABSR register to â1â (count starts).
Always make sure the TAiMR register, the ONSF register TA0TGL and TA0TGH bits and the TRGSR
register are modified while the TAiS bit remains â0â (count stops) regardless whether after reset or not.
(2) 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.
(3) 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.2.10 Oct 25, 2006 Page 315 of 326
REJ03B0152-0210
|
▷ |