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.

关于TMS570的NHET实现捕捉的问题

Other Parts Discussed in Thread: TMS570LS3137

通过TMS570LS3137的NHET实现脉冲捕捉功能,使用HAL CoGen进行了配置,配置了引脚交叉开关、edge和cap功能,具体如下:

1、信号源是使用PWM模块进行发生的,使用了2引脚输出,并通过外部环回到了0引脚;

2、0引脚配置为NHET引脚,并且为输入引脚,2引脚为NHET引脚,并且为输入引脚;

现象是PWM模块发生信号正常,该信号驱动了一个指示灯,灯的闪烁频率正确,但捕捉模块使用edgeGetCounter和(或)capGetSignal函数进行脉冲捕捉,脉冲数、

周期和占空比均为0.