This section provides information on the RTC Module Instance within this product. Each of the registers within the Module Instance is described separately below.
**ULL** Real Time Clock module RTC includes 2 channels. - Channel 0 is a compare channel - Channel 1 is a capture channel INTERNAL_NOTE: [Functional Specification](https://confluence.itg.ti.com/display/LPRF/Loki+-+RTC+Functional+Spec) [Implementation Specification](https://confluence.itg.ti.com/display/LPRF/Loki+RTC-+Implementation+Spec)
|
Register Name |
Type |
Register Width (Bits) |
Register Reset |
Address Offset |
|
RO |
32 |
0x6442 1010 |
0x0000 0000 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0004 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0008 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 000C |
|
|
RO |
32 |
0x0000 0000 |
0x0000 0010 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 0014 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 0018 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 001C |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0020 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0024 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0028 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 0038 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 003C |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0044 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 0048 |
|
|
RO |
32 |
0x0000 0000 |
0x0000 004C |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0050 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0054 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0058 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 005C |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0060 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0064 |
|
|
RW |
32 |
0x0000 0000 |
0x0000 0068 |
|
Address offset |
0x0000 0000 |
||
|
Description |
Description Register. This register provides IP module ID, revision information, instance index and standard MMR registers offset. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:16 |
MODID |
Module identifier used to uniquely identify this IP. |
RO |
0x6442 |
||
|
15:12 |
STDIPOFF |
Standard IP MMR block offset. Standard IP MMRs are the set of from aggregated IRQ registers till DTB. |
RO |
0x1 |
||
|
11:8 |
INSTIDX |
IP Instance ID number. If multiple instances of IP exist in the device, this field can identify the instance number (0-15). |
RO |
0x0 |
||
|
7:4 |
MAJREV |
Major revision of IP (0-15). |
RO |
0x1 |
||
|
3:0 |
MINREV |
Minor revision of IP (0-15). |
RO |
0x0 |
||
|
Address offset |
0x0000 0004 |
||
|
Description |
RTC Control register. This register controls resetting the of RTC counter |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:1 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
0 |
RST |
RTC counter reset. Writing 1 to this bit will reset the RTC counter, and cause it to resume counting from 0x0 |
WO |
0 |
||
|
|
|
Write 0 |
NOEFF |
|
||
|
|
|
Write 1 |
CLR |
|
||
|
Address offset |
0x0000 0008 |
||
|
Description |
RTC channel mode set register. Read to each bit field of this register provides the current channel mode. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
CH1 |
Arming Channel 1 for capture operation. |
RW |
0 |
||
|
|
|
0 |
NOEFF |
|
||
|
|
|
1 |
SET |
|
||
|
0 |
CH0 |
No effect on arming the channel. Read will give the status of the Channel 0. |
RW |
0 |
||
|
|
|
0 |
NOEFF |
|
||
|
|
|
1 |
SET |
|
||
|
Address offset |
0x0000 000C |
||
|
Description |
RTC channel mode clear register. Read to each bit field of this register provides the current channel mode. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
CH1 |
Disarming Channel 1 |
RW |
0 |
||
|
|
|
0 |
NOEFF |
|
||
|
|
|
1 |
CLR |
|
||
|
0 |
CH0 |
Disarming Channel 0 |
RW |
0 |
||
|
|
|
0 |
NOEFF |
|
||
|
|
|
1 |
CLR |
|
||
|
Address offset |
0x0000 0010 |
||
|
Description |
RTC Time value register. 32-bit unsigned integer representing [29:-2] time slice of the real time clock counter. The counter runs on **LFCLK**. This field has a resolution of 250ns, and range of about 17.8 minutes. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
Unsigned integer representing [34:3]slice of real time counter. |
RO |
0x0000 0000 |
||
|
Address offset |
0x0000 0014 |
||
|
Description |
RTC Time value register. 32-bit unsigned integer representing [31:0] time slice of the real time clock counter. The counter runs on **LFCLK**. This field has a resolution of 1us, and range of about 1.19 hours. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
Unsigned integer representing [34:3]slice of real time counter. |
RO |
0x0000 0000 |
||
|
Address offset |
0x0000 0018 |
||
|
Description |
RTC Time value register. 32-bit unsigned integer representing [34:3] time slice of the real time clock counter. The counter runs on **LFCLK**. This field has a resolution of 8us, and range of about 9.5 hours. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
Unsigned integer representing [34:3]slice of real time counter. |
RO |
0x0000 0000 |
||
|
Address offset |
0x0000 001C |
||
|
Description |
RTC time value register. 32-bit unsigned integer representing [50:19] time slice of the real time clock counter. This field has a resolution of about 0.5s and a range of about 71.4 years. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
Unsigned integer representing. [50:19]slice of real time counter. |
RO |
0x0000 0000 |
||
|
Address offset |
0x0000 0020 |
||
|
Description |
Channel 0 compare value with 250ns resolution. A read to this register returns the value {CH0CC8U[29:3], 5b'0} |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
RTC Channel 0 compare value. This value is compared against [TIME8U.VAL]. A Channel 0 event is generated when [TIME8U.VAL] value reaches or exceeds this compare value. |
RW |
0x0000 0000 |
||
|
Address offset |
0x0000 0024 |
||
|
Description |
Channel 0 compare value with 1us resolution. A read to this register returns the value {CH0CC8U[31:3], 3b'0} |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
RTC Channel 0 compare value. This value is compared against [TIME8U.VAL]. A Channel 0 event is generated when [TIME8U.VAL] value reaches or exceeds this compare value. |
RW |
0x0000 0000 |
||
|
Address offset |
0x0000 0028 |
||
|
Description |
Channel 0 compare value. A write to this register automatically enables the channel to trigger an event when RTC timer reaches the programmed value or if the programmed value is 1 sec in the past. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
VAL |
RTC Channel 0 compare value. This value is compared against [TIME8U.VAL]. A Channel 0 event is generated when [TIME8U.VAL] value reaches or exceeds this compare value. |
RW |
0x0000 0000 |
||
|
Address offset |
0x0000 0038 |
||
|
Description |
Channel 1 capture value. This register captures the RTC time slice [34:3] on each selected edge of the capture event when the [ARMSET.CH1] = 1. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:21 |
Reserved |
spare |
RO |
0x000 |
||
|
20:0 |
VAL |
[TIME8U.VAL] captured value at the last selected edge of capture event. |
RO |
0x00 0000 |
||
|
Address offset |
0x0000 003C |
||
|
Description |
Channel 1 configuration register. This register can be used to select the capture edge for generating the capture event. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:1 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
0 |
EDGE |
Edge detect configuration for capture source |
RW |
0 |
||
|
|
|
0 |
RISE |
|
||
|
|
|
1 |
FALL |
|
||
|
Address offset |
0x0000 0044 |
||
|
Description |
Interrupt Mask. If a bit is set, then corresponding interrupt is un-masked. Un-masking the interrupt causes the raw interrupt to be visible in IIDX, as well as MIS. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Channel 1 Event Interrupt Mask. |
RW |
0 |
||
|
|
|
0 |
DIS |
|
||
|
|
|
1 |
EN |
|
||
|
0 |
EV0 |
Channel 0 Event Interrupt Mask. |
RW |
0 |
||
|
|
|
0 |
DIS |
|
||
|
|
|
1 |
EN |
|
||
|
Address offset |
0x0000 0048 |
||
|
Description |
Interrupt mask. This register selects interrupt sources which are allowed to pass from [RIS.*] to [MIS.*] when the corresponding bit-fields are set to 1. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Raw interrupt status for Channel 1 event. |
RO |
0 |
||
|
|
|
Read 0 |
CLR |
|
||
|
|
|
Read 1 |
SET |
|
||
|
0 |
EV0 |
Raw interrupt status for Channel 0 event. |
RO |
0 |
||
|
|
|
Read 0 |
CLR |
|
||
|
|
|
Read 1 |
SET |
|
||
|
Address offset |
0x0000 004C |
||
|
Description |
Masked interrupt status. This register is simply a bitwise AND of the contents of [IMASK.*] and RIS.*] registers. A flag set in this register can be cleared by writing 1 to the corresponding [ICLR.*] register bit. |
||
|
Type |
RO |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Masked interrupt status for channel 1 event. |
RO |
0 |
||
|
|
|
Read 0 |
CLR |
|
||
|
|
|
Read 1 |
SET |
|
||
|
0 |
EV0 |
Masked interrupt status for channel 0 event. |
RO |
0 |
||
|
|
|
Read 0 |
CLR |
|
||
|
|
|
Read 1 |
SET |
|
||
|
Address offset |
0x0000 0050 |
||
|
Description |
Interrupt set register. This register can used by software for diagnostics and safety checking purposes. Writing a 1 to a bit in this register will set the event and the corresponding [RIS.*] bit also gets set. If the corresponding [IMASK.*] bit is set, then the corresponding [MIS.*] register bit also gets set. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Set Channel 1 event Interrupt. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFFECT |
|
||
|
|
|
Write 1 |
SET |
|
||
|
0 |
EV0 |
Set Channel 0 event Interrupt. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFFECT |
|
||
|
|
|
Write 1 |
SET |
|
||
|
Address offset |
0x0000 0054 |
||
|
Description |
Interrupt clear register. This register allows software to clear interrupts. Writing a 1 to a bit in this register will clear the event and the corresponding [RIS.*] bit also gets cleared. If the corresponding [IMASK.*] bit is set, then the corresponding [MIS.*] register bit also gets cleared. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Clears channel 1 event interrupt. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
CLR |
|
||
|
0 |
EV0 |
Clears channel 0 event interrupt. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
CLR |
|
||
|
Address offset |
0x0000 0058 |
||
|
Description |
Interrupt mask set register. Writing a 1 to a bit in this register will set the corresponding [IMASK.*] bit. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Set channel 1 event interrupt mask. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
SET |
|
||
|
0 |
EV0 |
Set channel 0 event interrupt mask. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
SET |
|
||
|
Address offset |
0x0000 005C |
||
|
Description |
Interrupt mask clear register. Writing a 1 to a bit in this register will clear the corresponding [IMASK.*] bit. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:2 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
1 |
EV1 |
Clears Channel 1 event interrupt mask. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
CLR |
|
||
|
0 |
EV0 |
Clears Channel 0 event interrupt mask. |
WO |
0 |
||
|
|
|
Write 0 |
NO_EFF |
|
||
|
|
|
Write 1 |
CLR |
|
||
|
Address offset |
0x0000 0060 |
||
|
Description |
Emulation control register. This register controls the behavior of the IP related to core halted input. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:1 |
Reserved |
spare |
RO |
0x0000 0000 |
||
|
0 |
HALT |
Halt control. |
RW |
0 |
||
|
|
|
0 |
RUN |
|
||
|
|
|
1 |
STOP |
|
||
|
Address offset |
0x0000 0064 |
||
|
Description |
Digital test bus control register. This register can be used to bring out IP internal signals to the pads for observation. 16 signals can be observed per select value. |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:4 |
Reserved |
spare |
RO |
0x000 0000 |
||
|
3:0 |
SEL |
Digital test bus selection mux control. |
RW |
0x0 |
||
|
|
|
0x0 |
DIS |
|
||
|
Address offset |
0x0000 0068 |
||
|
Description |
A delta time mechanism is implemented for RTC that allows the TIME value to be adjusted under software control. This is used by boot code to perform the compensation for reset duration (accomplished by adding MMR write to FCFG.generalTrims copylist to avoid ROM changes) |
||
|
Type |
RW |
||
|
Bits |
Field Name |
Description |
Type |
Reset |
||
|
31:0 |
Reserved |
spare |
RO |
0x0000 0000 |
||