Bit
Name
Reset
Access Description
14
CNTDIR
0
RW
Non-Quadrature Mode Counter Direction Control
The direction of the counter must be set in the OVSSINGLE and EXTCLKSINGLE modes. This bit is ignored in EX-
TCLKQUAD mode as the direction is automatically detected.
Value
Mode
Description
0
UP
Up counter mode.
1
DOWN
Down counter mode.
13:12
AUXCNTEV
0x0
RW
Controls When the Auxiliary Counter Counts
Selects whether the auxiliary counter responds to up-count events, down-count events or both
Value
Mode
Description
0
NONE
Never counts.
1
UP
Counts up on up-count events.
2
DOWN
Counts up on down-count events.
3
BOTH
Counts up on both up-count and down-count events.
11:10
CNTEV
0x0
RW
Controls When the Counter Counts
Selects whether the regular counter responds to up-count events, down-count events or both
Value
Mode
Description
0
BOTH
Counts up on up-count and down on down-count events.
1
UP
Only counts up on up-count events.
2
DOWN
Only counts down on down-count events.
3
NONE
Never counts.
9
S1CDIR
0
RW
Count Direction Determined By S1
S1 gives the direction of counting when in the OVSSINGLE or EXTCLKSINGLE modes. When S1 is high, the count direc-
tion is given by CNTDIR, and when S1 is low, the count direction is the opposite
8
HYST
0
RW
Enable Hysteresis
When hysteresis is enabled, the PCNT will always overflow and underflow to TOP/2.
7
DEBUGHALT
0
RW
Debug Mode Halt Enable
Set to halt the PCNT in debug mode only in OVSSINGLE and OVSQUAD modes. When in EXTCLKSINGLE or EX-
TCLKQUAD modes, DEBUGHALT does not halt the Pulse Counter.
Value
Description
0
PCNT is running in debug mode.
1
PCNT is frozen in debug mode.
6
AUXCNTRSTEN
0
RW
Enable AUXCNT Reset
The auxiliary counter, AUXCNT, is asynchronously held in reset when this bit is set. The reset is synchronously released
two PCNT clock edges after this bit is cleared. If an external clock is used, the reset should be performed by setting and
clearing the bit without pending for SYNCBUSY bit.
Reference Manual
PCNT - Pulse Counter
silabs.com
| Building a more connected world.
Rev. 1.1 | 464