-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HPM6284IEP2的PWM0启用hrpwm后触发故障保护后无法恢复 #28
Comments
感谢报告问题,请参考如下分支 中的hrpwm例程,可以在fault消失后使PWM波形恢复。
|
感谢您的帮助,经过测试这个方法有效,但这个方法看上去像是一种规避方法,请问后续有修复计划吗,或者是将这个方法合入主干的计划 |
还有请问下,对于通过trgm连接的内部故障输入和PWM自身的外部故障输入触发的故障保护有比较好的恢复方法吗? |
这个改动会合并进入主干,细节上可能会有一些调整,但是驱动接口会和这个保持一致。目前已知的情况是会出errata。受影响的范围就是62XX系列。 |
这样吧,我看立创商城的账号应该也是您吧,我私信您我的微信号了。关于具体的细节我们可以微信沟通,看看有没有什么更适合您应用的解决方案。 |
如题,无论是使用hrpmw例程基础上添加故障保护还是自己写的程序都一样
使用hrpwm例程在generate_edge_aligned_waveform内做如下改动:
修改定义适配硬件
配置故障电平及恢复方式的代码
配置故障保护的代码,添加在pwm_setup_waveform之后
函数末尾for循环内写一个死循环将程序卡住方便操作
现象:
进入调试后启动程序生成波形,点击暂停运行触发故障保护波形消失,继续运行波形不能恢复
若注释
pwm_enable_hrpwm(HRPWM);
不启用hrpwm功能则能正常恢复The text was updated successfully, but these errors were encountered: