Datasheet

V850ES/JG3-H, V850ES/JH3-H CHAPTER 11 MOTOR CONTROL FUNCTION
R01UH0042EJ0500 Rev.5.00 Page 617 of 1513
Aug 12, 2011
(b) Rewriting TAB1CCR0 register
When rewriting the TAB1CCR0 register in the batch rewrite mode, the output waveform differs depending on
whether transfer occurs at the crest (match between the 16-bit counter value and TAB1CCR0 register value) or
at the valley (match between the 16-bit counter value and 0001H). Usually, it is recommended to rewrite the
TAB1CCR0 register while the 16-bit counter is counting down, and transfer the register value at the transfer
timing of the crest timing.
Figure 11-28 shows an example of rewriting the TAB1CCR0 register while the 16-bit counter is counting up
(during period <1> in Figure 11-27). Figure 11-29 shows an example of rewriting the TAB1CCR0 register while
the counter is counting down (during period <2> in Figure 11-27).
Figure 11-27. Basic Operation of 16-Bit Counter
<1> <2> <1> <2>
16-bit
counter