CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ4V0UM
223
7.4.4 Operation as 8-bit PWM output
By setting bit 6 (TMCn6) of 8-bit timer mode control register n (TMCn) to 1, the timer operates as a PWM output.
Pulses with the duty factor determined by the value set in 8-bit compare register n (CRn0) are output from TOn.
Set the width of the active level of the PWM pulse in CRn0. The active level can be selected by bit 1 (TMCn1) in
TMCn.
The count clock can be selected by bits 0 to 2 (TCLn0 to TCLn2) of timer clock selection register n0 (TCLn0) and
by bit 0 (TCLn3) of timer clock selection register n1 (TCLn1).
The PWM output can be enabled and disabled by bit 0 (TOEn) of TMCn.
Caution CRn0 can be rewritten only once in one period while in the PWM mode.
Remark
n = 2 to 5
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...