\n

RTC

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x400 byte (0x0)
mem_usage : registers
protection :

Registers

SEC

CTRL

TRIM

OSCCTRL

SSEC

TODA

SSECA


SEC

RTC Second Counter. This register contains the 32-bit second counter.
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SEC SEC 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 Resets to Resets to 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 SEC

SEC : Seconds Counter.
bits : 0 - 7 (8 bit)


CTRL

RTC Control Register.
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTRL CTRL 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 Resets to Resets to 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 EN TOD_ALARM_IE SSEC_ALARM_IE BUSY RDY RDY_IE TOD_ALARM SSEC_ALARM SQW_EN SQW_SEL RD_EN WR_EN

EN : Real Time Clock Enable. This bit enables the Real Time Clock. This bit can only be written when WE=1 and BUSY =0. Change to this bit is effective only after BUSY is cleared from 1 to 0.
bits : 0 - 0 (1 bit)

Enumeration:

0 : dis

Disable.

1 : en

Enable.

End of enumeration elements list.

TOD_ALARM_IE : Alarm Time-of-Day Interrupt Enable. Change to this bit is effective only after BUSY is cleared from 1 to 0.
bits : 1 - 1 (1 bit)

Enumeration:

0 : dis

Disable.

1 : en

Enable.

End of enumeration elements list.

SSEC_ALARM_IE : Alarm Sub-second Interrupt Enable. Change to this bit is effective only after BUSY is cleared from 1 to 0.
bits : 2 - 2 (1 bit)

Enumeration:

0 : dis

Disable.

1 : en

Enable.

End of enumeration elements list.

BUSY : RTC Busy. This bit is set to 1 by hardware when changes to RTC registers required a synchronized version of the register to be in place. This bit is automatically cleared by hardware.
bits : 3 - 3 (1 bit)
access : read-only

Enumeration:

0 : idle

Idle.

1 : busy

Busy.

End of enumeration elements list.

RDY : RTC Ready. This bit is set to 1 by hardware when the RTC count registers update. It can be cleared to 0 by software at any time. It will also be cleared to 0 by hardware just prior to an update of the RTC count register.
bits : 4 - 4 (1 bit)

Enumeration:

0 : busy

Register has not updated.

1 : ready

Ready.

End of enumeration elements list.

RDY_IE : RTC Ready Interrupt Enable.
bits : 5 - 5 (1 bit)

Enumeration:

0 : dis

Disable.

1 : en

Enable.

End of enumeration elements list.

TOD_ALARM : Time-of-Day Alarm Interrupt Flag. This alarm is qualified as wake-up source to the processor.
bits : 6 - 6 (1 bit)
access : read-only

Enumeration:

0 : inactive

Not active

1 : Pending

Active

End of enumeration elements list.

SSEC_ALARM : Sub-second Alarm Interrupt Flag. This alarm is qualified as wake-up source to the processor.
bits : 7 - 7 (1 bit)
access : read-only

Enumeration:

0 : inactive

Not active

1 : Pending

Active

End of enumeration elements list.

SQW_EN : Square Wave Output Enable.
bits : 8 - 8 (1 bit)

Enumeration:

0 : inactive

Not active

1 : Pending

Active

End of enumeration elements list.

SQW_SEL : Frequency Output Selection. When SQE=1, these bits specify the output frequency on the SQW pin.
bits : 9 - 10 (2 bit)

Enumeration:

0 : freq1Hz

1 Hz (Compensated).

1 : freq512Hz

512 Hz (Compensated).

2 : freq4KHz

4 KHz.

3 : clkDiv8

RTC Input Clock / 8.

End of enumeration elements list.

RD_EN : Asynchronous Counter Read Enable.
bits : 14 - 14 (1 bit)

WR_EN : Write Enable. This register bit serves as a protection mechanism against unintentional writes to critical RTC bits.
bits : 15 - 15 (1 bit)

Enumeration:

0 : inactive

Not active

1 : Pending

Active

End of enumeration elements list.


TRIM

RTC Trim Register.
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TRIM TRIM 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 Resets to Resets to 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 TRIM VRTC_TMR

TRIM : RTC Trim. This register contains the 2's complement value that specifies the trim resolution. Each increment or decrement of the bit adds or subtracts 1ppm at each 4KHz clock value, with a maximum correction of +/- 127ppm.
bits : 0 - 7 (8 bit)

VRTC_TMR : VBAT Timer Value. When RTC is running off of VBAT, this field is incremented every 32 seconds.
bits : 8 - 31 (24 bit)


OSCCTRL

RTC Oscillator Control Register.
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OSCCTRL OSCCTRL 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 Resets to Resets to 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 BYPASS SQW_32K

BYPASS : RTC Crystal Bypass
bits : 4 - 4 (1 bit)

SQW_32K : RTC 32kHz Square Wave Output
bits : 5 - 5 (1 bit)


SSEC

RTC Sub-second Counter. This counter increments at 256Hz. RTC_SEC is incremented when this register rolls over from 0xFF to 0x00.
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SSEC SSEC 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 Resets to Resets to 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 SSEC

SSEC : Sub-Seconds Counter (12-bit).
bits : 0 - 7 (8 bit)


TODA

Time-of-day Alarm.
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TODA TODA 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 Resets to Resets to 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 TOD_ALARM

TOD_ALARM : Time-of-day Alarm.
bits : 0 - 19 (20 bit)


SSECA

RTC sub-second alarm. This register contains the reload value for the sub-second alarm.
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SSECA SSECA 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 Resets to Resets to 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 SSEC_ALARM

SSEC_ALARM : This register contains the reload value for the sub-second alarm.
bits : 0 - 31 (32 bit)



Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !

This website is sponsored by EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.