Clock, Reset, and Power Control (CRP)
MPC5510 Microcontroller Family Reference Manual, Rev. 1
5-8
Freescale Semiconductor
Preliminary
5.2.2.3
RTC Counter Register (CRP_RTCCNT)
The CRP_RTCCNT register contains:
•
RTC counter value
5.2.2.4
Wakeup Pin Source Select Register (CRP_WKPINSEL)
The CRP_WKPINSEL register has eight fields, each of which controls which external pin will be used as
one of the eight external wakeup sources.
ROVREN
Counter Roll Over Interrupt Enable. The ROVREN bit enables wakeup and/or interrupt requests when the
RTC has rolled over from 0xFFFF_FFFF to 0x0000_0000. The RTCIE bit must also be set in order to
generate an interrupt request on a counter rollover.
0) RTC rollover wakeup/interrupts disabled
1) RTC rollover wakeup/interrupt enabled
APIVAL
API Compare Value. The APIVAL bits are compared to an offset value based on bits 22–31 of the RTC
counter and if match asserts a interrupt/wakeup request. APIVAL may only be updated when APIEN is 0 or
API function is undefined.
Note: The compare value will be the number in the API + 1. Numbers less than 3 should not be used as
synchronization requires up to 2 clocks.
Offset: CR 0x0014
Access: User read only
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
RTCCNT
W
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
These bits are only reset by power-on, VDD15 LVI, VDD33 LVI, and VDDSYN LVI, VDD5 low LVI, and VDDLVI.
Figure 5-4. RTC Counter Register (CRP_RTCCNT)
Table 5-4. CRP_RTCCNT Field Descriptions
Field
Description
RTCCNT
RTC Counter Value. The RTCCNT bits reflect the current value of the RTC counter.
Offset: CR 0x0040
Access: User read/write
0
1
2
3
4
5
6
7
8
9
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
R 0 WKPSEL
7
0 WKPSEL
6
0 WKPSEL
5
0 WKPSEL
4
0 WKPSEL
3
0 WKPSEL
2
0 WKPSEL
1
0 WKPSEL
0
W
Reset 0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 5-5. Wakeup Pin Source Select Register (CRP_WKPINSEL)
Table 5-3. CRP_RTCSC Field Descriptions (continued)
Field
Description