15.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.
In input capture mode the RTCC_CNT register is captured into the RTCC_CCx_ICVALUE 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_OCVALUE. These
values will be compared to the main counter, RTCC_CNT or a mixture of the main counter and the pre-counter, as illustrated in
15.4 RTCC Compare Base Illustration on page
BASE
in RTCC_CCx_CTRL.
silabs.com | Building a more connected world.
RTCC_CNT
RTCC_CC0_OCVALUE
RTCC_CC1_OCVALUE
RTCC_CC2_OCVALUE
0
CC2 PRS output,
CMOA=PULSE
1 LFCLK
RTCC
CC1 PRS output,
CMOA=TOGGLE
CC0 PRS output,
CMOA=SET
Figure 15.3. RTCC Compare Match and PRS Output Illustration
367. Compare base for the capture compare channels is set by configuring COMP-
cycle
Reference Manual
RTCC - Real Time Clock with Capture
Rev. 0.4 | 366
Figure
Need help?
Do you have a question about the EFR32xG21 Wireless Gecko and is the answer not in the manual?
Questions and answers