Figure 18.24 Example Of Phase Counting Mode Setting Procedure; Figure 18.25 Example Of Phase Counting Mode 1 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)
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
Start count
<Phase counting mode>

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.
TCLKA (channel 1)
TCLKC (channel 2)
TCLKB (channel 1)
TCLKD (channel 2)
TCNT value

Figure 18.25 Example of Phase Counting Mode 1 Operation

Rev. 4.00 Sep. 14, 2005 Page 582 of 982
REJ09B0023-0400
[1]
mode
[2]
Up-count
[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.
Down-count
Time

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sh7641

Table of Contents