完善资料让更多小伙伴认识你,还能领取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保护,也可以再次发出中断请求。 不知道理解是否有问题? |
|
|
|
|
|
只有小组成员才能发言,加入小组>>
TMS320F28377D:新做了以377d为芯片的板子,上电后芯片复位引脚出现方波请问如何解决?
1888 浏览 0 评论
TPS55340通电后输入端保险丝烧断,芯片输入和GND之间短路
3641 浏览 4 评论
5027 浏览 0 评论
请问如何用DM368对RGB格式的图片数据进行编码生成JPEG格式图片?
1732 浏览 1 评论
9353 浏览 8 评论
CC3100BOOST使用CC3200lunchXL进行烧录
664浏览 2评论
707浏览 1评论
TMS320F28034: 利用C2prog通过SCI给TMS320F28034烧录程序,出现错误提示:Bootloading... failed (invalid echo)!
668浏览 1评论
1186浏览 1评论
求DLPC350 Programmer’s Guide User's Guide 中文版说明书
1189浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-20 02:42 , Processed in 0.666820 second(s), Total 65, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号