Interrupts And Prs Output - Silicon Laboratories EFR32xG14 Wireless Gecko Reference Manual

Table of Contents

Advertisement

To generate periodically recurring events, it is possible to mask out parts of the compare match values. By configuring COMPMASK in
RTCC_CCx_CTRL, parts of the compare values will be masked out, limiting which part of the compare register being subject to com-
parison with the counter.
Figure 13.6 RTCC Compare mask illustration, COMPMASK=11 on page 384
MASK when in normal mode and calendar mode.
31
CC_CTRL_COMPMASK
MONTHT
MONTHU
31
30
27
26
MASKED
Upon a compare match, the respective Capture/Compare interrupt flag CCx is set. Additionally, the event selected by the CMOA setting
is generated on the corresponding PRS output. This is illustrated in
page
382.

13.3.3 Interrupts and PRS Output

The RTCC has one interrupt for each of its 3 Capture/Compare channels, CC0, CC1, and CC2. Each Capture/Compare channel has a
PRS output with configurable actions upon compare match.
The interrupt flag CNTTICK is set each time the main counter receives a tick (each second in calendar mode). In calendar mode, there
are also interrupt flags being set each minute, hour, day, week, and month.
Upon oscillator failure detection, the OSCFAIL flag will be set.
silabs.com | Building a more connected world.
RTCC_DATE
[0b000,
DAYOW]
[MONTHT,MONTHU]
Compare match
[MONTHT,MONTHU]
[DAYT,DAYU]
RTCC_CCx_DATE
Figure 13.5. RTCC Compare in calendar mode, COMPBASE = CNT
CCV
21
20
DAYT
DAYU
HOURT
25
24
21
20
19
Figure 13.6. RTCC Compare mask illustration, COMPMASK=11
RTCC_TIME
[DAYOMT,
DAYOMU]
RTCC_CCx_CTRL_DAYCC
MASK
=
MASK
RTCC_CCx_TIME
HOURU
MINT
18
15
14
12
11
Subject to comparison
Figure 13.3 RTCC Compare match and PRS output illustration on
RTCC - Real Time Counter and Calendar
illustrates the effect of COMP-
MINU
SECT
SECU
8
7
5
4
Reference Manual
0
1
0
Rev. 1.1 | 384

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EFR32xG14 Wireless Gecko and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents