\n

TIMER

Peripheral Memory Blocks

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

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

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

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

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

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

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

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

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

Registers

TIMER5_CTL

TIMER5_CAP

TIMER5_EXTCTL

TIMER5_EINTSTS

TIMER5_TRGCTL

TIMER5_CMP

TIMER5_PWMCTL

TIMER5_PWMCLKPSC

TIMER5_PWMCNTCLR

TIMER5_PWMPERIOD

TIMER5_PWMCMPDAT

TIMER5_PWMCNT

TIMER5_PWMPOLCTL

TIMER5_PWMPOEN

TIMER5_INTSTS

TIMER5_PWMINTEN0

TIMER5_PWMINTSTS0

TIMER5_PWMTRGCTL

TIMER5_PWMSTATUS

TIMER5_PWMPBUF

TIMER5_PWMCMPBUF

TIMER5_CNT


TIMER5_CTL

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

TIMER5_CTL TIMER5_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 FUNCSEL INTRGEN PERIOSEL TGLPINSEL CAPSRC WKEN EXTCNTEN ACTSTS OPMODE INTEN CNTEN ICEDEBUG

PSC : Prescale Counter Note: Update prescale counter value will reset internal 8-bit prescale counter and 24-bit up counter value.
bits : 0 - 7 (8 bit)
access : read-write

FUNCSEL : Function Selection This bit sets the operation mode of Timer4 and Timer5 to PWM function.
bits : 15 - 15 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer controller is used as timer function

#1 : 1

Timer controller is used as PWM function

End of enumeration elements list.

INTRGEN : Inter-timer Trigger Mode Enable Bit Setting this bit will enable the inter-timer trigger capture function. The Timer0/2/4 will be in event counter mode and counting with external clock source or event.Also, Timer1/3/5 will be in trigger-counting mode of capture function. Note: For Timer1/3/5, this bit is ignored and the read back value is always 0.
bits : 19 - 19 (1 bit)
access : read-write

Enumeration:

#0 : 0

Inter-Timer Trigger Capture mode Disabled

#1 : 1

Inter-Timer Trigger Capture mode Enabled

End of enumeration elements list.

PERIOSEL : Periodic Mode Behavior Selection Enable Bit If updated CMPDAT value CNT, CNT 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.

TGLPINSEL : Toggle-output Pin Select
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Toggle mode output to TMx (Timer Event Counter Pin)

#1 : 1

Toggle mode output to TMx_EXT (Timer External Capture Pin)

End of enumeration elements list.

CAPSRC : Capture Pin Source Selection Note 2: MIRC clock source is only available in Timer4 ~ Timer5.
bits : 22 - 22 (1 bit)
access : read-write

Enumeration:

#0 : 0

Capture Function source is from TMx_EXT (x= 0~5) pin

#1 : 1

Capture Function source is from internal ACMP output signal, internal clock source (HIRC, LIRC, MIRC) or external clock (HXT, LXT)

End of enumeration elements list.

WKEN : Wake-up Function Enable Bit If this bit is set to 1, while timer interrupt flag TIF (TIMERx_INTSTS[0]) is 1 and INTEN (TIMERx_CTL[29]) is enabled, the timer interrupt signal will generate a wake-up trigger event to CPU.
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Wake-up function Disabled if timer interrupt signal generated

#1 : 1

Wake-up function Enabled if timer interrupt signal generated

End of enumeration elements list.

EXTCNTEN : Event Counter Mode Enable Bit This bit is for external counting pin function enabled. Note: When timer is used as an event counter, this bit should be set to 1 and select PCLK as timer clock source.
bits : 24 - 24 (1 bit)
access : read-write

Enumeration:

#0 : 0

Event counter mode Disabled

#1 : 1

Event counter mode Enabled

End of enumeration elements list.

ACTSTS : Timer Active Status Bit (Read Only) This bit indicates the 24-bit up counter status. Note: This bit may active when CNT 0 transition to CNT 1.
bits : 25 - 25 (1 bit)
access : read-only

