R01UH0823EJ0100 Rev.1.00
Page 522 of 1823
Jul 31, 2019
RX23W Group
23. Multi-Function Timer Pulse Unit 2 (MTU2a)
(b) Examples of Waveform Output Operation
shows an example of low output and high output.
In this example, the TCNT counter has been designated as a free-running counter, and settings have been made so that
high is output by compare match A and low is output by compare match B. When the pin level is the same as the
specified level, the pin level does not change.
Figure 23.8
Example of Low Output and High Output Operation
shows an example of toggle output.
In this example, the TCNT counter has been designated as a periodic counter (with counter clearing on compare match
B), and settings have been made so that the output is toggled by both compare match A and compare match B.
Figure 23.9
Example of Toggle Output Operation
High output
Time
Low output
No change
No change
No change
No change
TCNT value
FFFFh
TGRA
TGRB
0000h
MTIOCnA
MTIOCnB
(n = 0 to 4)
TCNT value
FFFFh
0000h
MTIOCnB
MTIOCnA
Time
TGRB
TGRA
Toggle output
Toggle output
Counter cleared by TGRB compare match
(n = 0 to 4)