Product Specs

Table Of Contents
25 RTC Real-time counter
Page
249
Base address
Peripheral
Instance
Description
Configuration
0x40024000
RTC
RTC2
Real-time counter 2
CC[0..3] implemented
Table 48: Register Overview
Register
Offset
Description
TASKS_START
0x000
Start RTC COUNTER
TASKS_STOP
0x004
Stop RTC COUNTER
TASKS_CLEAR
0x008
Clear RTC COUNTER
TASKS_TRIGOVRFLW
0x00C
Set COUNTER to 0xFFFFF0
EVENTS_TICK
0x100
Event on COUNTER increment
EVENTS_OVRFLW
0x104
Event on COUNTER overflow
EVENTS_COMPARE[0]
0x140
Compare event on CC[0] match
EVENTS_COMPARE[1]
0x144
Compare event on CC[1] match
EVENTS_COMPARE[2]
0x148
Compare event on CC[2] match
EVENTS_COMPARE[3]
0x14C
Compare event on CC[3] match
INTENSET
0x304
Enable interrupt
INTENCLR
0x308
Disable interrupt
EVTEN
0x340
Enable or disable event routing
EVTENSET
0x344
Enable event routing
EVTENCLR
0x348
Disable event routing
COUNTER
0x504
Current COUNTER value
PRESCALER
0x508
12 bit prescaler for COUNTER frequency (32768/(PRESCALER+1)).Must be written when RTC is
stopped
CC[0]
0x540
Compare register 0
CC[1]
0x544
Compare register 1
CC[2]
0x548
Compare register 2
CC[3]
0x54C
Compare register 3
25.10.1 INTENSET
Address offset: 0x304
Enable interrupt
Bit number
Id
Reset 0x00000000
31 30
0 0
29
0
28
0
27
0
26
0
25
0
24
0
23 22 21 20
0 0 0 0
19
F
0
18
E
0
17
D
0
16
C
0
15
0
14
0
13
0
12
0
11
0
10
0
9
0
8
0
7
0
6
0
5
0
4
0
3
0
2
0
1
B
0
0
A
0
Id RW Field
Value Id
Value
Description
A
RW
TICK
Write '1' to Enable interrupt for TICK event
See EVENTS_TICK
Set
1
Enable
Disabled
0
Read: Disabled
Enabled
1
Read: Enabled
B
RW
OVRFLW
Write '1' to Enable interrupt for OVRFLW event
Set
1
See EVENTS_OVRFLW
Enable
Disabled
0
Read: Disabled
Enabled
1
Read: Enabled
C
RW
COMPARE0
Write '1' to Enable interrupt for COMPARE[0] event
Set
1
See EVENTS_COMPARE[0]
Enable
Disabled
0
Read: Disabled
Enabled
1
Read: Enabled
D
RW
COMPARE1
Write '1' to Enable interrupt for COMPARE[1] event
Set
1
See EVENTS_COMPARE[1]
Enable
Disabled
0
Read: Disabled
Enabled
1
Read: Enabled