Rev. 2.00, 09/03, page 326 of 690
13.2.3
Compare Match Counter (CMCNT)
CMCNT is a 16-bit register used as an up-counter.
When an internal clock is selected with the CKS1 and CKS0 bits in CMCSR and the STR bit in
CMSTR is set to 1, CMCNT begins incrementing with the selected clock. When the CMCNT
value matches that of CMCOR, CMCNT is cleared to H'0000 and the CMF flag in CMCSR is set
to 1.
The initial value of CMCNT is H'0000.
13.2.4
Compare Match Constant Register (CMCOR)
CMCOR is a 16-bit register that sets the compare match period with CMCNT.
The initial value of CMCOR is H'FFFF.
13.3
Operation
13.3.1
Period Count Operation
When an internal clock is selected with the CKS1 and CKS0 bits in CMCSR and the STR bit in
CMSTR is set to 1, CMCNT begins incrementing with the selected clock. When the CMCNT
value matches that of CMCOR, CMCNT is cleared to H'0000 and the CMF flag in CMCSR is set
to 1. CMCNT begins counting up again from H'0000.
Figure 13.2 shows the compare match counter operation.
Counter cleared by
CMCOR compare match
CMCNT value
CMCOR
H'0000
Time
Figure 13.2 Counter Operation
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...