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.

28035PWM触发ADC采样

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

  • 可以设定比较值触发。

    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.

x 出现错误。请重试或与管理员联系。