This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
可以设定比较值触发。
EPWMxSOCA Selection Options
These bits determine when a EPWMxSOCA pulse will be generated.
000 Enable DCAEVT1.soc event
001 Enable event time-base counter equal to zero. (TBCTR = 0x0000)
010 Enable event time-base counter equal to period (TBCTR = TBPRD)
011 Enable event time-base counter equal to zero or period (TBCTR = 0x0000 or TBCTR =
TBPRD). This mode is useful in up-down count mode.
100 Enable event time-base counter equal to CMPA when the timer is incrementing.
101 Enable event time-base counter equal to CMPA when the timer is decrementing.
110 Enable event: time-base counter equal to CMPB when the timer is incrementing.
111 Enable event: time-base counter equal to CMPB when the timer is decrementing.