CMT2380F17
Rev0.1 | 180/347
www.cmostek.com
compare/capture flag CCFn in the CCON register to generate an interrupt.
Note: The bits CAPNn (CCAPMn.4) and CAPPn (CCAPMn.5) determine the edge on which a capture
input will be active. If both bits are set, both edges will be enabled and a capture will occur for either
transition.
Each module also has a pair of 8-bit compare/capture registers (CCAPnH, CCAPnL) associated with it.
These registers are used to store the time when a capture event occurred or when a compare event should
occur. When a module is used in the PWM mode, in addition to the above two registers, an extended register
PCAPWMn is used to improve the range of the duty cycle of the output. The improved range of the duty cycle
starts from 0%, up to 100%, with a step of 1/256. About 10/12/16 bit PWM please reference 17.4.6 and 17.4.7.
CCAPMn
:
PCA Module Compare/Capture Register, n=6~7
SFR Page
= 1 only for n= 6~7
SFR Address = 0xDB, 0xDA
Bit
7
6
5
4
3
2
1
0
Name
DTEn
ECOMn
--
CAPNn
MATn
TOGn
PWMn
ECCFn
R/W
R/W
R/W
W
R/W
R/W
R/W
R/W
R/W
Reset Value
0
0
0
0
0
0
0
0
Bit 7: BME6(This is only valid in CCAPM6) Buffer Mode Enable on PCA module 6/7. It is only valid on
both of PCA module 6 and module 7 in capture mode, PWM mode or COPM mode.
0: PCA Module 6/7 buffer mode disabled. 1: PCA Module 6/7 buffer mode enabled.
Bit 6: ECOMn, Enable Comparator.
0: Disable the digital
comparator function.
1: Enables the digital
comparator function.
Bit 5: Reserved. Module 6 and module 7
don’t support the capture mode.
Bit 4: CAPNn, Capture Negative enabled. Module 6 and module 7
don’t support the capture mode.
CAPN6 and CAPN7 is used for other PCA modes setting, please reference
“Table 17–1. PCA
Module Modes
” for details.
Bit 3: MATn, Match control.
0: Disable the digital comparator match event to set CCFn.
1: A match of the PCA counter with this
module’s compare/capture register causes the CCFn bit in
PCAPWMn 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 PCAPWMn register to
generate an interrupt. 1: Enable compare/capture flag CCFn in the
PCAPWMn register to generate an interrupt.
Each module also has a pair of 8-bit compare/capture registers (CCAPnH, CCAPnL) associated
with it. These registers are used to store the time when a compare event occur.
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...