Enumeration:

#0 : 0

24-bit up counter is not active

#1 : 1

24-bit up counter is active

End of enumeration elements list.

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

Enumeration:

#00 : 0

The timer controller is operated in One-shot mode

#01 : 1

The timer controller is operated in Periodic mode

#10 : 2

The timer controller is operated in Toggle-output mode

#11 : 3

The timer controller is operated in Continuous Counting mode

End of enumeration elements list.

INTEN : Timer Interrupt Enable Bit Note: If this bit is enabled, when the timer time-out interrupt flag TIF is set to 1, the timer interrupt signal is generated and inform to CPU.
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer time-out interrupt Disabled

#1 : 1

Timer time-out interrupt Enabled

End of enumeration elements list.

CNTEN : Timer Counting Enable Bit Note 3: Set enable/disable this bit needs 2 * TMR_CLK period to become active, user can read ACTSTS (TIMERx_CTL[25]) to check enable/disable command is completed or not.
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

Stops/Suspends counting

#1 : 1

Starts counting

End of enumeration elements list.

ICEDEBUG : ICE Debug Mode Acknowledge Disable Bit (Write Protect) TIMER counter will keep going no matter CPU is held by ICE or not. Note: This bit is write protected. Refer to the SYS_REGLCTL register.
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.


TIMER5_CAP

Timer5 Capture Data Register
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TIMER5_CAP TIMER5_CAP 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 CAPDAT

CAPDAT : Timer Capture Data Register When CAPEN (TIMERx_EXTCTL[3]) bit is set, the transition on the capture source matches the CAPEDGE (TIMERx_EXTCTL[14:12]) setting, CAPIF (TIMERx_EINTSTS[0]) will be set to 1 and the current timer counter value CNT (TIMERx_CNT[23:0]) will be auto-loaded into this CAPDAT field.
bits : 0 - 23 (24 bit)
access : read-only


TIMER5_EXTCTL

Timer5 External Control Register
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_EXTCTL TIMER5_EXTCTL 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 CNTPHASE CAPEN CAPFUNCS CAPIEN CAPDBEN CNTDBEN INTERCAPSEL CAPEDGE ECNTSSEL CAPDIVSCL

CNTPHASE : Timer External Count Phase
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

A falling edge of external counting pin will be counted

#1 : 1

A rising edge of external counting pin will be counted

End of enumeration elements list.

CAPEN : Timer Capture Function Enable Bit This bit enables the capture input function.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer capture function Disabled

#1 : 1

Timer capture function Enabled

End of enumeration elements list.

CAPFUNCS : Capture Function Selection Note 1: When CAPFUNCS is 0 and CAPIF becomes 1, the current 24-bit timer counter value (CNT value) will be saved to CAPDAT field. Note 2: When CAPFUNCS is 1 and CAPIF becomes 1, the current 24-bit timer counter value (CNT value) will be saved to CAPDAT field then CNT value will be reset immediately.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Capture Mode Enabled

#1 : 1

Reset Mode Enabled

End of enumeration elements list.

CAPIEN : Timer Capture Interrupt Enable Bit
bits : 5 - 5 (1 bit)
access : read-write

Enumeration:

#0 : 0

TMx_EXT (x= 0~5) pin, ACMP, internal clock, or external clock detection Interrupt Disabled

#1 : 1

TMx_EXT (x= 0~5) pin, ACMP, internal clock, or external clock detection Interrupt Enabled

End of enumeration elements list.

CAPDBEN : Timer Capture De-bounce Enable Bit Note: If this bit is enabled, the edge detection of TMx_EXT pin or ACMP output is detected with de-bounce circuit.
bits : 6 - 6 (1 bit)
access : read-write

Enumeration:

#0 : 0

TMx_EXT (x= 0~5) pin de-bounce or ACMP output de-bounce Disabled

#1 : 1

