English
Language : 

SH7014 Datasheet, PDF (279/754 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
10. Multifunction Timer Pulse Unit (MTU)
The TSR register TCFD bit is a count direction flag. Read the TCFD flag to confirm whether the
TCNT is incrementing or decrementing.
Table 10.8 shows the correspondence between channels and external clock pins.
Table 10.8 Phase Counting Mode Clock Input Pins
Channel
1
2
A Phase Input Pin
TCLKA
TCLKC
B Phase Input Pin
TCLKB
TCLKD
Procedure for Selecting the Phase Counting Mode (Figure 10.28):
1. Set the MD3 to MD0 bits of the timer mode register (TMDR) to select the phase counting
mode.
2. Set the CST bit of the timer start register (TSTR) to 1 to start the count.
Phase counting mode
Select phase counting mode 1
Start counting
2
Phase counting mode
Figure 10.28 Procedure for Selecting the Phase Counting Mode
Phase Counting Operation Examples: The phase counting mode uses the phase difference
between two external clocks to increment/decrement the TCNT counter. There are 4 modes,
depending on the count conditions.
Phase Counting Mode 1: Figure 10.29 shows an example of phase counting mode 1 operation.
Table 10.9 lists the up counting and down counting conditions for the TCNT.
Rev.5.00 Sep. 27, 2007 Page 245 of 716
REJ09B0398-0500