beautypg.com

Renesas SH7641 User Manual

Page 616

background image

Section 18 Multi-Function Timer Pulse Unit (MTU)

Rev. 4.00 Sep. 14, 2005 Page 566 of 982

REJ09B0023-0400

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

H'0000

TIOCB

TIOCA

Time

TGRB

TGRA

Toggle output

Toggle output

Counter cleared by TGRB compare match

Figure 18.8 Example of Toggle Output Operation

• 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.

This manual is related to the following products: