
285
Bit 4:
CKEG1
Bit 3:
CKEG0 Description
0
0
Count on rising edges (initial value)
1
Count on falling edges
1
X
Count on both rising and falling edges
Notes: 1. X: 0 or 1, don’t care.
2. Internal clock edge selection is effective when the input clock is
φ
/4 or slower. When ø/1
or the overflow/underflow of another channel is selected for the input clock, although
values can be written, counter operation complies with the initial value (count on rising
edges).
•
Bits 2–0—Timer Prescaler 2–0 (TPSC2–TPSC0): TPSC2–TPSC0 select the counter clock
source for the TCNT. An independent clock source can be selected for each channel. Table
12.4 shows the possible settings for each channel.
Table 12.4
MTU Clock Sources
Internal Clock
Other Channel
External Clock
Chan-
nel
φ
/1
φ
/4
φ
/
16
φ
/
64
φ
/
256
φ
/
1024
Overflow/
Underflow
TCL
KA
TCL
KB
TCL
KC
TCL
KD
0
O
O
O
O
X
X
X
O
O
O
O
1
O
O
O
O
O
X
O
O
O
X
X
2
O
O
O
O
X
O
X
O
O
O
X
3
O
O
O
O
O
O
X
O
O
X
X
4
O
O
O
O
O
O
X
O
O
X
X
Note:
Symbols: O: Setting possible
X: Setting not possible
Channel 0:
Bit 2:
TPSC2
Bit 1:
TPSC1
Bit 0:
TPSC0
Description
0
0
0
Internal clock: count with
φ
/1 (initial value)
1
Internal clock: count with
φ
/4
1
0
Internal clock: count with
φ
/16
1
Internal clock: count with
φ
/64
1
0
0
External clock: count with the TCLKA pin input
1
External clock: count with the TCLKB pin input
1
0
External clock: count with the TCLKC pin input
1
External clock: count with the TCLKD pin input
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...