beautypg.com

Renesas SH7641 User Manual

Page 632

background image

Section 18 Multi-Function Timer Pulse Unit (MTU)

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

REJ09B0023-0400

Example of Phase Counting Mode Setting Procedure: Figure 18.24 shows an example of the
phase counting mode setting procedure.

Phase counting mode

Select phase counting

mode

Start count

[1]

[2]

[1] Select phase counting mode with bits MD3 to

MD0 in TMDR.

[2] Set the CST bit in TSTR to 1 to start the

count operation.

Figure 18.24 Example of Phase Counting Mode Setting Procedure

Examples of Phase Counting Mode Operation: In phase counting mode, TCNT counts up or
down according to the phase difference between two external clocks. There are four modes,
according to the count conditions.

• Phase counting mode 1

Figure 18.25 shows an example of phase counting mode 1 operation, and table 18.33
summarizes the TCNT up/down-count conditions.

TCNT value

Time

TCLKA (channel 1)
TCLKC (channel 2)

TCLKB (channel 1)
TCLKD (channel 2)

Up-count

Down-count

Figure 18.25 Example of Phase Counting Mode 1 Operation

This manual is related to the following products: