Figure 18.8 Example Of Toggle Output Operation - Renesas HD6417641 Hardware Manual

32-bit risc microcomputer superh risc engine family / sh7641 series
Table of Contents

Advertisement

Section 18 Multi-Function Timer Pulse Unit (MTU)
Figure 18.8 shows an example of toggle output.
In this example, TCNT has been designated as a periodic counter (with counter clearing on
compare match B), and settings have been made such that the output is toggled by both compare
match A and compare match B.
TCNT value
H'FFFF
TGRB
TGRA
H'0000
TIOCB
TIOCA
• Input Capture Function
The TCNT value can be transferred to TGR on detection of the TIOC pin input edge.
Rising edge, falling edge, or both edges can be selected as the detected edge. For channels 0 and 1,
it is also possible to specify another channel's counter input clock or compare match signal as the
input capture source.
Note: When another channel's counter input clock is used as the input capture input for channels
0 and 1, φ/1 should not be selected as the counter input clock used for input capture input.
Input capture will not be generated if φ/1 is selected.
Rev. 4.00 Sep. 14, 2005 Page 566 of 982
REJ09B0023-0400
Counter cleared by TGRB compare match

Figure 18.8 Example of Toggle Output Operation

Time
Toggle output
Toggle output

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents