\n

TIMER

Peripheral Memory Blocks

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

Registers

CWDR

CWYMR

CWYLR

CTCR

IMSC

RIS

MIS

ICR

TDR

TCR

TLR1

TLR2

TPR1

CWDMR

TPR2

TPR3

TPR4

TIN

CWDLR

CWYR


CWDR

Clockwatch Data Register
address_offset : 0x0 Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

CWDR CWDR 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 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 CWSEC CWMIN CWHOUR CWDAYW CWDAYM CWMONTH

CWSEC : RTC clockwatch second value. Clockwatch seconds: 0 to 59 (max 0x3B).
bits : 0 - 5 (6 bit)

CWMIN : RTC clockwatch minute value. Clockwatch seconds: 0 to 59 (max 0x3B).
bits : 6 - 11 (6 bit)

CWHOUR : RTC clockwatch hour value. Clockwatch seconds: 0 to 23 (max 0x17).
bits : 12 - 16 (5 bit)

CWDAYW : RTC clockwatch day of week value. Clockwatch day of week:


bits : 17 - 19 (3 bit)

CWDAYM : RTC clockwatch day of month value: 1 to 28/29/30 or 31. Range of value to program depends on the month:


bits : 20 - 24 (5 bit)

CWMONTH : RTC clockwatch month value:


bits : 25 - 28 (4 bit)


CWYMR

Clockwatch Year Match Register
address_offset : 0x10 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CWYMR CWYMR 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 CWYEARM

CWYEARM : RTC clockwatch year match value. Clockwatch year match value is in BCD format from 0 to 3999.
bits : 0 - 13 (14 bit)


CWYLR

Clockwatch Year Load Register
address_offset : 0x14 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CWYLR CWYLR 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 CWYEARL

CWYEARL : RTC clockwatch year load value. Clockwatch year load value is in BCD format from 0 to 3999.
bits : 0 - 13 (14 bit)


CTCR

Control Trim and Counter Register
address_offset : 0x18 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTCR CTCR 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 CKDIV CKDEL CWEN

CKDIV : Clock divider factor. This value plus one represents the integer part of the CLK32K clock divider used to produce the reference 1 Hz clock.

Writing to this bit-field will be disregarded if CWEN = 1. A read returns the value of the CKDIV bit-field.
bits : 0 - 14 (15 bit)

CKDEL : Trim delete count. This value represents the number of CLK32K clock pulses to delete every 1023 CLK32K clock cycles to get a better reference 1 Hz clock for incrementing the RTC counter.

Writing to this bit-field will be disregarded if CWEN = 1. A read returns the value of the CKDEL bit-field.
bits : 16 - 25 (10 bit)

CWEN : Clockwatch enable bit. When set to 1, the clockwatch is enabled. Once it is enabled, any write to this register has no effect until a power-on reset. A read returns the value of the CWEN bit value.
bits : 26 - 26 (1 bit)


IMSC

RTC interrupt mask register
address_offset : 0x1C Bytes (0x0)
size : 8 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

IMSC IMSC read-write 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 WIMSC TIMSC

WIMSC : RTC clock watch interrupt enable bit:


bits : 0 - 0 (1 bit)

TIMSC : RTC timer interrupt enable bit:


bits : 1 - 1 (1 bit)


RIS

RTC raw interrupt status register
address_offset : 0x20 Bytes (0x0)
size : 8 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

RIS RIS read-only 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 WRIS TRIS

WRIS : RTC clock watch raw interrupt status bit. Gives the raw interrupt state (prior to masking) of the RTC clock watch interrupt.
bits : 0 - 0 (1 bit)

TRIS : RTC timer raw interrupt status bit. Gives the raw interrupt state (prior to masking) of the RTC timer interrupt.
bits : 1 - 1 (1 bit)


MIS

RTC masked interrupt status register
address_offset : 0x24 Bytes (0x0)
size : 8 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

MIS MIS read-only 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 WMIS TMIS

WMIS : RTC clock watch interrupt status bit. Gives the masked interrupt status (after masking) of the RTC clock watch interrupt WINTR.
bits : 0 - 0 (1 bit)

TMIS : RTC timer interrupt status bit. Gives the masked interrupt status (after masking) of the RTC timer interrupt TINTR.
bits : 1 - 1 (1 bit)


ICR

RTC interrupt clear register
address_offset : 0x28 Bytes (0x0)
size : 8 bit
access : write-only
reset_value : 0x0
reset_Mask : 0x0

ICR ICR write-only 0 1 2 3 4 5 6 7 Resets to 0 0 0 0 0 0 0 0 WIC TIC

WIC : RTC clock watch interrupt clear register bit. Clears the RTC clock watch interrupt WINTR.


