Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 7 16-BIT TIMER/EVENT COUNTER AA (TAA)
R01UH0042EJ0500 Rev.5.00 Page 283 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 TAAnCCR1 register last.
Rewrite the TAAnCCRm register after writing the TAAnCCR1 register after the INTTAAnCC1 signal is detected.
FFFFH
16-bit counter
0000H
TAAnCE bit
TAAnCCR0 register
CCR0 buffer register
TAAnCCR1 register
CCR1 buffer register
TOAAn1 pin output
INTTAAnCC0 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 TAAnCCRm register to the CCRm buffer register, the TAAnCCR1 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
TAAnCCR0 register and then set the active level to the TAAnCCR1 register.
To change only the cycle of the PWM waveform, first set the cycle to the TAAnCCR0 register, and then write
the same value to the TAAnCCR1 register.
To change only the active level width (duty factor) of the PWM waveform, only the TAAnCCR1 register has to
be set.
After data is written to the TAAnCCR1 register, the value written to the TAAnCCRm register is transferred to the
CCRm 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 TAAnCCR0 or TAAnCCR1 register again after writing the TAAnCCR1 register once, do so after the
INTTAAnCC0 signal is generated. Otherwise, the value of the CCRm buffer register may become undefined
because the timing of transferring data from the TAAnCCRm register to the CCRm buffer register conflicts with
writing the TAAnCCRm register.
Remark n = 0 to 3, 5
m = 0, 1