TMx_EXT (x= 0~5) pin de-bounce or ACMP output de-bounce Enabled

End of enumeration elements list.

CNTDBEN : Timer External Counter Pin De-bounce Enable Bit Note: If this bit is enabled, the edge detection of TMx pin is detected with de-bounce circuit.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

TMx (x= 0~5) pin de-bounce Disabled

#1 : 1

TMx (x= 0~5) pin de-bounce Enabled

End of enumeration elements list.

INTERCAPSEL : Internal Capture Source Select Note: These bits only available when CAPSRC (TIMERx_CTL[22]) is 1.
bits : 8 - 10 (3 bit)
access : read-write

Enumeration:

#000 : 0

Capture Function source is from internal ACMP0 output signal

#001 : 1

Capture Function source is from internal ACMP1 output signal

#010 : 2

Capture Function source is from HXT

#011 : 3

Capture Function source is from LXT

#100 : 4

Capture Function source is from HIRC

#101 : 5

Capture Function source is from LIRC

#110 : 6

Capture Function source is from MIRC, only available in Timer4 and Timer5

#111 : 7

Reserved.

End of enumeration elements list.

CAPEDGE : Timer Capture Edge Detect When the first capture event is generated, the CNT (TIMERx_CNT[23:0]) will be reset to 0 and first CAPDAT (TIMERx_CAP[23:0]) should be to 0. Note: Set CAPSRC (TIMERx_CTL[22]) and INTERCAPSEL (TIMERx_EXTCTL[10:8]) to select capture source.
bits : 12 - 14 (3 bit)
access : read-write

Enumeration:

#000 : 0

Capture event occurred when detect falling edge transfer on capture source

#001 : 1

Capture event occurred when detect rising edge transfer on capture source

#010 : 2

Capture event occurred when detect both falling and rising edge transfer on capture source, and the first capture event occurred at falling edge transfer

#011 : 3

Capture event occurred when detect both rising and falling edge transfer on capture source, and the first capture event occurred at rising edge transfer

#110 : 6

First capture event occurred at falling edge, follows capture events are at rising edge transfer on capture source

#111 : 7

First capture event occurred at rising edge, follows capture events are at falling edge transfer on capture source

End of enumeration elements list.

ECNTSSEL : Event Counter Source Selection to Trigger Event Counter Function
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

Event Counter input source is from TMx (x= 0~5) pin

#1 : 1

Event Counter input source is from USB internal SOF output signal

End of enumeration elements list.

CAPDIVSCL : Timer Capture Source Divider Scale These bits indicate the divide scale for capture source divider. Note: Sets INTERCAPSEL (TIMERx_EXTCTL[10:8]) and CAPSRC (TIMERx_CTL[22]) to select capture source.
bits : 28 - 31 (4 bit)
access : read-write

Enumeration:

#0000 : 0

Capture source/1

#0001 : 1

Capture source/2

#0010 : 2

Capture source/4

#0011 : 3

Capture source/8

#0100 : 4

Capture source/16

#0101 : 5

Capture source/32

#0110 : 6

Capture source/64

#0111 : 7

Capture source/128

#1000 : 8

Capture source/256

End of enumeration elements list.


TIMER5_EINTSTS

Timer5 External Interrupt Status Register
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_EINTSTS TIMER5_EINTSTS 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 CAPIF

CAPIF : Timer Capture Interrupt Flag This bit indicates the timer capture interrupt flag status. Note 1: This bit is cleared by writing 1 to it. Note 2: When the CAPEN (TIMERx_EXTCTL[3]) bit is set, the transition on the capture source matches the CAPEDGE (TIMERx_EXTCTL[14:12]) setting, this bit will be set to 1 by hardware. Note 3: There is a new incoming capture event detected before CPU clearing the CAPIF status. If the above condition occurred, the timer will keep register TIMERx_CAP unchanged and drop the new capture value.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

