| Bits | Field | Descriptions |
| [0] | TMR_EN | Timer Counter Enable Bit |
| | 0 = Stops/Suspends counting. |
| | 1 = Starts counting. |
| | Note1: Set TMR_EN to 1 enables 24-bit counter keeps up counting from the last stop counting value. |
| | Note2: This bit is auto-cleared by hardware in one-shot mode (MODE_SEL [5:4] =2'b00) once the value of 24-bit up counter equals the TMRx_CMPR. |
| [1] | SW_RST | Software Reset |
| | Set this bit will reset the timer counter, pre-scale counter and also force TMR_CTL [TMR_EN] to 0. |
| | 0 = No effect. |
| | 1 = Reset Timer's pre-scale counter, internal 24-bit up-counter and TMR_CTL [TMR_EN] bit. |
| | Note: This bit will be auto cleared and takes at least 3 TMRx_CLK clock cycles. |
| [2] | WAKE_EN | Wake-Up Enable |
| | When WAKE_EN is set and the TMR_IS or TCAP_IS is set, the timer controller will generate a wake-up trigger event to CPU. |
| | 0 = Wake-up trigger event Disabled. |
| | 1 = Wake-up trigger event Enabled. |
| [3] | DBGACK_EN | ICE Debug Mode Acknowledge Ineffective Enable |
| | 0 = ICE debug mode acknowledgement effects TIMER counting and TIMER counter will be held while ICE debug mode acknowledged. |
| | 1 = ICE debug mode acknowledgement is ineffective and TIMER counter will keep going no matter ICE debug mode acknowledged or not. |
| [5:4] | MODE_SEL | Timer Operating Mode Select |
| | 00 = The timer is operating in the one-shot mode. |
| | In this mode, the associated interrupt signal is generated (if TMR_IER [TMR_IE] is enabled) once the value of 24-bit up counter equals the TMRx_CMPR. |
| | And TMR_CTL [TMR_EN] is automatically cleared by hardware. |
| | 01 = The timer is operating in the periodic mode. |
| | In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR. |
| | After that, the 24-bit counter will be reset and starts counting from zero again. |
| | 10 = The timer is operating in the periodic mode with output toggling. |
| | In this mode, the associated interrupt signal is generated periodically (if TMR_IER [TMR_IE] is enabled) while the value of 24-bit up counter equals the TMRx_CMPR. |
| | After that, the 24-bit counter will be reset and starts counting from zero again. |
| | At the same time, timer controller will also toggle the output pin TMRx_TOG_OUT to its inverse level (from low to high or from high to low). |
| | Note: The default level of TMRx_TOG_OUT after reset is low. |
| | 11 = The timer is operating in continuous counting mode. |
| | In this mode, the associated interrupt signal is generated when TMR_DR = TMR_CMPR (if TMR_IER [TMR_IE] is enabled). |
| | However, the 24-bit up-counter counts continuously without reset. |
| [7] | TMR_ACT | Timer Active Status Bit (Read Only) |
| | This bit indicates the timer counter status of timer. |
| | 0 = Timer is not active. |
| | 1 = Timer is in active. |
| [8] | ADC_TEEN | TMR_IS Or TCAP_IS Trigger ADC Enable |
| | This bit controls if TMR_IS or TCAP_IS could trigger ADC. |
| | When ADC_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to ADC controller. |
| | When ADC_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to ADC controller. |
| | 0 = TMR_IS or TCAP_IS trigger ADC Disabled. |
| | 1 = TMR_IS or TCAP_IS trigger ADC Enabled. |
| [9] | DAC_TEEN | TMR_IS Or TCAP_IS Trigger DAC Enable |
| | This bit controls if TMR_IS or TCAP_IS could trigger DAC. |
| | When DAC_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to DAC controller. |
| | When DAC_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to DAC controller. |
| | 0 = TMR_IS or TCAP_IS trigger DAC Disabled. |
| | 1 = TMR_IS or TCAP_IS trigger DAC Enabled. |
| [10] | PDMA_TEEN | TMR_IS Or TCAP_IS Trigger PDMA Enable |
| | This bit controls if TMR_IS or TCAP_IS could trigger PDMA. |
| | When PDMA_TEEN is set, TMR_IS is set and the CAP_TRG_EN is low, the timer controller will generate an internal trigger event to PDMA controller. |
| | When PDMA_TEEN is set, TCAP_IS is set and the CAP_TRG_EN is high, the timer controller will generate an internal trigger event to PDMA controller. |
| | 0 = TMR_IS or TCAP_IS trigger PDMA Disabled. |
| | 1 = TMR_IS or TCAP_IS trigger PDMA Enabled. |
| [11] | CAP_TRG_EN | TCAP_IS Trigger Mode Enable |
| | This bit controls if the TMR_IS or TCAP_IS is used to trigger PDMA, DAC and ADC while TMR_IS or TCAP_IS is set. |
| | If this bit is low and TMR_IS is set, timer will generate an internal trigger event to PDMA, DAC or ADC while related trigger enable bit (PDMA_TEEN, DAC_TEEN or ADC_TEEN) is also set. |
| | If this bit is set high and TCAP_IS is set, timer will generate an internal trigger event to PDMA, DAC or ADC while related trigger enable bit (PDMA_TEEN, DAC_TEEN or ADC_TEEN) is also set. |
| | 0 = TMR_IS is used to trigger PDMA, DAC and ADC. |
| | 1 = TCAP_IS is used to trigger PDMA, DAC and ADC. |
| [12] | EVENT_EN | Event Counting Mode Enable |
| | When EVENT_EN is set, the increase of 24-bit up-counting timer is controlled by external event pin. |
| | While the transition of external event pin matches the definition of EVENT_EDGE, the 24-bit up-counting timer increases by 1. |
| | Or, the 24-bit up-counting timer will keep its value unchanged. |
| | 0 = Timer counting is not controlled by external event pin. |
| | 1 = Timer counting is controlled by external event pin. |
| | Note: When EVENT_EN is enabled, user can not choose EXT_TMx(GPB) as clock source. |
| | However, the speed of chosen clock must 3 times greater than the speed of EXT_TMx(GPB). |
| [13] | EVENT_EDGE | Event Counting Mode Edge Selection |
| | This bit indicates which edge of external event pin enabling the timer to increase 1. |
| | 0 = A falling edge of external event enabling the timer to increase 1. |
| | 1 = A rising edge of external event enabling the timer to increase 1. |
| [14] | EVNT_DEB_EN | External Event De-Bounce Enable |
| | When EVNT_DEB_EN is set, the external event pin de-bounce circuit will be enabled to eliminate the bouncing of the signal. |
| | In de-bounce circuit the external event pin will be sampled 4 times by TMRx_CLK. |
| | 0 = De-bounce circuit Disabled. |
| | 1 = De-bounce circuit Enabled. |
| | Note: When EVENT_EN is enabled, enable this bit is recommended. |
| | And, while EVENT_EN is disabled, disable this bit is recommended to save power consumption. |
| [16] | TCAP_EN | Tcapture Pin Functional Enable |
| | This bit controls if the transition on Tcapture pin could be used as timer counter reset function or timer capture function. |
| | 0 = The transition on Tcapture pin is ignored. |
| | 1 = The transition on Tcapture pin will result in the capture or reset of 24-bit timer counter. |
| | Note: For TMRx_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to low and the Tcapture pin transition is ignored. |
| | Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_EN will be forced to high. |
| [17] | TCAP_MODE | Tcapture Pin Function Mode Selection |
| | This bit indicates if the transition on Tcapture pin is used as timer counter reset function or timer capture function. |
| | 0 = The transition on Tcapture pin is used as timer capture function. |
| | 1 = The transition on Tcapture pin is used as timer counter reset function. |
| | Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_MODE will be forced to low. |
| [19:18] | TCAP_EDGE | Tcapture Pin Edge Detect Selection |
| | This field defines that active transition of Tcapture pin is for timer counter reset function or for timer capture function. |
| | For timer counter reset function and free-counting mode of timer capture function, the configurations are: |
| | 00 = A falling edge (1 to 0 transition) on Tcapture pin is an active transition. |
| | 01 = A rising edge (0 to 1 transition) on Tcapture pin is an active transition. |
| | 10 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions. |
| | 11 = Both falling edge (1 to 0 transition) and rising edge (0 to 1 transition) on Tcapture pin are active transitions. |
| | For trigger-counting mode of timer capture function, the configurations are: |
| | 00 = 1st falling edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd falling edge triggers 24-bit timer to stop counting. |
| | 01 = 1st rising edge on Tcapture pin triggers 24-bit timer to start counting, while 2nd rising edge triggers 24-bit timer to stop counting. |
| | 10 = Falling edge on Tcapture pin triggers 24-bit timer to start counting, while rising edge triggers 24-bit timer to stop counting. |
| | 11 = Rising edge on Tcapture pin triggers 24-bit timer to start counting, while falling edge triggers 24-bit timer to stop counting. |
| | Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the TCAP_EDGE will be forced to 11. |
| [20] | TCAP_CNT_MODE | Timer Capture Counting Mode Selection |
| | This bit indicates the behavior of 24-bit up-counting timer while TCAP_EN is set to high. |
| | If this bit is 0, the free-counting mode, the behavior of 24-bit up-counting timer is defined by MODE_SEL field. |
| | When TCAP_EN is set, TCAP_MODE is 0, and the transition of Tcapture pin matches the TCAP_EDGE setting, the value of 24-bit up-counting timer will be saved into register TMRx_TCAPn. |
| | If this bit is 1, Trigger-counting mode, 24-bit up-counting timer will be not counting and keep its value at zero. |
| | When TCAP_EN is set, TCAP_MODE is 0, and once the transition of external pin matches the 1st transition of TCAP_EDGE setting, the 24-bit up-counting timer will start counting. |
| | And then if the transition of external pin matches the 2nd transition of TCAP_EDGE setting, the 24-bit up-counting timer will stop counting. |
| | And its value will be saved into register TMRx_TCAPn. |
| | 0 = Capture with free-counting timer mode. |
| | 1 = Capture with trigger-counting timer mode. |
| | Note: For TMRx+1_CTL, if INTR_TRG_EN is set, the CAP_CNT_MOD will be forced to high, the capture with Trigger-counting Timer mode. |
| [22] | TCAP_DEB_EN | Tcapture Pin De-Bounce Enable |
| | When CAP_DEB_EN is set, the Tcapture pin de-bounce circuit will be enabled to eliminate the bouncing of the signal. |
| | In de-bounce circuit the Tcapture pin signal will be sampled 4 times by TMRx_CLK. |
| | 0 = De-bounce circuit Disabled. |
| | 1 = De-bounce circuit Enabled. |
| | Note: When TCAP_EN is enabled, enable this bit is recommended. |
| | And, while TCAP_EN is disabled, disable this bit is recommended to save power consumption. |
| [24] | INTR_TRG_EN | Inter-Timer Trigger Mode Enable |
| | This bit controls if Inter-timer Trigger mode is enabled. |
| | If Inter-timer Trigger mode is enabled, the TMRx will be in counter mode and counting with external Clock Source or event. |
| | And, TMRx+1 will be in trigger-counting mode of capture function. |
| | 0 = Inter-timer trigger mode Disabled. |
| | 1 = Inter-timer trigger mode Enabled. |
| | Note: For TMRx+1_CTL, this bit is ignored and the read back value is always 1'b0. |