我用电阻采样法重构相电流,需要在相量V(100)处触发ADC采样,这如何实现?datasheet中只有TBCTR=TBPRD和TBCTR=0两种触发方式。

hu vison:
可以设定比较值触发。
EPWMxSOCA Selection OptionsThese bits determine when a EPWMxSOCA pulse will be generated.000 Enable DCAEVT1.soc event001 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.
TI中文支持网



