RM0046 eTimer
Doc ID 16912 Rev 5 723/936
Compare and Capture Control register (CCCTRL)
Table 379. CMPLD2 field descriptions
Field Description
CMPLD2[15:0] Specifies the preload value for the COMP2 register.
Figure 406. Compare and Capture Control register (CCCTRL)
Address:
Base + 0x001C (eTimer0)
Base + 0x003C (eTimer1)
Base + 0x005C (eTimer2)
Base + 0x007C (eTimer3)
Base + 0x009C (eTimer4)
Base + 0x00BC (eTimer5)
Access: User read/write
0123456789101112131415
R
CLC2[1:0] CLC1[1:0]
CMPMODE
[1:0]
CPT2
MODE[1:0]
CPT1
MODE[1:0]
CFWM[1:0]
ONE
SHOT
ARM
W
Reset0000000000000000
Table 380. CCCTRL field descriptions
Field Description
CLC2
Compare Load Control 2
These bits control when COMP2 is preloaded. It also controls the loading of CNTR.
000 Never preload.
001 Reserved
010 Load COMP2 with CMPLD1 upon successful compare with the value in COMP1.
011 Load COMP2 with CMPLD1 upon successful compare with the value in COMP2.
100 Load COMP2 with CMPLD2 upon successful compare with the value in COMP1.
101 Load COMP2 with CMPLD2 upon successful compare with the value in COMP2.
110 Load CNTR with CMPLD2 upon successful compare with the value in COMP1.
111 Load CNTR with CMPLD2 upon successful compare with the value in COMP2.
CLC1
Compare Load Control 1
These bits control when COMP1 is preloaded. It also controls the loading of CNTR.
000 Never preload.
001 Reserved
010 Load COMP1 with CMPLD1 upon successful compare with the value in COMP1.
011 Load COMP1 with CMPLD1 upon successful compare with the value in COMP2.
100 Load COMP1 with CMPLD2 upon successful compare with the value in COMP1.
101 Load COMP1 with CMPLD2 upon successful compare with the value in COMP2.
110 Load CNTR with CMPLD1 upon successful compare with the value in COMP1.
111 Load CNTR with CMPLD1 upon successful compare with the value in COMP2.
CMPMODE
Compare Mode
These bits control when the COMP1 and COMP2 registers are used in regards to the counting
direction.
00 COMP1 register is used when the counter is counting up.
COMP2 register is used when the counter is counting up.
01 COMP1 register is used when the counter is counting down.
COMP2 register is used when the counter is counting up.
10 COMP1 register is used when the counter is counting up.
COMP2 register is used when the counter is counting down.
11 COMP1 register is used when the counter is counting down.
COMP2 register is used when the counter is counting down.