\n

RTC_C

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x20 byte (0x0)
mem_usage : registers
protection : not protected

Registers

CTL0 (RTCCTL0)

TIM0 (RTCTIM0)

TIM1 (RTCTIM1)

DATE (RTCDATE)

YEAR (RTCYEAR)

AMINHR (RTCAMINHR)

ADOWDAY (RTCADOWDAY)

BIN2BCD (RTCBIN2BCD)

BCD2BIN (RTCBCD2BIN)

CTL13 (RTCCTL13)

OCAL (RTCOCAL)

TCMP (RTCTCMP)

PS0CTL (RTCPS0CTL)

PS1CTL (RTCPS1CTL)

PS (RTCPS)

IV (RTCIV)


CTL0 (RTCCTL0)

RTCCTL0 Register
address_offset : 0x0 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTL0 CTL0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTCRDYIFG RTCAIFG RTCTEVIFG RTCOFIFG RTCRDYIE RTCAIE RTCTEVIE RTCOFIE RTCKEY

RTCRDYIFG : Real-time clock ready interrupt flag
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

0 : RTCRDYIFG_0

RTC cannot be read safely

1 : RTCRDYIFG_1

RTC can be read safely

End of enumeration elements list.

RTCAIFG : Real-time clock alarm interrupt flag
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

0 : RTCAIFG_0

No time event occurred

1 : RTCAIFG_1

Time event occurred

End of enumeration elements list.

RTCTEVIFG : Real-time clock time event interrupt flag
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

0 : RTCTEVIFG_0

No time event occurred

1 : RTCTEVIFG_1

Time event occurred

End of enumeration elements list.

RTCOFIFG : 32-kHz crystal oscillator fault interrupt flag
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

0 : RTCOFIFG_0

No interrupt pending

1 : RTCOFIFG_1

Interrupt pending. A 32-kHz crystal oscillator fault occurred after last reset.

End of enumeration elements list.

RTCRDYIE : Real-time clock ready interrupt enable
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

0 : RTCRDYIE_0

Interrupt not enabled

1 : RTCRDYIE_1

Interrupt enabled

End of enumeration elements list.

RTCAIE : Real-time clock alarm interrupt enable
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

0 : RTCAIE_0

Interrupt not enabled

1 : RTCAIE_1

Interrupt enabled (LPM3/LPM3.5 wake-up enabled)

End of enumeration elements list.

RTCTEVIE : Real-time clock time event interrupt enable
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

0 : RTCTEVIE_0

Interrupt not enabled

1 : RTCTEVIE_1

Interrupt enabled (LPM3/LPM3.5 wake-up enabled)

End of enumeration elements list.

RTCOFIE : 32-kHz crystal oscillator fault interrupt enable
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

0 : RTCOFIE_0

Interrupt not enabled

1 : RTCOFIE_1

Interrupt enabled (LPM3/LPM3.5 wake-up enabled)

End of enumeration elements list.

RTCKEY : Real-time clock key
bits : 8 - 15 (8 bit)
access : read-write


TIM0 (RTCTIM0)

RTCTIM0 Register Hexadecimal Format
address_offset : 0x10 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIM0 TIM0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Seconds Minutes

Seconds : Seconds (0 to 59)
bits : 0 - 5 (6 bit)
access : read-write

Minutes : Minutes (0 to 59)
bits : 8 - 13 (6 bit)
access : read-write


TIM1 (RTCTIM1)

Real-Time Clock Hour, Day of Week
address_offset : 0x12 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIM1 TIM1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Hours DayofWeek

Hours : Hours (0 to 23)
bits : 0 - 4 (5 bit)
access : read-write

DayofWeek : Day of week (0 to 6)
bits : 8 - 10 (3 bit)
access : read-write


DATE (RTCDATE)

RTCDATE - Hexadecimal Format
address_offset : 0x14 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DATE DATE read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Day Month

Day : Day of month (1 to 28, 29, 30, 31)
bits : 0 - 4 (5 bit)
access : read-write

Month : Month (1 to 12)
bits : 8 - 11 (4 bit)
access : read-write


YEAR (RTCYEAR)

RTCYEAR Register Hexadecimal Format
address_offset : 0x16 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

YEAR YEAR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 YearLowByte YearHighByte

YearLowByte : Year low byte. Valid values for Year are 0 to 4095.
bits : 0 - 7 (8 bit)
access : read-write

YearHighByte : Year high byte. Valid values for Year are 0 to 4095.
bits : 8 - 11 (4 bit)
access : read-write


AMINHR (RTCAMINHR)

RTCMINHR - Hexadecimal Format
address_offset : 0x18 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

