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.

TMS570LS1227: TMS570的NHET1中cap模块实现捕捉的问题

Part Number: TMS570LS1227

输出:

我使用了het1的pwm1作为输出,halcongen配置如图

主程序中调用了pwmSetSignal函数开启了输出,使用示波器能看到输出的波形。

输入:HET1_25引脚为输入

使用het1的cap3捕获信号,halcongen配置如图,

由于看了之前的帖子,也把生成的het.c中的代码进行了修改,使cap3只测量25引脚的周期和占空比,如图

het1其他的pwm通道,edge通道和cap通道也没有使用29和25路造成冲突。

MCU上的HET1_25的引脚用示波器可以看到输入的波形,但是还是采集不到信号,求助啊实在不知道为什么了。

谢谢!