\n

TMR

Peripheral Memory Blocks

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

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

Registers

TCSR2

TCAP2

TEXCON2

TEXISR2

TCSR3

TCMPR3

TISR3

TDR3

TCAP3

TEXCON3

TEXISR3

TCMPR2

TISR2

TDR2


TCSR2

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

TCSR2 TCSR2 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 PRESCALE TDR_EN INTR_TRG_EN PERIODIC_SEL TOGGLE_PIN CAP_SRC WAKE_EN CTB CACT CRST MODE IE CEN DBGACK_TMR

PRESCALE : Pre-scale Counter
bits : 0 - 7 (8 bit)
access : read-write

TDR_EN : Data Load Enable\nWhen TDR_EN is set, TDR (Timer Data Register) will be updated continuously with the 24-bit up-timer 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.

INTR_TRG_EN : Inter-Timer Trigger Mode Enable\nThis bit controls if the inter-timer trigger mode is enabled.\nIf inter-timer trigger mode is enabled, the TIMER0/TIMER2 will be in counter mode and counting with external clock source or event. And, TIMER1/TIMER3 will be in trigger-counting mode of capture function.\nNote: For TIMER1 and TIMER3, this bit is ignored and the read back value is always 1'b0.
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

The inter-timer trigger mode is disabled

#1 : 1

The inter-timer trigger mode is enabled

End of enumeration elements list.

PERIODIC_SEL : Periodic Mode Behavior Selection Enable\nWhen users update TCMP, TDR will be reset to default value.
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

The behavior selection in periodic mode is disabled

#1 : 1

The behavior selection in periodic mode is enabled

End of enumeration elements list.

TOGGLE_PIN : Toggle Mode Output PIN
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Toggle mode output to Tx (Timer Event Count Pin)

#1 : 1

Toggle mode output to TxEX (Timer External Pin)

End of enumeration elements list.

CAP_SRC : Capture Function Source
bits : 22 - 22 (1 bit)
access : read-write

Enumeration:

#0 : 0

Capture Function source is from TxEX (Timer External Pin)

#1 : 1

Capture Function source is from ACMP(Analog Comparator Output)

End of enumeration elements list.

WAKE_EN : Wake up Enable\nWhen WAKE_EN is set and the TIF is set, the timer controller will generator a wake-up trigger event to CPU.
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Wake-up trigger event disable

#1 : 1

Wake-up trigger event enable

End of enumeration elements list.

CTB : Counter Mode Enable Bit \nThis bit is the counter mode enable bit. When Timer is used as an event counter, this bit should be set to 1 and Timer will work as an event counter. The counter detect phase can be selected as rising/falling edge of external pin by TX_PHASE field.
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable counter mode

#1 : 1

Enable counter mode

End of enumeration elements list.

CACT : Timer Active Status Bit (Read only)\nThis bit indicates the up-timer status.
bits : 25 - 25 (1 bit)
access : read-only

Enumeration:

#0 : 0

Timer is not active

#1 : 1

Timer is in active

End of enumeration elements list.

CRST : Timer Reset Bit\nSet this bit will reset the 24-bit up-timer, 8-bit pre-scale counter and also force CEN to 0.
bits : 26 - 26 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

Reset Timer's pre-scaled counter, internal 24-bit up-timer and CEN bit

End of enumeration elements list.

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

IE : Interrupt Enable Bit\nIf timer interrupt is enabled, the timer asserts its interrupt signal when the associated timer is equal to TCMPR.
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable timer Interrupt

#1 : 1

Enable timer Interrupt

End of enumeration elements list.

CEN : Timer Enable Bit
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops/Suspends counting

#1 : 1

Starts counting

End of enumeration elements list.

DBGACK_TMR : ICE debug mode acknowledge Disable (write-protected)\nTIMER counter will keep going no matter ICE debug mode acknowledged or not.
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

ICE debug mode acknowledgement effects TIMER counting

#1 : 1

ICE debug mode acknowledgement disabled

End of enumeration elements list.


TCAP2

Timer2 Capture Data Register
address_offset : 0x10 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TCAP2 TCAP2 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 TCAP

