完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
CBC和OSHT这两种保护是怎么理解,怎么使用,谢谢
|
|
相关推荐
2 个讨论
|
|
|
CBC和One shot的解释在user guide SPRUG04A 的解释如下图:
• Cycle-by-Cycle (CBC): When a cycle-by-cycle trip event occurs, the action specified in the TZCTL register is carried out immediately on the EPWMxA and/or EPWMxB output. Table 19 lists the possible actions. In addition, the cycle-by-cycle trip event flag (TZFLG[CBC]) is set and a EPWMx_TZINT interrupt is generated if it is enabled in the TZEINT register and PIE peripheral. The specified condition on the pins is automatically cleared when the ePWM time-base counter reaches zero (TBCTR = 0x0000) if the trip event is no longer present. Therefore, in this mode, the trip event is cleared or reset every PWM cycle. The TZFLG[CBC] flag bit will remain set until it is manually cleared by writing to the TZCLR[CBC] bit. If the cycle-by-cycle trip event is still present when the TZFLG[CBC] bit is cleared, then it will again be immediately set. 意思是,CBC模式就是cycle by cycle模式,他的特点是一旦触发就会立即装载TZCTL中TZA,TZB的配置的PWM状态(高,低,高阻,或者不变),但是每次PWM计数器为0的时候他会再次检测TZ引脚的输入是否仍然被触发,如果仍然被触发,就继续保护,如果不再被触发,就恢复PWM输出 • One-Shot (OSHT): When a one-shot trip event occurs, the action specified in the TZCTL register is carried out immediately on the EPWMxA and/or EPWMxB output. Table 19 lists the possible actions. In addition, the one-shot trip event flag (TZFLG[OST]) is set and a EPWMx_TZINT interrupt is generated if it is enabled in the TZEINT register and PIE peripheral. The one-shot trip condition must be cleared manually by writing to the TZCLR[OST] bit. One-shot总的来说区别就是,一旦触发就无法自动恢复,会始终处于保护状态,直到手动清除TZFLG中的OST位,就是在TZCLR中给OST位赋值1. |
|
|
|
|
|
|
|
muuwfwr 发表于 2018-9-7 19:34 想请教一下,按照您的介绍,我是不是可以这样理解,CBC模式下的保护会在计数器归零的时候自动恢复PWM输出,但是此时TZFLG(CBC)不会被清0。也就是说在手动清除TZFLG(CBC)之前,CBC可以逐周期保护(强制PWM的输出状态),但是不会再次发出中断请求;而在OST模式下,一旦触发保护,无法自动恢复,直到TZFLG(OST)被清零,之后可以再次触发OST保护,也可以再次发出中断请求。 不知道理解是否有问题? |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
577 浏览 0 评论
1639 浏览 0 评论
2075 浏览 0 评论
为啥BQ7693003DBTR芯片在和BQ769X0盒子通讯时收不到信号?
1530 浏览 0 评论
DSP 28027F 开发板 XDS100v2调试探针诊断日志显示了 Error -150 (SC_ERR_FTDI_FAIL)如何解决
1368 浏览 0 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
1782浏览 29评论
2810浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
1740浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
1652浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
1668浏览 13评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-9 03:31 , Processed in 0.876782 second(s), Total 58, Slave 45 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
4476