Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 9 16-BIT TIMER/EVENT COUNTER T (TMT)
R01UH0042EJ0500 Rev.5.00 Page 515 of 1513
Aug 12, 2011
(2) PWM output mode operation timing
(a) Changing pulse width during operation
To change the PWM waveform while the counter is operating, write the TT0CCR1 register last.
Rewrite the TT0CCRn register after writing the TT0CCR1 register after the INTTT0CC1 signal is detected.
FFFFH
16-bit counter
0000H
TT0CE bit
TT0CCR0 register
CCR0 buffer register
TT0CCR1 register
CCR1 buffer register
TOT01 pin output
INTTT0CC0 signal
D
10
D
00
D
00
D
01
D
00
D
10
D
11
D
10
D
11
D
01
D
10
D
10
D
00
D
00
D
11
D
11
D
01
D
01
To transfer data from the TT0CCRn register to the CCRn buffer register, the TT0CCR1 register must be written.
To change both the cycle and active level of the PWM waveform at this time, first set the cycle to the TT0CCR0
register and then set the active level width to the TT0CCR1 register.
To change only the cycle of the PWM waveform, first set the cycle to the TT0CCR0 register, and then write the
same value (same as preset value of the TT0CCR1 register) to the TT0CCR1 register.
To change only the active level width (duty factor) of the PWM waveform, only the TT0CCR1 register has to be
set.
After data is written to the TT0CCR1 register, the value written to the TT0CCRn register is transferred to the
CCRn buffer register in synchronization with clearing of the 16-bit counter, and is used as the value compared
with the 16-bit counter.
To write the TT0CCR0 or TT0CCR1 register again after writing the TT0CCR1 register once, do so after the
INTTT0CC0 signal is generated. Otherwise, the value of the CCRn buffer register may become undefined
because the timing of transferring data from the TT0CCRn register to the CCRn buffer register conflicts with
writing the TT0CCRn register.
Remark n = 0, 1