bits : 0 - 0 (1 bit)

TIC : RTC timer interrupt clear register bit. Clears the RTC timer interrupt TINTR.


bits : 1 - 1 (1 bit)


TDR

RTC timer load value
address_offset : 0x2C Bytes (0x0)
size : 32 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TDR TDR 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 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

TCR

RTC timer control register
address_offset : 0x30 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TCR TCR 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 OS EN S SP CLK BYPASS_GATED

OS : RTC Timer one shot count.


bits : 0 - 0 (1 bit)

EN : RTC Timer enable bit.

When the RTC timer is stopped, the content of the counter is frozen. A read returns the value of the EN bit. This bit set by hardware when the TLR register is written to while the counter is stopped. When the device is active, this bit is cleared by hardware when the counter reaches zero in one-shot mode.
bits : 1 - 1 (1 bit)

S : RTC Timer self start bit. When written to 1b, each write in a load register or a pattern will set EN to 1b, so, start the counter in the next CLK32K cycle.
bits : 2 - 2 (1 bit)

SP : RTC Timer Pattern size. Number of pattern bits crossed by the pointer. It defines the useful pattern size.
bits : 4 - 10 (7 bit)

CLK : RTC Timer clock.


bits : 11 - 11 (1 bit)

Enumeration:

0 : KHZ32_CLK

RTC timer is clocked by CLK32K

1 : TRIMMED_CLK

RTC timer is clocked by the trimmed clock

End of enumeration elements list.

BYPASS_GATED : Enable or disable the internal clock gating:


bits : 12 - 12 (1 bit)


TLR1

RTC Timer first Load Register
address_offset : 0x34 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TLR1 TLR1 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

TLR2

RTC Timer second Load Register
address_offset : 0x38 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TLR2 TLR2 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

TPR1

RTC Timer Pattern Register (pattern[31:0])
address_offset : 0x3C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TPR1 TPR1 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

CWDMR

Clockwatch Data Match Register
address_offset : 0x4 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CWDMR CWDMR 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 CWSECM CWMINM CWHOURM CWDAYWM CWDAYMM CWMONTHM

CWSECM : RTC clockwatch second match value:

Non-valid data, match never occurs.
bits : 0 - 5 (6 bit)

CWMINM : RTC clockwatch minute match value:

Non-valid data, match never occurs.
bits : 6 - 11 (6 bit)

CWHOURM : RTC clockwatch hour match value:

Non-valid data, match never occurs.
bits : 12 - 16 (5 bit)

CWDAYWM : RTC clockwatch day of week match value:


bits : 17 - 19 (3 bit)

CWDAYMM : RTC clockwatch day of month match value:


bits : 20 - 24 (5 bit)

CWMONTHM : RTC clockwatch month match value:


bits : 25 - 28 (4 bit)


TPR2

RTC Timer Pattern Register (pattern[63:32])
address_offset : 0x40 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TPR2 TPR2 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

TPR3

RTC Timer Pattern Register (pattern[95:64])
address_offset : 0x44 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TPR3 TPR3 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

TPR4

RTC Timer Pattern Register (pattern[127:96])
address_offset : 0x48 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TPR4 TPR4 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

TIN

RTC Timer Interrupt Number Register
address_offset : 0x4C Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIN TIN 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

CWDLR

Clockwatch Data Load Register
address_offset : 0x8 Bytes (0x0)
size : 32 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CWDLR CWDLR 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 CWSECL CWMINL CWHOURL CWDAYWL CWDAYML CWMONTHL

CWSECL : RTC clockwatch second load value. Clockwatch seconds from 0 to 59 (0x3B). Other values must not be used.
bits : 0 - 5 (6 bit)

CWMINL : RTC clockwatch minute load value. Clockwatch minutes from 0 to 59 (0x3B). Other values must not be used.
bits : 6 - 11 (6 bit)

CWHOURL : RTC clockwatch hour load value. Clockwatch hours from 0 to 23 (0x17). Other values must not be used.
bits : 12 - 16 (5 bit)

CWDAYWL : RTC clockwatch day of week load value. Clockwatch day of week:


bits : 17 - 19 (3 bit)

CWDAYML : RTC clockwatch day of month load value. 1 to 28/29/30 or 31 depending on month:


bits : 20 - 24 (5 bit)

CWMONTHL : RTC clockwatch month load value:

Other values must not be used.
bits : 25 - 28 (4 bit)


CWYR

Clockwatch Year Register
address_offset : 0xC Bytes (0x0)
size : 16 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

CWYR CWYR 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 CWYEAR

CWYEAR : RTC clockwatch year value. Clockwatch year, in BCD format is from 0 to 3999.
bits : 0 - 13 (14 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.