TMx_EXT (x= 0~5) pin, ACMP, internal clock, or external clock capture interrupt did not occur

#1 : 1

TMx_EXT (x= 0~5) pin, ACMP, internal clock, or external clock capture interrupt occurred

End of enumeration elements list.


TIMER5_TRGCTL

Timer5 Trigger Control Register
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_TRGCTL TIMER5_TRGCTL 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 TRGSSEL TRGPWM TRGEADC TRGDAC TRGPDMA

TRGSSEL : Trigger Source Select Bit This bit is used to select internal trigger source is form timer time-out interrupt signal or capture interrupt signal.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Time-out interrupt signal is used to internal trigger EPWM/BPWM, PDMA, DAC, and EADC

#1 : 1

Capture interrupt signal is used to internal trigger EPWM/BPWM, PDMA, DAC, and EADC

End of enumeration elements list.

TRGPWM : Trigger EPWM and BPWM Enable Bit If this bit is set to 1, each timer time-out event or capture event can be as EPWM and BPWM counter clock source.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer interrupt trigger EPWM and BPWM Disabled

#1 : 1

Timer interrupt trigger EPWM and BPWM Enabled

End of enumeration elements list.

TRGEADC : Trigger EADC Enable Bit If this bit is set to 1, each timer time-out event or capture event can be triggered EADC conversion.
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer interrupt trigger EADC Disabled

#1 : 1

Timer interrupt trigger EADC Enabled

End of enumeration elements list.

TRGDAC : Trigger DAC Enable Bit If this bit is set to 1, each timer time-out event or capture event can be triggered DAC.
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer interrupt trigger DAC Disabled

#1 : 1

Timer interrupt trigger DAC Enabled

End of enumeration elements list.

TRGPDMA : Trigger PDMA Enable Bit If this bit is set to 1, each timer time-out event or capture event can be triggered PDMA transfer.
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer interrupt trigger PDMA Disabled

#1 : 1

Timer interrupt trigger PDMA Enabled

End of enumeration elements list.


TIMER5_CMP

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

TIMER5_CMP TIMER5_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 Comparator Value CMPDAT is a 24-bit compared value register. When the internal 24-bit up counter value is equal to CMPDAT value, the TIF (TIMERx_INTSTS[0] Timer Interrupt Flag) will be set to 1. Note 1: Never write 0x0 or 0x1 in CMPDAT field, or the core will run into unknown state. Note 2: When timer is operating in continuous counting mode, the 24-bit up counter will keep counting continuously even if user writes a new value into CMPDAT field. But if timer is operating at other modes, the 24-bit up counter will restart counting from 0 and use the newest CMPDAT value to be the timer compared value while user writes a new value into the CMPDAT field.
bits : 0 - 23 (24 bit)
access : read-write


TIMER5_PWMCTL

Timer5 PWM Control Register
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCTL TIMER5_PWMCTL 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 CNTEN CNTTYPE CNTMODE CTRLD IMMLDEN WKEN OUTMODE DBGHALT DBGTRIOFF

CNTEN : PWM Counter Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM counter and clock prescale Stop Running

#1 : 1

PWM counter and clock prescale Start Running

End of enumeration elements list.

CNTTYPE : PWM Counter Behavior Type These bits are used to set the count type of Timer0 ~ Timer3. The count type of Timer4 and Timer5 is fixed as the up count type. Note: These bits are not available in Timer4 and Timer5.
bits : 1 - 2 (2 bit)
access : read-write

Enumeration:

#00 : 0

Up count type

#01 : 1

Down count type

#10 : 2

Up-down count type

#11 : 3

Reserved.

End of enumeration elements list.

CNTMODE : PWM Counter Mode
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Auto-reload mode

#1 : 1

One-shot mode

End of enumeration elements list.

CTRLD : Center Re-load In up-down count type, PERIOD will load to PBUF when current PWM period is completed always and CMP will load to CMPBUF at the center point of current period. Note: This bit is not available in Timer4 and Timer5.
bits : 8 - 8 (1 bit)
access : read-write

