Section 19 Compare Match Timer (CMT)
Rev.1.00 Dec. 13, 2005 Page 691 of 1286
REJ09B0158-0100
19.4 Operation
The CMT has two operation modes: one is four channels free-running timer that operates with the
common time base of 32-bit free-running timer operating between approximately 1.5MHz (Pck/32
selected at Pck = 50MHz) to 30kHz (Pck/1024 selected at Pck = 33MHz). The other is 16-bit
timer/counter that operating as two channels 16-bit timer/counter and two channels 16-bit timer.
When operating as the timer, it can be selectable input capture or output compare. They differ
from the free-running timer mode that they are initialized to H'0000 when capture input or
compare match occurs on that channel.
19.4.1 Edge
Detection
The timers and counters are based on edge detection on the input pins. An active edge can be
selectable by setting CMTCFG to be a rising edge, falling edge, or both edges. In addition, the
edge detection logic can operate in rotary switch operation where the combination of two inputs
indicates whether the switch has been turned right or left and the updown counter is incremented
or decremented. The edge detection input can either work independently for the timers or the up-
counters or can work as pairs to indicate up and down to the updown-counters.
In order for an edge to be detected, the input pulse to the CMT_CTR pin must last for at least two
cycles of the clock divided from the peripheral clock (Pck) for that channel, as shown in figure
19.2.
Pck
Input pulse
Edge detection
The clock divided
from Pck
Figure 19.2 Edge Detection (example of rising edge)
Summary of Contents for SH7780 Series
Page 2: ...Rev 1 00 Dec 13 2005 Page ii of l ...
Page 28: ...Rev 1 00 Dec 13 2005 Page xxviii of l ...
Page 50: ...Rev 1 00 Dec 13 2005 Page l of l ...
Page 82: ...Section 1 Overview Rev 1 00 Dec 13 2005 Page 32 of 1286 REJ09B0158 0100 ...
Page 122: ...Section 3 Instruction Set Rev 1 00 Dec 13 2005 Page 72 of 1286 REJ09B0158 0100 ...
Page 146: ...Section 4 Pipelining Rev 1 00 Dec 13 2005 Page 96 of 1286 REJ09B0158 0100 ...
Page 196: ...Section 6 Floating Point Unit FPU Rev 1 00 Dec 13 2005 Page 146 of 1286 REJ09B0158 0100 ...
Page 292: ...Section 9 L Memory Rev 1 00 Dec 13 2005 Page 242 of 1286 REJ09B0158 0100 ...
Page 492: ...Section 12 DDR SDRAM Interface DDRIF Rev 1 00 Dec 13 2005 Page 442 of 1286 REJ09B0158 0100 ...
Page 674: ...Section 15 Clock Pulse Generator CPG Rev 1 00 Dec 13 2005 Page 624 of 1286 REJ09B0158 0100 ...
Page 692: ...Section 16 Watchdog Timer and Reset Rev 1 00 Dec 13 2005 Page 642 of 1286 REJ09B0158 0100 ...
Page 726: ...Section 18 Timer Unit TMU Rev 1 00 Dec 13 2005 Page 676 of 1286 REJ09B0158 0100 ...
Page 1032: ...Section 25 Audio Codec Interface HAC Rev 1 00 Dec 13 2005 Page 982 of 1286 REJ09B0158 0100 ...
Page 1150: ...Section 28 General Purpose I O GPIO Rev 1 00 Dec 13 2005 Page 1100 of 1286 REJ09B0158 0100 ...
Page 1184: ...Section 29 User Break Controller UBC Rev 1 00 Dec 13 2005 Page 1134 of 1286 REJ09B0158 0100 ...
Page 1266: ...Section 31 Electrical Characteristics Rev 1 00 Dec 13 2005 Page 1216 of 1286 REJ09B0158 0100 ...
Page 1328: ...Appendix Rev 1 00 Dec 13 2005 Page 1278 of 1286 REJ09B0158 0100 ...
Page 1336: ...Rev 1 00 Dec 13 2005 Page 1286 of 1286 REJ09B0158 0100 ...
Page 1339: ......
Page 1340: ...SH7780 Hardware Manual ...