\n
address_offset : 0x0 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection : not protected
address_offset : 0x54 Bytes (0x0)
size : 0x34 byte (0x0)
mem_usage : registers
protection : not protected
address_offset : 0x24 Bytes (0x0)
size : 0x1C byte (0x0)
mem_usage : registers
protection : not protected
EPWM Negative Polarity Control Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
NEGPOLAR : PWM Negative Polarity Control\nThe register bit controls polarity/active state of real PWM output.\n
bits : 0 - 5 (6 bit)
access : read-write
Enumeration:
0 : 0
PWM_CHn output is active high
1 : 1
PWM_CHn output is active low
End of enumeration elements list.
EPWM Comparator Register 0
address_offset : 0x24 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CMP : PWM Comparator Register
CMP determines the PWM Duty.
Edge-aligned mode: where xy, could be 01, 23, 45 depending on the selected PWM channel.
Note: Any write to CMPn will take effect in next PWM cycle.
bits : 0 - 15 (16 bit)
access : read-write
CMPU : PWM Comparator Register for UP Counter in Center-aligned Asymmetric Mode
CMPU PERIOD: @ up counter PWM output is keep to Max. duty.
bits : 16 - 31 (16 bit)
access : read-write
address_offset : 0x28 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x2C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x34 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
address_offset : 0x38 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EPWM Counter Register
address_offset : 0x3C Bytes (0x0)
access : read-only
reset_value : 0x0
reset_Mask : 0x0
CNT : PWM Counter Register\nUser can monitor CNT to know the current value in 16-bit down counter.
bits : 0 - 15 (16 bit)
access : read-only
CNTDIR : PWM Counter (Up/Down) Direction\n
bits : 31 - 31 (1 bit)
access : read-only
Enumeration:
#0 : 0
PWM counter is down count
#1 : 1
PWM counter is up count
End of enumeration elements list.
EPWM Clock Select Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CLKDIV : EPWM Clock Divider (9 Step Divider)\nSelect clock input for PWM timer\n
bits : 0 - 3 (4 bit)
access : read-write
Enumeration:
#0000 : 0
1 (HCLK / 2^0)
#0001 : 1
1/2 (HCLK / 2^1)
#0010 : 2
1/4 (HCLK / 2^2)
#0011 : 3
1/8 (HCLK / 2^3)
#0100 : 4
1/16 (HCLK / 2^4)
#0101 : 5
1/32 (HCLK / 2^5)
#0110 : 6
1/64 (HCLK / 2^6)
#0111 : 7
1/128 (HCLK / 2^7)
#1000 : 8
1/256 (HCLK / 2^8)
End of enumeration elements list.
EPWM Interrupt Enable Register
address_offset : 0x54 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PIEN : PWM Channel 0 Period Interrupt Enable Bit\nfor Edge-aligned and Center-aligned \n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM Period
End of enumeration elements list.
CMPUIEN0 : PWM Channel 0 UP Interrupt Enable\nUP for Center-aligned only\n
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH0 PWM UP counter reaches CMPDAT0
End of enumeration elements list.
CMPUIEN1 : PWM Channel 1 UP Interrupt Enable\nUP for Center-aligned only\n
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH1 PWM UP counter reaches CMPDAT1
End of enumeration elements list.
CMPUIEN2 : PWM Channel 2 UP Interrupt Enable Bit \nUP for Center-aligned only\n
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH2 PWM UP counter reaches CMPDAT2
End of enumeration elements list.
CMPUIEN3 : PWM Channel 3 UP Interrupt Enable\nUP for Center-aligned only\n
bits : 11 - 11 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH3 PWM UP counter reaches CMPDAT3
End of enumeration elements list.
CMPUIEN4 : PWM Channel 4 UP Interrupt Enable Bit\nUP for Center-aligned only\n
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH4 PWM UP counter reaches CMPDAT4
End of enumeration elements list.
CMPUIEN5 : PWM Channel 5 UP Interrupt Enable Bit \nUP for Center-aligned only\n
bits : 13 - 13 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH5 PWM UP counter reaches CMPDAT5
End of enumeration elements list.
BRK0IEN : Enable Fault Brake0 Interrupt\n
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabling flags BKF0 to trigger PWM interrupt
#1 : 1
Enabling flags BKF0 can trigger PWM interrupt
End of enumeration elements list.
BRK1IEN : Enable Fault Brake1 Interrupt\n
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabling flags BKF1 to trigger PWM interrupt
#1 : 1
Enabling flags BKF1 can trigger PWM interrupt
End of enumeration elements list.
CIEN : PWM Central Interrupt Enable Bit\nfor Center-aligned only \n
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM Central
End of enumeration elements list.
CMPDIEN0 : PWM Channel 0 DOWN Interrupt Enable Bit\nDOWN for Edge-aligned and Center-aligned\n
bits : 24 - 24 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH0 PWM DOWN counter reaches CMPDAT0
End of enumeration elements list.
CMPDIEN1 : PWM Channel 1 DOWN Interrupt Enable\nDOWN for Edge-aligned and Center-aligned\n
bits : 25 - 25 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH1 PWM DOWN counter reaches CMPDAT1
End of enumeration elements list.
CMPDIEN2 : PWM Channel 2 DOWN Interrupt Enable Bit\nDOWN for Edge-aligned and Center-aligned\n
bits : 26 - 26 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH2 PWM DOWN counter reaches CMPDAT2
End of enumeration elements list.
CMPDIEN3 : PWM Channel 3 DOWN Interrupt Enable Bit\nDOWN for Edge-aligned and Center-aligned\n
bits : 27 - 27 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH3 PWM DOWN counter reaches CMPDAT3
End of enumeration elements list.
CMPDIEN4 : PWM Channel 4 DOWN Interrupt Enable Bit\nDOWN for Edge-aligned and Center-aligned\n
bits : 28 - 28 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH4 PWM DOWN counter reaches CMPDAT4
End of enumeration elements list.
CMPDIEN5 : PWM Channel 5 DOWN Interrupt Enable Bit\nDOWN for Edge-aligned and Center-aligned\n
bits : 29 - 29 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enabled interrupt when EPWM_CH5 PWM DOWN counter reaches CMPDAT5
End of enumeration elements list.
EPWM Interrupt Status Register
address_offset : 0x58 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PIF : PWM Channel 0 Period Interrupt Flag\nFlag is set by hardware when PWM_PERIOD0down counter reaches zero. Software can write 1 to clear this bit.
bits : 0 - 0 (1 bit)
access : read-write
CMPUIF0 : PWM Channel 0 UP Interrupt Flag\nFlag is set by hardware when a channel 0 PWM UP counter reaches PWM_CMPDAT0. Software can write 1 to clear this bit.
bits : 8 - 8 (1 bit)
access : read-write
CMPUIF1 : PWM Channel 1 UP Interrupt Flag\nFlag is set by hardware when a channel 1 PWM UP counter reaches PWM_CMPDAT01. Software can write 1 to clear this bit.
bits : 9 - 9 (1 bit)
access : read-write
CMPUIF2 : PWM Channel 2 UP Interrupt Flag\nFlag is set by hardware when a channel 2 PWM UP counter reaches PWM_CMPDAT02. Software can write 1 to clear this bit.
bits : 10 - 10 (1 bit)
access : read-write
CMPUIF3 : PWM Channel 3 UP Interrupt Flag\nFlag is set by hardware when a channel 3 PWMUP counter reaches PWM_CMPDAT03. Software can write 1 to clear this bit.
bits : 11 - 11 (1 bit)
access : read-write
CMPUIF4 : PWM Channel 4 UP Interrupt Flag\nFlag is set by hardware when a channel 4 PWM UP counter reaches PWM_CMPDAT04. Software can write 1 to clear this bit.
bits : 12 - 12 (1 bit)
access : read-write
CMPUIF5 : PWM Channel 5 UP Interrupt Flag\nFlag is set by hardware when a channel 5 PWM UP counter reaches PWM_CMPDAT05. Software can write 1 to clear this bit.
bits : 13 - 13 (1 bit)
access : read-write
BRK0IF : PWM Brake0 Flag\nNote: Software can write 1 to clear this bit.
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM Brake does not recognize a falling signal at BKP0
#1 : 1
When PWM Brake detects a falling signal at pin BKP0, this flag will be set to high
End of enumeration elements list.
BRK1IF : PWM Brake1 Flag\nNote: Software can write 1 to clear this bit.
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM Brake does not recognize a falling signal at BKP0
#1 : 1
When PWM Brake detects a falling signal at pin BKP0, this flag will be set to high
End of enumeration elements list.
CIF : PWM Channel 0 Central Interrupt Flag\nFlag is set by hardware when a channel 0 PWM rise counter reaches PWM_PERIOD0. Software can write 1 to clear this bit.
bits : 18 - 18 (1 bit)
access : read-write
CMPDIF0 : PWM Channel 0 DOWN Interrupt Flag\nFlag is set by hardware when a channel 0 PWM DOWN counter reaches PWM_CMPDAT0. Software can write 1 to clear this bit.
bits : 24 - 24 (1 bit)
access : read-write
CMPDIF1 : PWM Channel 1 DOWN Interrupt Flag\nFlag is set by hardware when a channel 1 PWM DOWN counter reaches PWM_CMPDAT01. Software can write 1 to clear this bit.
bits : 25 - 25 (1 bit)
access : read-write
CMPDIF2 : PWM Channel 2 DOWN Interrupt Flag\nFlag is set by hardware when a channel 2 PWM DOWN counter reaches PWM_CMPDAT2. Software can write 1 to clear this bit.
bits : 26 - 26 (1 bit)
access : read-write
CMPDIF3 : PWM Channel 3 DOWN Interrupt Flag\nFlag is set by hardware when a channel 3 PWM DOWN counter reaches PWM_CMPDAT03. Software can write 1 to clear this bit.
bits : 27 - 27 (1 bit)
access : read-write
CMPDIF4 : PWM Channel 4 DOWN Interrupt Flag\nFlag is set by hardware when a channel 4 PWM DOWN counter reaches PWM_CMPDAT04. Software can write 1 to clear this bit.
bits : 28 - 28 (1 bit)
access : read-write
CMPDIF5 : PWM Channel 5 DOWN Interrupt Flag\nFlag is set by hardware when a channel 5 PWM DOWN counter reaches PWM_CMPDAT05. Software can write 1 to clear this bit.
bits : 29 - 29 (1 bit)
access : read-write
EPWM BRK Low Voltage Detect Resume Delay
address_offset : 0x5C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
DELAY : PWM BRK Low Voltage Detect Resume Delay\n12 bits Down-Counter
bits : 0 - 11 (12 bit)
access : read-write
EPWM Fault Brake Control Register
address_offset : 0x60 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
BRK0EN : Enable BKP0 Pin Trigger Fault Brake Function 0\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabling BKP1 pin can trigger brake function 1
#1 : 1
Enabling a falling at BKP1 pin can trigger brake function 1
End of enumeration elements list.
BRK1EN : Enable BKP1 Pin Trigger Fault Brake Function 1\n
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabling BKP1 pin can trigger brake function 1
#1 : 1
Enabling a falling at BKP1 pin can trigger brake function 1
End of enumeration elements list.
BK0CMP0EN : BRK0 Source From ACMP0 Enable\n
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK0CMP1EN : BRK0 Source From ACMP1 Enable\n
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK0ADCEN : BRK0 Source From ADC Enable\n
bits : 4 - 4 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK0PEN : BRK0 Source From External Pin Enable\n
bits : 5 - 5 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
SWBRK : Software Break\n
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
disable Software break and back to normal PWM function
#1 : 1
issue Software break
End of enumeration elements list.
BK1CMP0EN : BRK1 Source From ACMP0 Enable\n
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK1CMP1EN : BRK1 Source From ACMP1 Enable\n
bits : 11 - 11 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK1ADCEN : BRK1 Source From ADC Enable\n
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
BK1PEN : BRK1 Source From External Pin Enable\n
bits : 13 - 13 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
LVDBKEN : Low-level Detection Trigger PWM Brake Function 1 Enable\n
bits : 14 - 14 (1 bit)
access : read-write
Enumeration:
#0 : 0
Brake Function 1 triggered by Low-level detection Disabled
#1 : 1
Brake Function 1 triggered by Low-level detection Enabled
End of enumeration elements list.
LVDTYPE : Low-level Detection Resume Type\n
bits : 15 - 15 (1 bit)
access : read-write
Enumeration:
#0 : 0
Brake resume at BRK resume delay counter counting to 0
#1 : 1
Brake resume at period edge
End of enumeration elements list.
BKOD0 : PWM Channel 0 Brake Output Select Register\n
bits : 24 - 24 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
BKOD1 : PWM Channel 1 Brake Output Select Register\n
bits : 25 - 25 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
BKOD2 : PWM Channel 2 Brake Output Select Register\n
bits : 26 - 26 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
BKOD3 : PWM Channel 3 Brake Output Select Register\n
bits : 27 - 27 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
BKOD4 : PWM Channel 4 Brake Output Select Register\n
bits : 28 - 28 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
BKOD5 : PWM Channel 5 Brake Output Select Register\n
bits : 29 - 29 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM output low when fault brake conditions asserted
#1 : 1
PWM output high when fault brake conditions asserted
End of enumeration elements list.
NFPEN : Noise Filter for External Brake Input Pin (BRK_I) Enable\n
bits : 31 - 31 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable
#1 : 1
Enable
End of enumeration elements list.
EPWM Dead-zone Interval Register
address_offset : 0x64 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
DTCNT01 : Dead-zone Interval Register for Pair of Channel0 and Channel1 (PWM0 and PWM1 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding PWM_CLKDIV bits.
bits : 0 - 7 (8 bit)
access : read-write
DTCNT23 : Dead-zone Interval Register for Pair of Channel2 and Channel3 (PWM2 and PWM3 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding PWM_CLKDIV bits.
bits : 8 - 15 (8 bit)
access : read-write
DTCNT45 : Dead-zone Interval Register for Pair of Channel4 and Channel5 (PWM4 and PWM5 Pair)\nThese 8 bits determine dead-zone length.\nThe unit time of dead-zone length is received from corresponding PWM_CLKDIV bits.
bits : 16 - 23 (8 bit)
access : read-write
EPWM Trigger ADC Control Register 0
address_offset : 0x68 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CDTRGEN0 : Enable PWM Trigger ADC Function While Channel0's Counter Matching PWM_CMPDAT0in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
ZPTRGEN : Enable PWM Trigger ADC Function While Channel0's Counter Matching 0 (Zero Point)\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN0 : Enable PWM Trigger ADC Function While Channel0's Counter Matching PWM_CMPDAT0in Up-count Direction\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
PTRGEN : Enable PWM Trigger ADC Function While Channel0's Counter Matching Period\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CDTRGEN1 : Enable PWM Trigger ADC Function While Channel1's Counter Matching CMP1 in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN1 : Enable PWM Trigger ADC Function While Channel1's Counter Matching CMP1 In Up-count Direction
Note: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CDTRGEN2 : Enable PWM Trigger ADC Function While Channel2's Counter Matching CMP2 in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN2 : Enable PWM Trigger ADC Function While Channel2's Counter Matching CMP2 In Up-count Direction
Note: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CDTRGEN3 : Enable PWM Trigger ADC Function While Channel3's Counter Matching CMP3 in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 24 - 24 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN3 : Enable PWM Trigger ADC Function While Channel3's Counter Matching CMP3 in Up-count Direction\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 26 - 26 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
EPWM Trigger ADC Control Register 1
address_offset : 0x6C Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CDTRGEN4 : Enable PWM Trigger ADC Function While Channel4's Counter Matching CMP4 in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN4 : Enable PWM Trigger ADC Function While Channel4's Counter Matching CMP4 in Up-count Direction\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CDTRGEN5 : Enable PWM Trigger ADC Function While Channel5's Counter Matching CMP5 in Down-count Direction\nNote: This bit is valid for both center aligned mode and edged aligned mode.
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
CUTRGEN5 : Enable PWM Trigger ADC Function While Channel5's Counter Matching CMP5 in Up-count Direction\nNote: This bit is only valid for PWM in center aligned mode. When PWM is in edged aligned mode, setting this bit is meaningless and will not take any effect.
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disabled
#1 : 1
Enabled
End of enumeration elements list.
EPWM Trigger ADC Status Register 0
address_offset : 0x70 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CDTRGF0 : ADC Trigger Flag by Counting Down to CMP\nNote: Software can write 1 to clear this bit.
bits : 0 - 0 (1 bit)
access : read-write
ZPTRGF : ADC Trigger Flag By Counting to 0 (Zero Point)
Note: Software can write 1 to clear this bit.
bits : 1 - 1 (1 bit)
access : read-write
CUTRGF0 : ADC Trigger Flag by Counting Up to CMP\nNote: Software can write 1 to clear this bit.
bits : 2 - 2 (1 bit)
access : read-write
PTRGF : ADC Trigger Flag by Period \nNote: Software can write 1 to clear this bit.
bits : 3 - 3 (1 bit)
access : read-write
CDTRGF1 : ADC Trigger Flag by Counting Down to CMP\nNote: Software can write 1 to clear this bit.
bits : 8 - 8 (1 bit)
access : read-write
CUTRGF1 : ADC Trigger Flag by Counting Up to CMP\nNote: Software can write 1 to clear this bit.
bits : 10 - 10 (1 bit)
access : read-write
CDTRGF2 : ADC Trigger Flag by Counting Down to CMP \nNote: Software can write 1 to clear this bit.
bits : 16 - 16 (1 bit)
access : read-write
CUTRGF2 : ADC Trigger Flag by Counting Up to CMP\nNote: Software can write 1 to clear this bit.
bits : 18 - 18 (1 bit)
access : read-write
CDTRGF3 : ADC Trigger Flag by Counting Down to CMP\nNote: Software can write 1 to clear this bit.
bits : 24 - 24 (1 bit)
access : read-write
CUTRGF3 : ADC Trigger Flag by Counting Up to CMP\nNote: Software can write 1 to clear this bit.
bits : 26 - 26 (1 bit)
access : read-write
EPWM Trigger ADC Status Register 1
address_offset : 0x74 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
EPWM Phase Changed Register
address_offset : 0x78 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PWM0MD : Enable PWM0 Mask Data\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM0 state is masked with zero
#1 : 1
PWM0 state is masked with one
End of enumeration elements list.
PWM1MD : Enable PWM1 Mask Data\n
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM1 state is masked with zero
#1 : 1
PWM1 state is masked with one
End of enumeration elements list.
PWM2MD : Enable PWM2 Mask Data\n
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM2 state is masked with zero
#1 : 1
PWM2 state is masked with one
End of enumeration elements list.
PWM3MD : Enable PWM3 Mask Data\n
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM3 state is masked with zero
#1 : 1
PWM3 state is masked with one
End of enumeration elements list.
PWM4MD : Enable PWM4 Mask Data\n
bits : 4 - 4 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM4 state is masked with zero
#1 : 1
PWM4 state is masked with one
End of enumeration elements list.
PWM5MD : Enable PWM5 Mask Data\n
bits : 5 - 5 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM5 state is masked with zero
#1 : 1
PWM5 state is masked with one
End of enumeration elements list.
PWM0ME : Enable PWM0 Mask Function\n
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM0 Mask Function Disabled
#1 : 1
PWM0 Mask Function Enabled
End of enumeration elements list.
PWM1ME : Enable PWM1 Mask Function\n
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM1 Mask Function Disabled
#1 : 1
PWM1 Mask Function Enabled
End of enumeration elements list.
PWM2ME : Enable PWM2 Mask Function\n
bits : 10 - 10 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM2 Mask Function Disabled
#1 : 1
PWM2 Mask Function Enabled
End of enumeration elements list.
PWM3ME : Enable PWM3 Mask Function\n
bits : 11 - 11 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM3 Mask Function Disabled
#1 : 1
PWM3 Mask Function Enabled
End of enumeration elements list.
PWM4ME : Enable PWM4 Mask Function\n
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM4 Mask Function Disabled
#1 : 1
PWM4 Mask Function Enabled
End of enumeration elements list.
PWM5ME : Enable PWM5 Mask Function\n
bits : 13 - 13 (1 bit)
access : read-write
Enumeration:
#0 : 0
PWM5 Mask Function Disabled
#1 : 1
PWM5 Mask Function Enabled
End of enumeration elements list.
TRGSEL : Phase Change Trigger Selection\nSelect the trigger condition to load PHCHG from PHCHG_NXT.\nWhen the trigger condition occurs it will load PHCHG_NOW with PHCHG_NXT.\nPhase Change: PWM outputs are masked according with\n the definition of PWMx_ME and PWMx_MD in PHCHG_NOW.\n
bits : 20 - 22 (3 bit)
access : read-write
Enumeration:
#000 : 0
Triggered by Timer0 event
#001 : 1
Triggered by Timer1 event
#010 : 2
Triggered by Timer2 event
#011 : 3
Triggered by PHCHG_NXT.HALL_STATE matched hall sensor state
#100 : 4
Triggered by CMP0 event
#101 : 5
Triggered by CMP1 event
End of enumeration elements list.
CMP0SEL : Alternative Comparator 0 Positive Input Selection\nSelect the positive input source of ACMP0.\n
bits : 24 - 25 (2 bit)
access : read-write
Enumeration:
#00 : 0
Select ACMP0_P0 (PB.0) as the input of ACMP0
#01 : 1
Select ACMP0_P1 (PB.1) as the input of ACMP0
#10 : 2
Select ACMP0_P2 (PB.2) as the input of ACMP0
#11 : 3
Reserved
End of enumeration elements list.
CMP1SEL : Alternative Comparator 1 Positive Input Selection\nSelect the positive input source of ACMP1.\n
bits : 26 - 27 (2 bit)
access : read-write
Enumeration:
#00 : 0
Select ACMP1_P0 (PC.0) as the input of ACMP1
#01 : 1
Select ACMP1_P1 (PC.1) as the input of ACMP1
#10 : 2
Select ACMP1_P2 (PD.1) as the input of ACMP1
#11 : 3
Reserved
End of enumeration elements list.
CMP0ST : Start CMP0 Compare Function\n
bits : 28 - 28 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable CMP0
#1 : 1
Start CMP0
End of enumeration elements list.
CMP1ST : Start CMP1 Compare Function\n
bits : 29 - 29 (1 bit)
access : read-write
Enumeration:
#0 : 0
Disable CMP1
#1 : 1
Start CMP1
End of enumeration elements list.
PHCHGEN : Enable Auto Phase Change Function\n
bits : 31 - 31 (1 bit)
access : read-write
Enumeration:
#0 : 0
Auto Phase Change Function Disabled
#1 : 1
Auto Phase Change Function Enabled
End of enumeration elements list.
EPWM Next Phase Change Register
address_offset : 0x7C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PWM0MD : Enable PWM0 Mask Data Preset Bit\nThis bit will be load to bit PWM0_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 0 - 0 (1 bit)
access : read-write
PWM1MD : Enable PWM1 Mask Data Preset Bit\nThis bit will be load to bit PWM1_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 1 - 1 (1 bit)
access : read-write
PWM2MD : Enable PWM2 Mask Data Preset Bit\nThis bit will be load to bit PWM2_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 2 - 2 (1 bit)
access : read-write
PWM3MD : Enable PWM3 Mask Data Preset Bit\nThis bit will be load to bit PWM3_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 3 - 3 (1 bit)
access : read-write
PWM4MD : Enable PWM4 Mask Data Preset Bit\nThis bit will be load to bit PWM4_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 4 - 4 (1 bit)
access : read-write
PWM5MD : Enable PWM5 Mask Data Preset Bit\nThis bit will be load to bit PWM5_MD in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 5 - 5 (1 bit)
access : read-write
PWM0ME : Enable PWM0 Mask Function Preset Bit\nThis bit will be load to bit PWM0_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 8 - 8 (1 bit)
access : read-write
PWM1ME : Enable PWM1 Mask Function Preset Bit\nThis bit will be load to bit PWM1_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 9 - 9 (1 bit)
access : read-write
PWM2ME : Enable PWM2 Mask Function Preset Bit\nThis bit will be load to bit PWM2_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 10 - 10 (1 bit)
access : read-write
PWM3ME : Enable PWM3 Mask Function Preset Bit\nThis bit will be load to bit PWM3_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 11 - 11 (1 bit)
access : read-write
PWM4ME : Enable PWM4 Mask Function Preset Bit\nThis bit will be load to bit PWM4_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 12 - 12 (1 bit)
access : read-write
PWM5ME : Enable PWM5 Mask Function Preset Bit\nThis bit will be load to bit PWM5_ME in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 13 - 13 (1 bit)
access : read-write
HALLSTS : Predicted Next HALL State\nThis bit field indicates the predicted hall state at next commutation. \nthe hardware will compare bits (CAP2, CAP1, CAP0) in timer 2 with HALL_STATE[2:0] when any hall state change occurs.\n If the comparison is matched it will trigger phase change function.
bits : 16 - 18 (3 bit)
access : read-write
TRGSEL : Phase Change Trigger Selection Preset Bits\nThis bit field will be load to bit field TRGSEL in PHCHG_NOW when load trigger condition occurs.\nRefer to register PWM_PHCHG for detailed definition.
bits : 20 - 22 (3 bit)
access : read-write
Enumeration:
#000 : 0
Triggered by Timer0 event
#001 : 1
Triggered by Timer1 event
#010 : 2
Triggered by Timer2 event
#011 : 3
Triggered by PHCHG_NXT.HALL_STATE matched hall sensor state
#100 : 4
Triggered by CMP0 event
#101 : 5
Triggered by CMP1 event
End of enumeration elements list.
CMP0SEL : Alternative Comparator 0 Positive Input Selection Preset Bits\nThis bit field will be load to bit field CMP0SEL in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 24 - 25 (2 bit)
access : read-write
CMP1SEL : Alternative Comparator 1 Positive Input Selection Preset Bitfs\nThis bit field will be load to bit field CMP1SEL in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 26 - 27 (2 bit)
access : read-write
CMP0ST : Start CMP0 Compare Function Control Preset Bit\nThis bit will be load to bit CMP0_ST in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 28 - 28 (1 bit)
access : read-write
CMP1ST : Start CMP1 Compare Function Control Preset Bit\nThis bit will be load to bit CMP1_ST in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 29 - 29 (1 bit)
access : read-write
PHCHGEN : Enable Auto Phase Change Function Preset Bit\nThis bit will be load to bit PHCHG_EN in PHCHG_NOW when load trigger condition occurs. \nRefer to register PHCHG_NOW for detailed definition.
bits : 31 - 31 (1 bit)
access : read-write
EPWM Control Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CNTEN0 : PWM-timer 0 Enable/Disable Start Run\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTEN1 : PWM-timer 1 Enable/Disable Start Run\n
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTEN2 : PWM-timer 2 Enable/Disable Start Run\n
bits : 2 - 2 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTEN3 : PWM-timer 3 Enable/Disable Start Run\n
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTEN4 : PWM-timer 4 Enable/Disable Start Run\n
bits : 4 - 4 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTEN5 : PWM-timer 5 Enable/Disable Start Run\n
bits : 5 - 5 (1 bit)
access : read-write
Enumeration:
#0 : 0
Corresponding PWM-timer running Stopped
#1 : 1
Corresponding PWM-timer start run Enabled
End of enumeration elements list.
CNTMODE : PWM-timer Auto-reload/One-shot Mode\n
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
One-shot mode
#1 : 1
Auto-reload mode
End of enumeration elements list.
HCUPDT : Half Cycle Update Enable for Center-aligned Type\n
bits : 16 - 17 (2 bit)
access : read-write
Enumeration:
#00 : 0
update PERIOD CMP at pwm_counter = PERIOD (Period)
#01 : 1
update PERIOD CMP at pwm_counter = 0
#10 : 2
update PERIOD CMP at half cycle (counter = 0 PERIOD, both update)
#11 : 3
update PERIOD CMP at pwm_counter = PERIOD (Period)
End of enumeration elements list.
ASYMEN : Asymmetric Mode in Center-aligned Type
bits : 20 - 20 (1 bit)
access : read-write
Enumeration:
#0 : 0
symmetric mode in center-aligned type
#1 : 1
asymmetric mode in center-aligned type
End of enumeration elements list.
DBGTRIOFF : PWM Debug Mode Configuration Bit (Available in DEBUG Mode Only)\n
bits : 23 - 23 (1 bit)
access : read-write
Enumeration:
#0 : 0
Safe mode: The timer is frozen and PWM outputs are shut down Safe state for the inverter. The timer can still be re-started from where it stops
#1 : 1
Normal mode: The timer continues to operate normally May be dangerous in some cases since a constant duty cycle is applied to the inverter (no more interrupts serviced)
End of enumeration elements list.
DTCNT01 : Dead-zone 0 Generator Enable/Disable (PWM0 and PWM1 Pair for PWM Group)\nNote: When the dead-zone generator is enabled, the pair of PWM0 and PWM1 becomes a complementary pair for PWM group.
bits : 24 - 24 (1 bit)
access : read-write
Enumeration:
#0 : 0
Dead-zone 0 Generator Disabled
#1 : 1
Dead-zone 0 Generator Enabled
End of enumeration elements list.
DTCNT23 : Dead-zone 2 Generator Enable/Disable (PWM2 and PWM3 Pair for PWM Group)\nNote: When the dead-zone generator is enabled, the pair of PWM2 and PWM3 becomes a complementary pair for PWM group.
bits : 25 - 25 (1 bit)
access : read-write
Enumeration:
#0 : 0
Dead-zone 2 Generator Disabled
#1 : 1
Dead-zone 2 Generator Enabled
End of enumeration elements list.
DTCNT45 : Dead-zone 4 Generator Enable/Disable (PWM4 and PWM5 Pair for PWM Group)\nNote: When the dead-zone generator is enabled, the pair of PWM4 and PWM5 becomes a complementary pair for PWM group.
bits : 26 - 26 (1 bit)
access : read-write
Enumeration:
#0 : 0
Dead-zone 4 Generator Disabled
#1 : 1
Dead-zone 4 Generator Enabled
End of enumeration elements list.
CNTCLR : Clear PWM Counter Control Bit\nNote: It is automatically cleared by hardware.
bits : 27 - 27 (1 bit)
access : read-write
Enumeration:
#0 : 0
Do not clear PWM counter
#1 : 1
16-bit PWM counter cleared to 0x000
End of enumeration elements list.
MODE : PWM Operating Mode Selection\n
bits : 28 - 29 (2 bit)
access : read-write
Enumeration:
#00 : 0
Independent mode
#01 : 1
Complementary mode
#10 : 2
Synchronized mode
#11 : 3
Reserved
End of enumeration elements list.
GROUPEN : Group Bit\n
bits : 30 - 30 (1 bit)
access : read-write
Enumeration:
#0 : 0
The signals timing of PWM0, PWM2 and PWM4 are independent
#1 : 1
Unify the signals timing of PWM0, PWM2 and PWM4 in the same phase which is controlled by PWM0
End of enumeration elements list.
CNTTYPE : PWM Aligned Type Selection Bit\n
bits : 31 - 31 (1 bit)
access : read-write
Enumeration:
#0 : 0
Edge-aligned type
#1 : 1
Center-aligned type
End of enumeration elements list.
EPWM Phase Change Alternative Control Register
address_offset : 0x80 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CMP0ALT : Alternative CMP0 Positive Input Source Select\nNote: Register CMP0CR is describe in Comparator Controller chapter
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
The input of CMP0 is controlled by CMP1CR
#1 : 1
The input of CMP0 is controlled by CMP1SEL in PHCHG_NOW register
End of enumeration elements list.
CMP1ALT : Alternative CMP1 Positive Input Source Select\nNote: Register CMP1CR is describe in Comparator Controller chapter
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
The input of CMP1 is controlled by CMP1CR
#1 : 1
The input of CMP1 is controlled by CMP1SEL in PHCHG_NOW register
End of enumeration elements list.
EPWM Period Interrupt Accumulation Control Register
address_offset : 0x84 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
IFAEN : Enable Period Interrupt Accumulation Function\n
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Period Interrupt Accumulation Disabled
#1 : 1
Period Interrupt Accumulation Enabled
End of enumeration elements list.
IFACNTVAL : Period Interrupt Accumulation Counter Value Setting Register (Write Only)\n16 step Down-Counter value setting register.\nWhen IFAEN is set, IFACNTVAL value will load into IFACNTDAT and decrase gradually.
bits : 4 - 7 (4 bit)
access : write-only
IFACNTDAT : Period Interrupt Down-counter Data Register (Read Only)\nWhen IFAEN is set, IFACNTDAT will decrease when every PWM Interrupt flag is set,\n and when IFACNTDAT reach to zero, the PWM interrupt will occurred and IFACNTVAL will reload to IFACNTDAT.
bits : 12 - 15 (4 bit)
access : read-only
EPWM Period Counter Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
PERIOD : PWM Counter/Timer Loaded Value
PERIODn determines the PWM Period.
Edge-aligned mode: where xy, could be 01, 23, 45 depending on the selected PWM channel.
Note: Any write to PERIODn will take effect in next PWM cycle.
bits : 0 - 15 (16 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 Embeetle, an IDE designed from scratch for embedded software developers.