13.3.2 Capture/Compare Channels
Three capture/compare channels are available in the RTCC. Each channel can be configured as input capture or output compare, by
setting the corresponding MODE in the RTCC_CCx_CTRL register.
RTCC_CC1_CCV
0
RTCC_CNT
RTCC_CC0_CCV
RTCC_CC2_CCV
CC2 PRS output,
CMOA=PULSE
CC1 PRS output,
CMOA=TOGGLE
CC0 PRS output,
CMOA=SET
1 LFCLK
RTCC
cycle
Figure 13.3. RTCC Compare match and PRS output illustration
In input capture mode the RTCC_CNT (RTCC_TIME and RTCC_DATE in calendar mode) register is captured into the
RTCC_CCx_CCV (RTCC_CCx_TIME and RTCC_CCx_DATE in calendar mode) register when an edge is detected on the selected
PRS input channel. The active capture edge is configured in the ICEDGE control bits.
In output compare mode the compare values are set by writing to the RTCC compare channel registers RTCC_CCx_CCV
(RTCC_CCx_TIME and RTCC_CCx_DATE in calendar mode). These values will be compared to the main counter, RTCC_CNT
(RTCC_TIME and RTCC_DATE in calendar mode), or a mixture of the main counter and the pre-counter, as illustrated in
13.4 RTCC Compare base illustration on page 383
. Compare base for the capture compare channels is set by configuring COMP-
BASE in RTCC_CCx_CTRL.
Reference Manual
RTCC - Real Time Counter and Calendar
silabs.com
| Building a more connected world.
Rev. 1.1 | 382