English
Language : 

SH7014 Datasheet, PDF (273/754 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer
10. Multifunction Timer Pulse Unit (MTU)
Procedure for Setting Cascade Connection Mode (Figure 10.21):
1. Set the TPSC2 to TPSC 0 bits of the channel 1 timer control register (TCR) to B'111 to select
“count by TCNT2 overflow/underflow.”
2. Set the CST bits corresponding to the upper and lower 16 bits in the TSTR to 1 to start the
count operation.
Cascade connection operation
Select cascade connection 1
Start counting
2
Cascade connection operation
Figure 10.21 Procedure for Selecting Cascade Connection Mode
Cascade Connection Operation Examples⎯Phase Counting Mode: Figure 10.22 shows an
example of operation when the TCNT1 counter is set to count on TCNT2 overflow/underflow and
channel 2 is set to phase counting mode.
The TCNT1 counter increments with a TCNT2 counter overflow and decrements with a TCNT2
underflow.
TCLKA
TCLKB
TCNT2
FFFD FFFE FFFF 0000 0001
0002
0001 0000 FFFF
TCNT1
0000
0001
0000
Figure 10.22 Cascade Connection Operation Example (Phase Counting Mode)
Rev.5.00 Sep. 27, 2007 Page 239 of 716
REJ09B0398-0500