\n

TMR

Peripheral Memory Blocks

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

Registers

TIMERx_CTL

TIMERx_CMP

TIMERx_INTSTS

TIMERx_CNT


TIMERx_CTL

Timer Control and Status Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMERx_CTL TIMERx_CTL 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 PSC CNTDATEN ACTSTS RSTCNT OPMODE INTEN CNTEN

PSC : Pre-scale Counter Clock input is divided by PSC+1 before it is fed to the counter. If PSC aaa 0, then there is no scaling.
bits : 0 - 7 (8 bit)
access : read-write

CNTDATEN : Data Latch Enable When CNTDATEN is set, TIMERx_CNT (Timer Data Register) will be updated continuously with the 24-bit up-counter value as the timer is counting.
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer Data Register update disable

#1 : 1

Timer Data Register update enable

End of enumeration elements list.

ACTSTS : Timer Active Status Bit (Read only) This bit indicates the counter status of timer.
bits : 25 - 25 (1 bit)
access : read-only

Enumeration:

#0 : 0

Timer is not active

#1 : 1

Timer is active

End of enumeration elements list.

RSTCNT : Counter Reset Bit Set this bit will reset the timer counter, prescale and also force CNTEN to 0.
bits : 26 - 26 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset Timer's prescale counter, internal 24-bit up-counter and CNTEN bit

End of enumeration elements list.

OPMODE : Timer Operating Mode
bits : 27 - 28 (2 bit)
access : read-write

Enumeration:

0 : 0

The timer is operating in the one-shot mode. The associated interrupt signal is generated once (if INTEN is enabled) and CNTEN is automatically cleared by hardware

1 : 1

The timer is operating in the periodic mode. The associated interrupt signal is generated periodically (if INTEN is enabled)

2 : 2

Reserved

3 : 3

The timer is operating in continuous counting mode. The associated interrupt signal is generated when CNT = CMPDAT (if INTEN is enabled) however, the 24-bit up-counter counts continuously without reset

End of enumeration elements list.

INTEN : Interrupt Enable Bit If timer interrupt is enabled, the timer asserts its interrupt signal when the count is equal to TIMERx_CMP.
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable TIMER Interrupt

#1 : 1

Enable TIMER Interrupt

End of enumeration elements list.

CNTEN : Counter Enable Bit Note1: Setting CNTEN aaa 1 enables 24-bit counter. It continues count from last value. Note2: This bit is auto-cleared by hardware in one-shot mode (OPMODE aaa 00b) when the timer interrupt is generated (INTEN aaa 1b).
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops/Suspends counting

#1 : 1

Starts counting

End of enumeration elements list.


TIMERx_CMP

Timer Compare Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMERx_CMP TIMERx_CMP 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 CMPDAT

CMPDAT : Timer Comparison Value CMPDAT is a 24-bit comparison register. When the 24-bit up-counter is enabled and its value is equal to CMPDAT value, a Timer Interrupt is requested if the timer interrupt is enabled with TIMERx_CTL.INTEN aaa 1. The CMPDAT value defines the timer cycle time. Time out period aaa (Period of timer clock input) * (8-bit PSC + 1) * (24-bit CMPDAT) NOTE1: Never set CMPDAT to 0x000 or 0x001. Timer will not function correctly. NOTE2: Regardless of CNTEN state, whenever a new value is written to this register, TIMER will restart counting using this new value and abort previous count.
bits : 0 - 24 (25 bit)
access : read-write


TIMERx_INTSTS

Timer Interrupt Status Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMERx_INTSTS TIMERx_INTSTS 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 TIF

TIF : Timer Interrupt Flag This bit indicates the interrupt status of Timer. TIF bit is set by hardware when the 24-bit counter matches the timer comparison value (CMPDAT). It is cleared by writing 1.
bits : 0 - 0 (1 bit)
access : read-write


TIMERx_CNT

Timer Data Register
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMERx_CNT TIMERx_CNT 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 CNT

CNT : Timer Data Register When TIMERx_CTL.CNTDATEN is set to 1, the internal 24-bit timer up-counter value will be latched into CNT. User can read this register for the up-counter value.
bits : 0 - 23 (24 bit)
access : read-write



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.