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.

TMS470MF06607 HET PWM中断问题

Other Parts Discussed in Thread: TMS470MF06607, HALCOGEN

最近采用TMS470MF06607开发 HET PWM可以产生,但是PWM的end of duty 和end of period 中断没有产生,中断服务程序也没有进入,我是利用HAL CODE GENERATER代码生成工具生成的代码,请问应该怎么配置,是否有需要特别注意的地方?

  • Hi Wei,

        请查收附件。

        这是一个可以相应PWM duty和period中断的例程。

        例程使用了HET做PWM0的输出。

        你可以在 hetLowLevelInterrupt() 中,分别在:

           pwmNotification((vec >> 1U) - 1U, pwmEND_OF_PERIOD) 或

           pwmNotification((vec >> 1U) - 1U, pwmEND_OF_DUTY)

        函数调用处设置断点,观察中断响应情况。

        请注意,最好不要同时设置两个断点,因为这样的话,高优先级的中断总是得到响应,观察不到另外一个中断的响应。

     

        HALCoGen生成的代码中,pwmEnableNotification函数内容需要改动,请参考附件中的例子。

        如有问题,请随时联系。

  • 能否将例程给我一份,麻烦了。

  • 请参考链接:

    http://www.deyisupport.com/question_answer/f/70/t/18292.aspx