打印
[技术问答]

请教关于M480的BSPEPWM_AccumulatorStopMode例程

[复制链接]
158|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

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

367

主题

6048

帖子

34

粉丝