\n
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
Timer0 Control and Status Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PRESCALE : Pre-Scale Counter\n
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.\n
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Timer Data Register update Disabled
#1 : 1
Timer Data Register update Enabled
End of enumeration elements list.
PERIOD2 : PERIOD2 Enable Bit\n
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
In One-shout or Periodic mode, when write new TCMP, timer counter will reset
#1 : 1
In One-shout or Periodic mode, when write new TCMP
End of enumeration elements list.
TOUT : Toggle Out Pin Selection\nWhen Timer is set to toggle mode,\n
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Time0/1 toggle output pin is T0/T1 pin
#1 : 1
Time0/1 toggle output pin is T0EX/T1EX pin
End of enumeration elements list.
CAPS : Capture Trigger Source Selection\n
bits : 19 - 19 (1 bit)
access : read-write
Enumeration:
#0 : 0
Time0/1 capture mode trigger input source is T0EX/T1EX pin
#1 : 1
Time0/1 capture mode trigger input source is ACMP0/ACMP1 output
End of enumeration elements list.
WAKE_EN : Wake-Up Enable\nWhen WAKE_EN is set and the TIF or TEXIF is set, the timer controller will generator a wake-up trigger event to CPU.\n
bits : 23 - 23 (1 bit)
access : read-write
Enumeration:
#0 : 0
Wake-up trigger event Disabled
#1 : 1
Wake-up trigger event Enabled
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.\n
bits : 24 - 24 (1 bit)
access : read-write
Enumeration:
#0 : 0
Counter mode Disabled
#1 : 1
Counter mode Enabled
End of enumeration elements list.
CACT : Timer Active Status Bit (Read only)\nThis bit indicates the up-timer status.\n
bits : 25 - 25 (1 bit)
access : read-only
Enumeration:
#0 : 0
Timer not active
#1 : 1
Timer 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.\n
bits : 26 - 26 (1 bit)
access : read-write
Enumeration:
#0 : 0
No effect
#1 : 1
Timer's 8-bit pre-scale counter, internal 24-bit up-timer and CEN bit reset
End of enumeration elements list.
MODE : Timer Operating Mode\n
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 up-timer value is equal to TCMPR.
bits : 29 - 29 (1 bit)
access : read-write
Enumeration:
#0 : 0
Timer Interrupt Disabled
#1 : 1
Timer Interrupt Enabled
End of enumeration elements list.
CEN : Timer Enable Bit\n
bits : 30 - 30 (1 bit)
access : read-write
Enumeration:
#0 : 0
Counting stopped/suspended
#1 : 1
Counting started
End of enumeration elements list.
DBGACK_TMR : ICE Debug Mode Acknowledge Disable (Write-protection Bit)\nThe TIMER counter will be held while ICE Debug mode acknowledged.
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.
Timer0 Capture Data Register
address_offset : 0x10 Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
TCAP : Timer Capture Data Register\nWhen TEXEN (TEXCON[3]) is set, RSTCAPN (TEXCON[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
Timer0 External Control Register
address_offset : 0x14 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
TX_PHASE : Timer External Count Phase\nThis bit indicates the external count pin phase.\n
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 Detection\n
bits : 1 - 2 (2 bit)
access : read-write
TEXEN : Timer External Pin Enable\nThis bit enables the reset/capture function on the TEX pin.\n
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.
RSTCAPN : Timer External Reset Counter / Capture Mode Selection\n
bits : 4 - 4 (1 bit)
access : read-write
Enumeration:
#0 : 0
TEX transition is used as the timer capture function
#1 : 1
TEX transition is used as the timer counter reset function
End of enumeration elements list.
TEXIEN : Timer External Interrupt Enable Bit\n
bits : 5 - 5 (1 bit)
access : read-write
Enumeration:
#0 : 0
Timer External Interrupt Disabled
#1 : 1
Timer External Interrupt Enabled
End of enumeration elements list.
TEXDB : Timer External Capture Pin De-bounce Enable Bit\nIf this bit is enabled, the edge of TEX pin is detected with de-bounce circuit.
bits : 6 - 6 (1 bit)
access : read-write
Enumeration:
#0 : 0
De-bounce Disabled
#1 : 1
De-bounce Enabled
End of enumeration elements list.
TCDB : Timer Counter Pin De-bounce Enable Bit\nIf this bit is enabled, the edge of T0~T1 pin is detected with de-bounce circuit.
bits : 7 - 7 (1 bit)
access : read-write
Enumeration:
#0 : 0
De-bounce Disabled
#1 : 1
De-bounce Enabled
End of enumeration elements list.
CAP_MODE : Capture Mode Selection\n
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
Timer counter reset function or free-counting mode of timer capture function
#1 : 1
Trigger-counting mode of timer capture function
End of enumeration elements list.
Timer0 External Interrupt Status Register
address_offset : 0x18 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
TEXIF : Timer External Interrupt Flag\nThis bit indicates the external interrupt status of the timer.\nThis bit is set by hardware when TEXEN (TEXCON[3]) is to 1, and the transition on the TEX pins associated with TEX_EDGE (TEXCON[2:1]) setting occurred. Software can write 1 to clear this bit.\n
bits : 0 - 0 (1 bit)
access : read-write
Timer1 Control and Status Register
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 Compare Register
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 Interrupt Status Register
address_offset : 0x28 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 Data Register
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 Capture Data Register
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 External Control Register
address_offset : 0x34 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer1 External Interrupt Status Register
address_offset : 0x38 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
Timer0 Compare Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
TCMP : Timer Compared Value\nNote1: Never write 0 or 1 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
Timer0 Interrupt Status Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
TIF : Timer Interrupt Flag\nThis bit indicates the interrupt status of timer.\n
bits : 0 - 0 (1 bit)
access : read-write
TWF : Timer Wake-up Flag\nIf timer causes CPU wakes up from power-down mode, this bit will be set to high.\nSoftware can write 1 to clear this bit.\n
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Timer does not cause CPU wake-up
#1 : 1
CPU wakes up from sleep or power-down mode by timer time-out
End of enumeration elements list.
Timer0 Data Register
address_offset : 0xC Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
TDR : Timer Data Register\nThis field indicates the current count value.
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 Embeetle, an IDE designed from scratch for embedded software developers.