16.4.3 PCA0PWM: PCA PWM Configuration
Bit
7
6
5
4
3
2
1
0
Name
ARSEL
ECOV
COVF
Reserved
CLSEL
Access
RW
RW
RW
R
RW
Reset
0
0
0
0x0
0x0
SFR Page = 0x0, 0x10; SFR Address: 0xF7
Bit
Name
Reset
Access Description
7
ARSEL
0
RW
Auto-Reload Register Select.
This bit selects whether to read and write the normal PCA capture/compare registers (PCA0CPn), or the Auto-Reload reg-
isters at the same SFR addresses. This function is used to define the reload value for 9 to 11-bit PWM modes. In all other
modes, the Auto-Reload registers have no function.
Value
Name
Description
0
CAPTURE_COMPARE
Read/Write Capture/Compare Registers at PCA0CPHn and
PCA0CPLn.
1
AUTORELOAD
Read/Write Auto-Reload Registers at PCA0CPHn and PCA0CPLn.
6
ECOV
0
RW
Cycle Overflow Interrupt Enable.
This bit sets the masking of the Cycle Overflow Flag (COVF) interrupt.
Value
Name
Description
0
COVF_MASK_DISA-
BLED
COVF will not generate PCA interrupts.
1
COVF_MASK_ENA-
BLED
A PCA interrupt will be generated when COVF is set.
5
COVF
0
RW
Cycle Overflow Flag.
This bit indicates an overflow of the 8th to 11th bit of the main PCA counter (PCA0). The specific bit used for this flag de-
pends on the setting of the Cycle Length Select bits. The bit can be set by hardware or firmware, but must be cleared by
firmware.
Value
Name
Description
0
NO_OVERFLOW
No overflow has occurred since the last time this bit was cleared.
1
OVERFLOW
An overflow has occurred since the last time this bit was cleared.
4:3
Reserved
Must write reset value.
2:0
CLSEL
0x0
RW
Cycle Length Select.
When 16-bit PWM mode is not selected, these bits select the length of the PWM cycle. This affects all channels configured
for PWM which are not using 16-bit PWM mode. These bits are ignored for individual channels configured to 16-bit PWM
mode.
Value
Name
Description
0x0
8_BITS
8 bits.
0x1
9_BITS
9 bits.
0x2
10_BITS
10 bits.
0x3
11_BITS
11 bits.
EFM8UB3 Reference Manual
Programmable Counter Array (PCA0)
silabs.com
| Building a more connected world.
Rev. 0.2 | 203