Section 17 16-Bit Timer Pulse Unit (TPU)
Rev. 2.00 Mar 09, 2006 page 689 of 906
REJ09B0292-0200
Bits 4 and 3—Clock Edge 1 and 0 (CKEG1, CKEG0): These bits select the input clock edge.
When a both-edges count is selected, a clock divided by two from the input clock can be selected.
(e.g. P
φ
/4 both edges = P
φ
/2 rising edge). If phase counting mode is used on channels 1, and 2,
this setting is ignored and the phase counting mode setting has priority.
Bit 4: CKEG1
Bit 3: CKEG0
Description
0
0
Count at rising edge
(Initial value)
1
Count at falling edge
1
—
Count at both edges
Note: Internal clock edge selection is valid when the input clock is P
φ
/4 or slower. If P
φ
/1 is
selected for the input clock, this setting is ignored and a rising-edge count is selected.
Bits 2 to 0—Time Prescaler 2 to 0 (TPSC2 to TPSC0): These bits select the TCNT counter clock.
The clock source can be selected independently for each channel. Table 17.4 shows the clock
sources that can be set for each channel.
Table 17.4 TPU Clock Sources
Internal Clock
External Clock
Channel P
φφφφ
/1 P
φφφφ
/4 P
φφφφ
/16 P
φφφφ
/64 P
φφφφ
/256 P
φφφφ
/1024
TCLKA TCLKB TCLKC TCLKD
0
O
O
O
O
O
O
O
O
1
O
O
O
O
O
O
O
2
O
O
O
O
O
O
O
O
Notes:
O
: Setting
Blank: No setting
Channel
Bit 2:
TPSC2
Bit 1:
TPSC1
Bit 0:
TPSC0
Description
0
0
0
0
Internal clock: counts on P
φ
/1 (Initial
value)
1
Internal clock: counts on P
φ
/4
1
0
Internal clock: counts on P
φ
/16
1
Internal clock: counts on P
φ
/64
1
0
0
External clock: counts on TCLKA pin input
1
External clock: counts on TCLKB pin input
1
0
External clock: counts on TCLKC pin input
1
External clock: counts on TCLKD pin input
Содержание SH7616
Страница 10: ...Rev 2 00 Mar 09 2006 page x of xxvi ...
Страница 132: ...Section 2 CPU Rev 2 00 Mar 09 2006 page 106 of 906 REJ09B0292 0200 ...
Страница 568: ...Section 12 16 Bit Free Running Timer FRT Rev 2 00 Mar 09 2006 page 542 of 906 REJ09B0292 0200 ...
Страница 582: ...Section 13 Watchdog Timer WDT Rev 2 00 Mar 09 2006 page 556 of 906 REJ09B0292 0200 ...
Страница 662: ...Section 14 Serial Communication Interface with FIFO SCIF Rev 2 00 Mar 09 2006 page 636 of 906 REJ09B0292 0200 ...
Страница 706: ...Section 16 Serial I O SIO Rev 2 00 Mar 09 2006 page 680 of 906 REJ09B0292 0200 ...
Страница 820: ...Section 19 Pin Function Controller PFC Rev 2 00 Mar 09 2006 page 794 of 906 REJ09B0292 0200 ...
Страница 932: ...Appendix D Package Dimensions Rev 2 00 Mar 09 2006 page 906 of 906 REJ09B0292 0200 ...
Страница 935: ...SH7616 Hardware Manual ...