Chapter 26 eTimer
MPC5602P Microcontroller Reference Manual, Rev. 4
Freescale Semiconductor
729
Table 26-17. 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.
CPT2MODE
Capture 2 Mode Control
These bits control the operation of the CAPT2 register as well as the operation of the ICF2 flag by
defining which input edges cause a capture event. The input source is the secondary count source.
00 Disabled.
01 Capture falling edges.
10 Capture rising edges.
11 Capture any edge.
CPT1MODE
Capture 1 Mode Control
These bits control the operation of the CAPT1 register as well as the operation of the ICF1 flag by
defining which input edges cause a capture event. The input source is the secondary count source.
00 Disabled.
01 Capture falling edges.
10 Capture rising edges.
11 Capture any edge.
CFWM
Capture FIFO Water Mark
This field represents the water mark level for the CAPT1 and CAPT2 FIFOs. The capture flags, ICF1
and ICF2, are not set until the word count of the corresponding FIFO is greater than this water mark
level.