Table 17.2. PCA0CPM and PCA0PWM Bit Settings for PCA Capture/Compare Modules
Operational Mode
PCA0CPMn
PCA0PWM
Bit Name
PWM16
ECOM
CAPP
CAPN
MAT
TOG
PWM
ECCF
ARSEL
ECOV
COVF
Reserved
CLSEL
Capture triggered by positive edge on
CEXn
X
X
1
0
0
0
0
A
0
X
B
X
X
Capture triggered by negative edge on
CEXn
X
X
0
1
0
0
0
A
0
X
B
X
X
Capture triggered by any transition on
CEXn
X
X
1
1
0
0
0
A
0
X
B
X
X
Software Timer
X
C
0
0
1
0
0
A
0
X
B
X
X
High Speed Output
X
C
0
0
1
1
0
A
0
X
B
X
X
Frequency Output
X
C
0
0
0
1
1
A
0
X
B
X
X
8-Bit Pulse Width Modulator
0
C
0
0
E
0
1
A
0
X
B
X
0
9-Bit Pulse Width Modulator
0
C
0
0
E
0
1
A
D
X
B
X
1
0
C
0
0
E
0
1
A
D
X
B
X
2
0
C
0
0
E
0
1
A
D
X
B
X
3
16-Bit Pulse Width Modulator
1
C
0
0
E
0
1
A
0
X
B
X
X
Notes:
1. X = Don’t Care (no functional difference for individual module if 1 or 0).
2. A = Enable interrupts for this module (PCA interrupt triggered on CCFn set to 1).
3. B = Enable 8th–11th bit overflow interrupt (Depends on setting of CLSEL).
4. C = When set to 0, the digital comparator is off. For high speed and frequency output modes, the associated pin will not toggle. In
any of the PWM modes, this generates a 0% duty cycle (output = 0).
5. D = Selects whether the Capture/Compare register (0) or the Auto-Reload register (1) for the associated channel is accessed via
addresses PCA0CPHn and PCA0CPLn.
6. E = When set, a match event will cause the CCFn flag for the associated channel to be set.
7. All modules set to 8, 9, 10 or 11-bit PWM mode use the same cycle length setting.
EFM8SB2 Reference Manual
Programmable Counter Array (PCA0)
silabs.com
| Smart. Connected. Energy-friendly.
Rev. 0.1 | 167