CMT2380F17
Rev0.1 | 179/347
www.cmostek.com
CLRL
:
PCA CL Reload Register
SFR Page
= 0 ~ F
SFR Address = 0xCE
Bit
7
6
5
4
3
2
1
0
Name
CLRL[7:0]
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
0
0
0
0
0
0
0
0
Bit 7~0: CLRL, reload value of CL.
17.3
Compare/Capture Modules
Each of the compare/capture module 0~7 has a mode register called CCAPMn (n = 0,1,2,3,4,5,6 or 7) to
select which function it will perform. Note the ECCFn bit which enables an interrupt to occur when a module's
interrupt flag is set.
CCAPMn
:
PCA Module Compare/Capture Register, n=0~5
SFR Page
= 0 only for n= 0~1 (n=2~5 for all page)
SFR Address = 0xDA~0xDF
Bit
7
6
5
4
3
2
1
0
Name
DTEn
ECOMn
CAPPn
CAPNn
MATn
TOGn
PWMn
ECCFn
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
0
0
0
0
0
0
0
0
Bit 7: DTEn. Enable Dead-Time control on PWMHn/PWMLn output pair. This bit is only valid on n= 0, 2
and 4 and the dead-time function is active when PWM channel is operating in buffer mode. The channel
buffer mode is enabled by BME0, BME2 or BME4 in CMOD.
0: Disable the Dead-Time control on PWMn output. 1: Enable the Dead-Time control on PWMn output.
Bit 6: ECOMn, Enable Comparator.
0: Disable the digital comparator function. 1: Enables the digital comparator function.
Bit 5: CAPPn, Capture Positive enabled. Module
6 and module 7 don’t support the capture mode. 0:
Disable the PCA capture function on CEXn positive edge detected.
1: Enable the PCA capture function on CEXn positive edge detected.
Bit 4: CAPNn, Capture Negative enabled. Module 6 and module 7 don’t support the capture mode. 0:
Disable the PCA capture function on CEXn negative edge detected.
1: Enable the PCA capture function on CEXn negative edge detected.
Bit 3: MATn, Match control.
0: Disable the digital comparator match event to set CCFn.
1: A match o
f the PCA counter with this module’s compare/capture register causes the CCFn bit in CCON
to be set.
Bit 2: TOGn, Toggle control.
0: Disable the digital comparator match event to toggle CEXn.
1: A match of the PCA counter with this module’s compare/capture register causes the CEXn pin to
toggle.
Bit 1: PWMn, PWM control.
0: Disable the PWM mode in PCA module.
1: Enable the PWM function and cause CEXn pin to be used as a pulse width modulated output.
Bit 0: ECCFn, Enable CCFn interrupt.
0: Disable compare/capture flag CCFn in the CCON register to generate an interrupt. 1: Enable
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...