[技术问答] 请教关于M480的BSPEPWM_AccumulatorStopMode例程

[复制链接]
488|2
 楼主| 東南博士 发表于 2023-10-11 11:10 | 显示全部楼层 |阅读模式
AC, BSP, PWM, RS
请教关于M480的BSPEPWM_AccumulatorStopMode例程
我在测试的时候,发现出现了这样的问题:
下载BSP,连续出现了打印输出这个指令

Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.
Check if output toggles 11 times then stop toggles.

……

这样来说,是不是不正常的表现?
 楼主| 東南博士 发表于 2023-10-11 11:46 | 显示全部楼层
经过测试 发现
BSP 例程  EPWM_AccumulatorINT_TriggerPDMA 是正常的
BSP 例程  EPWM_AccumulatorStopMode 不正常

EPWM_AccumulatorStopMode 不正常的例程

void EPWM1P0_IRQHandler(void)
{
    EPWM_ClearAccInt(EPWM1, 0);
    printf("Check if output toggles 11 times then stop toggles.\n");
}

EPWM_ClearAccInt(EPWM1, 0);
无法起作用

而M460_Series_BSP_CMSIS_V3.00.001系列
EPWM_AccumulatorStopMode例程
可以在M467起作用 并且可以清除指定预设个数的中断 并关闭!

请新唐相关工程师进行验证并回复我
 楼主| 東南博士 发表于 2023-10-11 11:47 | 显示全部楼层
BSP包为:

M480_BSP_CMSIS_V3.05.003
您需要登录后才可以回帖 登录 | 注册

本版积分规则

385

主题

6103

帖子

35

粉丝
快速回复 在线客服 返回列表 返回顶部