IMMLDEN : Immediately Load Enable Bit Note 1: This bit is not available in Timer4 and Timer5. Note 2: If IMMLDEN is enabled, CTRLD will be invalid.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

PERIOD will load to PBUF when current PWM period is completed no matter CTRLD is enabled/disabled. If CTRLD is disabled, CMP will load to CMPBUF when current PWM period is completed if CTRLD is enabled in up-down count type, CMP will load to CMPBUF at the center point of current period

#1 : 1

PERIOD/CMP will load to PBUF/CMPBUF immediately when user update PERIOD/CMP

End of enumeration elements list.

WKEN : PWM Wake-up Enable Bit If this bit is set to 1, the Timer4 and Timer5 PWM interrupt event will generate a wake-up trigger event to CPU. Note: This bit is only available in Timer4 and Timer5.
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM interrupt wake-up Disabled

#1 : 1

PWM interrupt wake-up Enabled

End of enumeration elements list.

OUTMODE : PWM Output Mode This bit controls the output mode of corresponding PWM channel. Note: This bit is not available in Timer4 and Timer5.
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM independent mode

#1 : 1

PWM complementary mode

End of enumeration elements list.

DBGHALT : ICE Debug Mode Counter Halt (Write Protect) If debug mode counter halt is enabled, PWM counter will keep current value until exit ICE debug mode. Note: This bit is write protected. Refer toSYS_REGLCTL register.
bits : 30 - 30 (1 bit)
access : read-write

Enumeration:

#0 : 0

ICE debug mode counter halt disable

#1 : 1

ICE debug mode counter halt enable

End of enumeration elements list.

DBGTRIOFF : ICE Debug Mode Acknowledge Disable Bit (Write Protect) PWM output pin will keep output no matter ICE debug mode acknowledged or not. Note: This bit is write protected. Refer toSYS_REGLCTL register.
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

ICE debug mode acknowledgement effects PWM output

#1 : 1

ICE debug mode acknowledgement disabled

End of enumeration elements list.


TIMER5_PWMCLKPSC

Timer5 PWM Counter Clock Pre-scale Register
address_offset : 0x48 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCLKPSC TIMER5_PWMCLKPSC 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 CLKPSC

CLKPSC : PWM Counter Clock Pre-scale The active clock of PWM counter is decided by counter clock prescale and divided by (CLKPSC + 1). If CLKPSC is 0, then there is no scaling in PWM counter clock source. Note: The valid value is 12-bit TIMERx_PWMCLKPSC[11:0] in Timer0 ~ Timer3, and 8-bit TIMERx_PWMCLKPSC[7:0] in Timer4 and Timer5.
bits : 0 - 11 (12 bit)
access : read-write


TIMER5_PWMCNTCLR

Timer5 PWM Clear Counter Register
address_offset : 0x4C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCNTCLR TIMER5_PWMCNTCLR 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 CNTCLR

CNTCLR : Clear PWM Counter Control Bit It is automatically cleared by hardware.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

In Timer0 ~ Timer3, clears 16-bit PWM counter to 0x10000 in up and up-down count type and reset counter value to PERIOD in down count type. In Timer4 and Timer5, clears 16-bit PWM counter to 0x0 in up count type

End of enumeration elements list.


TIMER5_PWMPERIOD

Timer5 PWM Period Register
address_offset : 0x50 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMPERIOD TIMER5_PWMPERIOD 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 PERIOD

PERIOD : PWM Period Register In up count type: PWM counter counts from 0 to PERIOD, and restarts from 0. In down count type: PWM counter counts from PERIOD to 0, and restarts from PERIOD. In up-down count type: PWM counter counts from 0 to PERIOD, then decrements to 0 and repeats again. In up and down count type: Note 1: The count type of Timer4 and Timer5 is fixed as up count type. Note 2: User should take care DIRF (TIMERx_PWMCNT[16]) bit in up/down/up-down count type to monitor current counter direction in each count type in Timer0 ~ Timer3.
bits : 0 - 15 (16 bit)
access : read-write