AMINHR AMINHR read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Minutes MINAE Hours HOURAE

Minutes : Minutes (0 to 59)
bits : 0 - 5 (6 bit)
access : read-write

MINAE : Alarm enable
bits : 7 - 7 (1 bit)
access : read-write

Hours : Hours (0 to 23)
bits : 8 - 12 (5 bit)
access : read-write

HOURAE : Alarm enable
bits : 15 - 15 (1 bit)
access : read-write


ADOWDAY (RTCADOWDAY)

RTCADOWDAY - Hexadecimal Format
address_offset : 0x1A Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ADOWDAY ADOWDAY read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DayofWeek DOWAE DayofMonth DAYAE

DayofWeek : Day of week (0 to 6)
bits : 0 - 2 (3 bit)
access : read-write

DOWAE : Alarm enable
bits : 7 - 7 (1 bit)
access : read-write

DayofMonth : Day of month (1 to 28, 29, 30, 31)
bits : 8 - 12 (5 bit)
access : read-write

DAYAE : Alarm enable
bits : 15 - 15 (1 bit)
access : read-write


BIN2BCD (RTCBIN2BCD)

Binary-to-BCD Conversion Register
address_offset : 0x1C Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BIN2BCD BIN2BCD read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BIN2BCD

BIN2BCD : bin to bcd conversion
bits : 0 - 15 (16 bit)
access : read-write


BCD2BIN (RTCBCD2BIN)

BCD-to-Binary Conversion Register
address_offset : 0x1E Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

BCD2BIN BCD2BIN read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 BCD2BIN

BCD2BIN : bcd to bin conversion
bits : 0 - 15 (16 bit)
access : read-write


CTL13 (RTCCTL13)

RTCCTL13 Register
address_offset : 0x2 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTL13 CTL13 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTCTEV RTCSSEL RTCRDY RTCMODE RTCHOLD RTCBCD RTCCALF

RTCTEV : Real-time clock time event
bits : 0 - 1 (2 bit)
access : read-write

Enumeration:

0 : RTCTEV_0

Minute changed

1 : RTCTEV_1

Hour changed

2 : RTCTEV_2

Every day at midnight (00:00)

3 : RTCTEV_3

Every day at noon (12:00)

End of enumeration elements list.

RTCSSEL : Real-time clock source select
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

0 : RTCSSEL_0

BCLK

End of enumeration elements list.

RTCRDY : Real-time clock ready
bits : 4 - 4 (1 bit)
access : read-only

Enumeration: RTCRDY_enum_read ( read )

0 : RTCRDY_0

RTC time values in transition

1 : RTCRDY_1

RTC time values safe for reading. This bit indicates when the real-time clock time values are safe for reading.

End of enumeration elements list.

RTCMODE :
bits : 5 - 5 (1 bit)
access : read-only

Enumeration: RTCMODE_enum_read ( read )

1 : RTCMODE_1

Calendar mode. Always reads a value of 1.

End of enumeration elements list.

RTCHOLD : Real-time clock hold
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

0 : RTCHOLD_0

Real-time clock is operational

1 : RTCHOLD_1

When set, the calendar is stopped as well as the prescale counters, RT0PS and RT1PS are don't care

End of enumeration elements list.

RTCBCD : Real-time clock BCD select
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

0 : RTCBCD_0

Binary (hexadecimal) code selected

1 : RTCBCD_1

Binary coded decimal (BCD) code selected

End of enumeration elements list.

RTCCALF : Real-time clock calibration frequency
bits : 8 - 9 (2 bit)
access : read-write

Enumeration:

0 : RTCCALF_0

No frequency output to RTCCLK pin

1 : RTCCALF_1

512 Hz

2 : RTCCALF_2

256 Hz

3 : RTCCALF_3

1 Hz

End of enumeration elements list.


OCAL (RTCOCAL)

RTCOCAL Register
address_offset : 0x4 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

OCAL OCAL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTCOCAL RTCOCALS

RTCOCAL : Real-time clock offset error calibration
bits : 0 - 7 (8 bit)
access : read-write

RTCOCALS : Real-time clock offset error calibration sign
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

0 : RTCOCALS_0

Down calibration. Frequency adjusted down.

1 : RTCOCALS_1

Up calibration. Frequency adjusted up.

End of enumeration elements list.


TCMP (RTCTCMP)

RTCTCMP Register
address_offset : 0x6 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TCMP TCMP read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTCTCMP RTCTCOK RTCTCRDY RTCTCMPS

RTCTCMP : Real-time clock temperature compensation
bits : 0 - 7 (8 bit)
access : read-write

