Section 14 Compare Match Timer (CMT)
Rev. 3.00 Sep. 27, 2007 Page 506 of 758
REJ09B0243-0300
14.3 Operation
14.3.1
Interval Count Operation
When an internal clock is selected with bits CKS1 and CKS0 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, a compare match interrupt (CMI) is requested.
CMCNT then starts counting up again from H'0000.
Figure 14.2 shows the operation of the compare match counter.
CMCOR
H'0000
CMCNT value
Time
Counter cleared by compare
match with CMCOR
Figure 14.2 Counter Operation
14.3.2
CMCNT Count Timing
One of four internal clocks (P
φ
/8, P
φ
/32, P
φ
/128, and P
φ
/512) obtained by dividing the P
φ
clock
can be selected with bits CKS1 and CKS0 in CMCSR. Figure 14.3 shows the timing.
Peripheral operating
clock (P
φ
)
Nth
clock
(N + 1)th
clock
Count clock
CMCNT
N
N + 1
Figure 14.3 Count Timing
Summary of Contents for SH7124 R5F7124
Page 2: ...Rev 3 00 Sep 27 2007 Page ii of xx ...
Page 8: ...Rev 3 00 Sep 27 2007 Page viii of xx ...
Page 36: ...Section 1 Overview Rev 3 00 Sep 27 2007 Page 16 of 758 REJ09B0243 0300 ...
Page 68: ...Section 2 CPU Rev 3 00 Sep 27 2007 Page 48 of 758 REJ09B0243 0300 ...
Page 108: ...Section 5 Exception Handling Rev 3 00 Sep 27 2007 Page 88 of 758 REJ09B0243 0300 ...
Page 166: ...Section 7 User Break Controller UBC Rev 3 00 Sep 27 2007 Page 146 of 758 REJ09B0243 0300 ...
Page 724: ...Section 20 List of Registers Rev 3 00 Sep 27 2007 Page 704 of 758 REJ09B0243 0300 ...
Page 772: ...Rev 3 00 Sep 27 2007 Page 752 of 758 REJ09B0243 0300 ...
Page 778: ...Rev 3 00 Sep 27 2007 Page 758 of 758 REJ09B0243 0300 ...
Page 781: ......