
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
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...