RTCTCOK : Real-time clock temperature compensation write OK
bits : 13 - 13 (1 bit)
access : read-only

Enumeration: RTCTCOK_enum_read ( read )

0 : RTCTCOK_0

Write to RTCTCMPx is unsuccessful

1 : RTCTCOK_1

Write to RTCTCMPx is successful

End of enumeration elements list.

RTCTCRDY : Real-time clock temperature compensation ready
bits : 14 - 14 (1 bit)
access : read-only

RTCTCMPS : Real-time clock temperature compensation sign
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

0 : RTCTCMPS_0

Down calibration. Frequency adjusted down

1 : RTCTCMPS_1

Up calibration. Frequency adjusted up

End of enumeration elements list.


PS0CTL (RTCPS0CTL)

Real-Time Clock Prescale Timer 0 Control Register
address_offset : 0x8 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PS0CTL PS0CTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RT0PSIFG RT0PSIE RT0IP

RT0PSIFG : Prescale timer 0 interrupt flag
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

0 : RT0PSIFG_0

No time event occurred

1 : RT0PSIFG_1

Time event occurred

End of enumeration elements list.

RT0PSIE : Prescale timer 0 interrupt enable
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

0 : RT0PSIE_0

Interrupt not enabled

1 : RT0PSIE_1

Interrupt enabled (LPM3/LPM3.5 wake-up enabled)

End of enumeration elements list.

RT0IP : Prescale timer 0 interrupt interval
bits : 2 - 4 (3 bit)
access : read-write

Enumeration:

0 : RT0IP_0

Divide by 2

1 : RT0IP_1

Divide by 4

2 : RT0IP_2

Divide by 8

3 : RT0IP_3

Divide by 16

4 : RT0IP_4

Divide by 32

5 : RT0IP_5

Divide by 64

6 : RT0IP_6

Divide by 128

7 : RT0IP_7

Divide by 256

End of enumeration elements list.


PS1CTL (RTCPS1CTL)

Real-Time Clock Prescale Timer 1 Control Register
address_offset : 0xA Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PS1CTL PS1CTL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RT1PSIFG RT1PSIE RT1IP

RT1PSIFG : Prescale timer 1 interrupt flag
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

0 : RT1PSIFG_0

No time event occurred

1 : RT1PSIFG_1

Time event occurred

End of enumeration elements list.

RT1PSIE : Prescale timer 1 interrupt enable
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

0 : RT1PSIE_0

Interrupt not enabled

1 : RT1PSIE_1

Interrupt enabled (LPM3/LPM3.5 wake-up enabled)

End of enumeration elements list.

RT1IP : Prescale timer 1 interrupt interval
bits : 2 - 4 (3 bit)
access : read-write

Enumeration:

0 : RT1IP_0

Divide by 2

1 : RT1IP_1

Divide by 4

2 : RT1IP_2

Divide by 8

3 : RT1IP_3

Divide by 16

4 : RT1IP_4

Divide by 32

5 : RT1IP_5

Divide by 64

6 : RT1IP_6

Divide by 128

7 : RT1IP_7

Divide by 256

End of enumeration elements list.


PS (RTCPS)

Real-Time Clock Prescale Timer Counter Register
address_offset : 0xC Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

PS PS read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RT0PS RT1PS

RT0PS : Prescale timer 0 counter value
bits : 0 - 7 (8 bit)
access : read-write

RT1PS : Prescale timer 1 counter value
bits : 8 - 15 (8 bit)
access : read-write


IV (RTCIV)

Real-Time Clock Interrupt Vector Register
address_offset : 0xE Bytes (0x0)
size : 16 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

IV IV read-only 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 RTCIV

RTCIV : Real-time clock interrupt vector value
bits : 0 - 15 (16 bit)
access : read-only

Enumeration: RTCIV_enum_read ( read )

0 : RTCIV_0

No interrupt pending

2 : RTCIV_2

Interrupt Source: RTC oscillator failure Interrupt Flag: RTCOFIFG Interrupt Priority: Highest

4 : RTCIV_4

Interrupt Source: RTC ready Interrupt Flag: RTCRDYIFG

6 : RTCIV_6

Interrupt Source: RTC interval timer Interrupt Flag: RTCTEVIFG

8 : RTCIV_8

Interrupt Source: RTC user alarm Interrupt Flag: RTCAIFG

10 : RTCIV_10

Interrupt Source: RTC prescaler 0 Interrupt Flag: RT0PSIFG

12 : RTCIV_12

Interrupt Source: RTC prescaler 1 Interrupt Flag: RT1PSIFG

End of enumeration elements list.



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.