TIMER5_PWMCMPDAT

Timer5 PWM Comparator Register
address_offset : 0x54 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCMPDAT TIMER5_PWMCMPDAT 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 CMP

CMP : PWM Comparator Register PWM CMP is used to compare with PWM CNT to generate PWM output waveform, interrupt events and trigger EADC and PDMA to start conversion.
bits : 0 - 15 (16 bit)
access : read-write


TIMER5_PWMCNT

Timer5 PWM Counter Register
address_offset : 0x5C Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCNT TIMER5_PWMCNT 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 CNT DIRF

CNT : PWM Counter Value Register (Read Only) User can monitor CNT to know the current counter value in 16-bit period counter.
bits : 0 - 15 (16 bit)
access : read-only

DIRF : PWM Counter Direction Indicator Flag (Read Only) Note 1: This indicator flag is used for Timer0 ~ Timer3 only. Note 2: Since the count type of Timer4 ~ Timer5 is fixed as up count, this bit is fixed 0 in Timer4 and Timer5.
bits : 16 - 16 (1 bit)
access : read-only

Enumeration:

#0 : 0

Counter is active in down count

#1 : 1

Counter is active up count

End of enumeration elements list.


TIMER5_PWMPOLCTL

Timer5 PWM Pin Output Polar Control Register
address_offset : 0x74 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMPOLCTL TIMER5_PWMPOLCTL 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 PINV0 PINV1

PINV0 : PWMx_CH0 Output Pin Polar Control Bit The bit is used to control polarity state of PWMx_CH0 output pin.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWMx_CH0 output pin polar inverse Disabled

#1 : 1

PWMx_CH0 output pin polar inverse Enabled

End of enumeration elements list.

PINV1 : PWMx_CH1 Output Pin Polar Control Bit The bit is used to control polarity state of PWMx_CH1 output pin. Note: This bit is not available in Timer4 and Timer5.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWMx_CH1 output pin polar inverse Disabled

#1 : 1

PWMx_CH1 output pin polar inverse Enabled

End of enumeration elements list.


TIMER5_PWMPOEN

Timer5 PWM Pin Output Enable Register
address_offset : 0x78 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMPOEN TIMER5_PWMPOEN 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 POEN0 POEN1 POSEL

POEN0 : PWMx_CH0 Output Pin Enable Bit
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWMx_CH0 pin at tri-state mode

#1 : 1

PWMx_CH0 pin in output mode

End of enumeration elements list.

POEN1 : PWMx_CH1 Output Pin Enable Bit Note: This bit is not available in Timer4 and Timer5.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWMx_CH1 pin at tri-state mode

#1 : 1

PWMx_CH1 pin in output mode

End of enumeration elements list.

POSEL : PWMx_CH0 Output Pin Select This bit is used to select the output channel of Timer4 and Timer5 PWM. Note: This bit is only available in Timer4 and Timer5.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWMx_CH0 pin is TMx

#1 : 1

PWMx_CH0 pin is TMx_EXT

End of enumeration elements list.


TIMER5_INTSTS

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

TIMER5_INTSTS TIMER5_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 TWKF

TIF : Timer Interrupt Flag This bit indicates the interrupt flag status of Timer while 24-bit timer up counter CNT (TIMERx_CNT[23:0]) value reaches to CMPDAT (TIMERx_CMP[23:0]) value. Note: This bit is cleared by writing 1 to it.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

No effect

#1 : 1

CNT value matches the CMPDAT value

End of enumeration elements list.

TWKF : Timer Wake-up Flag This bit indicates the interrupt wake-up flag status of timer. Note: This bit is cleared by writing 1 to it.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timer does not cause CPU wake-up

#1 : 1

CPU wake-up from Idle or Power-down mode if timer time-out interrupt signal generated

