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.

TMS570LS3135 使用het的cap功能

Other Parts Discussed in Thread: HALCOGEN

Hi,各位好!

    从1114升级到3135,发现没有了特定引脚的ecap和PWM功能。 只能使用het的cap和PWM。

   现在Het使用PWM功能已经调试成功。

    由于没有在HALcoGen中找到Het使用Cap功能的例程,只能参考PWM Generation and Input Capture Using HALCoGen.pdf

   

       按照上述图片信息,我配置完成。

问题1:中断向量表里我应该使能哪个? 目前使能的是HET low,没什么现象。

问题2:void capGetSignal(hetRAMBASE_t * hetRAM, uint32 cap, hetSIGNAL_t *signal);    这个函数使用后,无现象。

问题3:PWM Generation and Input Capture Using HALCoGen.pdf  文档中有很长一段汇编,开头注释是这样的

It can be copied to NHET Assembler for better
understanding of how the HALCoGen N2HET module works.

网上查到:

 HET的功能比较强大,你可以把它理解一个带有自身RAM的协处理器,它可以独立编程。可以实现的功能非常的多。除了常规的PWM, CAP, EQEP,它还可以用来实现IIC,UART,SPI等总线功能等。这个主要取决于你对他的汇编指令的理解和掌握程度。

这段汇编代码,需要放我工程中才能实现cap的功能么?

祝各位工作顺利!

Yr.Zh