RX610 Group
18. Compare Match Timer (CMT)
R01UH0032EJ0120 Rev.1.20
Page 592 of 1006
Feb 20, 2013
18.2.4
Compare Match Counter (CMCNT)
Addresses: CMT0.CMCNT 0008 8004h, CMT1.CMCNT 0008 800Ah,
CMT2.CMCNT 0008 8014h, CMT3.CMCNT 0008 801Ah
Value after reset:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
b4
b15
b8
b7
b3
b2
b1
b0
b14
b13
b12
b11
b10
b9
b6
b5
CMCNT is a readable/writable up-counter to generate interrupt requests.
When an internal clock is selected by bits CKS[1:0] in CMCR and the STRj (j = 0 to 3) bit in CMSTRy (y = 0 or 1) is set
to 1, CMCNT starts counting up using the selected clock.
When the value in CMCNT and the value in CMCOR match, CMCNT is cleared to 0000h. At the same time, a compare
match interrupt (CMIm) (m = 0 to 3) is generated.
18.2.5
Compare Match Constant Register (CMCOR)
Addresses: CMT0.CMCOR 0008 8006h, CMT1.CMCOR 0008 800Ch,
CMT2.CMCOR 0008 8016h, CMT3.CMCOR 0008 801Ch
Value after reset:
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
b4
b15
b8
b7
b3
b2
b1
b0
b14
b13
b12
b11
b10
b9
b6
b5
CMCOR sets the interval up to a compare match with CMCNT.