End of enumeration elements list.


TIMER5_PWMINTEN0

Timer5 PWM Interrupt Enable Register 0
address_offset : 0x80 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMINTEN0 TIMER5_PWMINTEN0 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 ZIEN PIEN CMPUIEN CMPDIEN

ZIEN : PWM Zero Point Interrupt Enable Bit Note: This bit is not available in Timer4 and Timer5
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Zero point interrupt Disabled

#1 : 1

Zero point interrupt Enabled

End of enumeration elements list.

PIEN : PWM Period Point Interrupt Enable Bit Note: In up-down count type, period point means the center point of current PWM period.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Period point interrupt Disabled

#1 : 1

Period point interrupt Enabled

End of enumeration elements list.

CMPUIEN : PWM Compare Up Count Interrupt Enable Bit
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare up count interrupt Disabled

#1 : 1

Compare up count interrupt Enabled

End of enumeration elements list.

CMPDIEN : PWM Compare Down Count Interrupt Enable Bit Note: This bit is not available in Timer4 and Timer5
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Compare down count interrupt Disabled

#1 : 1

Compare down count interrupt Enabled

End of enumeration elements list.


TIMER5_PWMINTSTS0

Timer5 PWM Interrupt Status Register 0
address_offset : 0x88 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMINTSTS0 TIMER5_PWMINTSTS0 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 ZIF PIF CMPUIF CMPDIF

ZIF : PWM Zero Point Interrupt Flag This bit is set by hardware when TIMERx_PWM counter reaches 0. Note 1: This bit is not available in Timer4 and Timer5 Note 2: This bit is cleared by writing 1 to it.
bits : 0 - 0 (1 bit)
access : read-write

PIF : PWM Period Point Interrupt Flag This bit is set by hardware when TIMERx_PWM counter reaches PERIOD. Note 1: In up-down count type, PIF flag means the center point flag of current PWM period. Note 2: This bit is cleared by writing 1 to it.
bits : 1 - 1 (1 bit)
access : read-write

CMPUIF : PWM Compare Up Count Interrupt Flag This bit is set by hardware when TIMERx_PWM counter in up count direction and reaches CMP. Note 1: If CMP equal to PERIOD, there is no CMPUIF flag in up count type and up-down count type. Note 2: This bit is cleared by writing 1 to it.
bits : 2 - 2 (1 bit)
access : read-write

CMPDIF : PWM Compare Down Count Interrupt Flag This bit is set by hardware when TIMERx_PWM counter in down count direction and reaches CMP. Note 1: This bit is not available in Timer4 and Timer5 Note 2: If CMP equal to PERIOD, there is no CMPDIF flag in down count type. Note 3: This bit is cleared by writing 1 to it.
bits : 3 - 3 (1 bit)
access : read-write


TIMER5_PWMTRGCTL

Timer5 PWM Trigger Control Register
address_offset : 0x90 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMTRGCTL TIMER5_PWMTRGCTL 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 TRGSEL TRGEADC TRGPDMA

TRGSEL : PWM Counter Event Source Select to Trigger Conversion In Timer0 ~ Timer3,
bits : 0 - 2 (3 bit)
access : read-write

Enumeration:

#000 : 0

Trigger conversion at zero point (ZIF)

#001 : 1

Trigger conversion at period point (PIF)

#010 : 2

Trigger conversion at zero or period point (ZIF or PIF)

#011 : 3

Trigger conversion at compare up count point (CMPUIF)

#100 : 4

Trigger conversion at compare down count point (CMPDIF)

#101 : 5

Trigger conversion at period or compare up count point (PIF or CMPUIF)

End of enumeration elements list.

TRGEADC : PWM Counter Event Trigger EADC Conversion Enable Bit Note: Set TRGSEL (TIMERx_PWMTRGCTL[2:0]) to select PWM trigger conversion source.
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM counter event trigger EADC conversion Disabled

#1 : 1