TCAP : Timer Capture Data Register\nWhen TEXEN (TEXCON[3]) is set, RSTCAPSEL (TTXCON[4]) is 0, and the transition on the TEX pins associated TEX_EDGE(TEXCON[2:1]) setting is occurred, the internal 24-bit up-timer value will be loaded into TCAP. User can read this register for the counter value.
bits : 0 - 23 (24 bit)
access : read-only


TEXCON2

Timer2 External Control Register
address_offset : 0x14 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TEXCON2 TEXCON2 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 TX_PHASE TEX_EDGE TEXEN RSTCAPSEL TEXIEN TEXDB TCDB

TX_PHASE : Timer External Count Phase \nThis bit indicates the external count pin phase.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

A falling edge of external count pin will be counted

#1 : 1

A rising edge of external count pin will be counted

End of enumeration elements list.

TEX_EDGE : Timer External Pin Edge Detect
bits : 1 - 2 (2 bit)
access : read-write

Enumeration:

#00 : 0

a 1 to 0 transition on TEX will be detected

#01 : 1

a 0 to 1 transition on TEX will be detected

#10 : 2

either 1 to 0 or 0 to 1 transition on TEX will be detected

#11 : 3

Reserved

End of enumeration elements list.

TEXEN : Timer External Pin Enable. \nThis bit enables the reset/capture function on the TEX pin.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

The TEX pin will be ignored

#1 : 1

The transition detected on the TEX pin will result in capture or reset of timer counter

End of enumeration elements list.

RSTCAPSEL : Timer External Reset Counter / Capture mode select
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

TEX transition is using as the timer capture function

#1 : 1

TEX transition is using as the timer counter reset function

End of enumeration elements list.

TEXIEN : Timer External interrupt Enable Bit
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable timer External Interrupt

#1 : 1

Enable timer External Interrupt

End of enumeration elements list.

TEXDB : Timer External Capture pin De-bounce enable bit\nIf this bit is enabled, the edge of T0EX~T3EX pin is detected with de-bounce circuit.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable De-bounce

#1 : 1

Enable De-bounce

End of enumeration elements list.

TCDB : Timer Counter pin De-bounce enable bit\nIf this bit is enabled, the edge of T0~T3 pin is detected with de-bounce circuit.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable De-bounce

#1 : 1

Enable De-bounce

End of enumeration elements list.


TEXISR2

Timer2 External Interrupt Status Register
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TEXISR2 TEXISR2 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 TEXIF

TEXIF : Timer External Interrupt Flag\nThis bit indicates the external interrupt status of Timer.\nThis bit is set by hardware when TEXEN (TEXCON[3]) is to 1,and the transition on the TEX pins associated TEX_EDGE(TEXCON[2:1]) setting is occurred. It is cleared by writing 1 to this bit.
bits : 0 - 0 (1 bit)
access : read-write


TCSR3

Timer3 Control and Status Register
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TCMPR3

Timer3 Compare Register
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TISR3

Timer3 Interrupt Status Register
address_offset : 0x28 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TDR3

Timer3 Data Register
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TCAP3

Timer3 Capture Data Register
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TEXCON3

Timer3 External Control Register
address_offset : 0x34 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TEXISR3

Timer3 External Interrupt Status Register
address_offset : 0x38 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

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

TCMPR2

Timer2 Compare Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TCMPR2 TCMPR2 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 TCMP

TCMP : Timer Compared Value\nNote1: Never write 0x0 or 0x1 in TCMP, or the core will run into unknown state.\nNote2: When timer is operating at continuous counting mode, the 24-bit up-timer will count continuously if software writes a new value into TCMP. If timer is operating at other modes, the 24-bit up-timer will restart counting and using newest TCMP value to be the compared value if software writes a new value into TCMP.
bits : 0 - 23 (24 bit)
access : read-write


TISR2

Timer2 Interrupt Status Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TISR2 TISR2 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\nThis bit indicates the interrupt status of Timer.\nTIF bit is set by hardware when the up counting value of internal 24-bit timer matches the timer compared value (TCMP). It is cleared by writing 1 to this bit.
bits : 0 - 0 (1 bit)
access : read-write


TDR2

Timer2 Data Register
address_offset : 0xC Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0

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

TDR : Timer Data Register User can read TDR for getting current 24- bits up event counter value if TCSR[24] is 1
bits : 0 - 23 (24 bit)
access : read-only



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.