文档:F28004x_DriverLib_Userguide.pdf
Page:326
函数:EPWM_DigitalCompareModule -> 第三个形参:dcEventSource
文档说明矛盾。
我想使用的是经过Blanking Window 滤波后的DCEVTFILT,
我该配置成
EPWM_DC_EVENT_SOURCE_FILT_SIGNAL 还是
EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL
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.
在例程代码内也有相关的描述
//*****************************************************************************
//
//! Values that can be passed to EPWM_setDigitalCompareEventSource() as the
//! \e dcEventSource parameter.
//
//*****************************************************************************
typedef enum
{
//! signal source is unfiltered (DCAEVT1/2)
EPWM_DC_EVENT_SOURCE_ORIG_SIGNAL = 0,
//! signal source is filtered (DCEVTFILT)
EPWM_DC_EVENT_SOURCE_FILT_SIGNAL = 1
} EPWM_DigitalCompareEventSource;