PWM counter event trigger EADC conversion Enabled

End of enumeration elements list.

TRGPDMA : PWM Counter Event Trigger PDMA Conversion Enable Bit Note 1: This bit is only available in Timer4 and Timer5. Note 2: Set TRGSEL (TIMERx_PWMTRGCTL[2:0]) to select PWM trigger conversion source.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM counter event trigger PDMA Disabled

#1 : 1

PWM counter event trigger PDMA Enabled

End of enumeration elements list.


TIMER5_PWMSTATUS

Timer5 PWM Status Register
address_offset : 0x9C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMSTATUS TIMER5_PWMSTATUS 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 CNTMAXF WKF EADCTRGF PDMATRGF

CNTMAXF : PWM Counter Equal to 0xFFFF Flag Note: This bit is cleared by writing 1 to it.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

The PWM counter value never reached its maximum value 0xFFFF

#1 : 1

The PWM counter value has reached its maximum value

End of enumeration elements list.

WKF : PWM Wake-up Flag Note 1: This bit is only available in Timer4 and Timer5. Note 2: This bit is cleared by writing 1 to it.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM interrupt wake-up did not occur

#1 : 1

PWM interrupt wake-up occurred

End of enumeration elements list.

EADCTRGF : Trigger EADC Start Conversion Flag Note: This bit is cleared by writing 1 to it.
bits : 16 - 16 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM counter event trigger EADC start conversion did not occur

#1 : 1

PWM counter event trigger EADC start conversion occurred

End of enumeration elements list.

PDMATRGF : Trigger PDMA Start Conversion Flag Note 1: This bit is only available in Timer4 and Timer5. Note 2: This bit is cleared by writing 1 to it.
bits : 18 - 18 (1 bit)
access : read-write

Enumeration:

#0 : 0

PWM counter event trigger PDMA start conversion did not occur

#1 : 1

PWM counter event trigger PDMA start conversion occurred

End of enumeration elements list.


TIMER5_PWMPBUF

Timer5 PWM Period Buffer Register
address_offset : 0xA0 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMPBUF TIMER5_PWMPBUF 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 PBUF

PBUF : PWM Period Buffer Register (Read Only) Used as PERIOD active register.
bits : 0 - 15 (16 bit)
access : read-only


TIMER5_PWMCMPBUF

Timer5 PWM Comparator Buffer Register
address_offset : 0xA4 Bytes (0x0)
size : -1 bit
access : read-only
reset_value : 0x0
reset_Mask : 0x0

TIMER5_PWMCMPBUF TIMER5_PWMCMPBUF 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 CMPBUF

CMPBUF : PWM Comparator Buffer Register (Read Only) Used as CMP active register.
bits : 0 - 15 (16 bit)
access : read-only


TIMER5_CNT

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

TIMER5_CNT TIMER5_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 RSTACT

CNT : Timer Data Register Read operation. Read this register to get CNT value. For example: If EXTCNTEN (TIMERx_CTL[24]) is 0, user can read CNT value for getting current 24-bit counter value. If EXTCNTEN (TIMERx_CTL[24]) is 1, user can read CNT value for getting current 24-bit event input counter value. Write operation. Writing any value to this register will reset current CNT value to 0 and reload internal 8-bit prescale counter.
bits : 0 - 23 (24 bit)
access : read-write

RSTACT : Timer Data Register Reset Active (Read Only) This bit indicates if the counter reset operation active. When user writes this CNT register, timer starts to reset its internal 24-bit timer up-counter to 0 and reload 8-bit pre-scale counter. At the same time, timer set this flag to 1 to indicate the counter reset operation is in progress. Once the counter reset operation done, timer clear this bit to 0 automatically.
bits : 31 - 31 (1 bit)
access : read-only

Enumeration:

#0 : 0

Reset operation is done

#1 : 1

Reset operation triggered by writing TIMERx_CNT is in progress

End of enumeration elements list.



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.