English
Language : 

SH7670 Datasheet, PDF (943/1292 Pages) Renesas Technology Corp – 32-Bit RISC Microcomputer SuperHTM RISC engine Family / SH7670 Series
Section 21 Compare Match Timer (CMT)
21.3 Operation
21.3.1 Interval Count Operation
When an internal clock is selected with the CKS[1:0] bits in CMCSR and the STR bit in CMSTR
is set to 1, CMCNT starts incrementing using the selected clock. When the values in CMCNT and
CMCOR match, CMCNT is cleared to H'0000 and the CMF flag in CMCSR is set to 1. When the
CMIE bit in CMCSR is set to 1 at this time, a compare match interrupt (CMI) is requested.
CMCNT then starts counting up again from H'0000.
Figure 21.2 shows the operation of the compare match counter.
CMCNT value
CMCOR
Counter cleared by compare
match with CMCOR
H'0000
Time
Figure 21.2 Counter Operation
21.3.2 CMCNT Count Timing
One of four clocks (Pφ/8, Pφ/32, Pφ/128, and Pφ/512) obtained by dividing the peripheral clock
(Pφ) can be selected with the CKS[1:0] bits in CMCSR. Figure 21.3 shows the timing.
Peripheral clock
(Pφ)
Internal clock
Count clock Clock
N
CMCNT
Clock
N+1
N
N+1
Figure 21.3 Count Timing
Rev. 1.00 Nov. 14, 2007 Page 917 of 1262
REJ09B0437-0100