转贴: PSoC笔记-PWM及死区控制

[复制链接]
9216|18
 楼主| walnutcy 发表于 2008-5-11 12:38 | 显示全部楼层 |阅读模式
声明:转自EDA121,版权归EDA121所有

 
PSoC芯片有专门的可动态配置的PWM模块以及带死区控制的模块,其中有8位和16位两种模块供用户选择。一个8位PWM占用一个数字模块,一个16位PWM占用两个数字模块,一个带死区控制的8位PWM模块需要两个数字模块,一个带死区控制的16位PWM模块需要三个数字模块。所以在配置PWM模块时一定要考虑数字模块的用量。 
  不带死区控制的PWM跟其它厂商的MCU一样,控制方法也几乎相同,PSoC增加的是死区发生器。死区发生器产生两个输出波形,分别为PHASE1和PHASE2。PHASE1和PHASE2不会同时都为HIGH,一个8位的递减计数器控制死区时间,在死区期间,PHASE1和PHASE2都为LOW。以下是两个输出的动作情况。



Dead Band Generator
  For each edge of the input signal (PWM8 or PWM16 output), the following is repeated:

  Rising Edge ↑
  1、Phase2 signal is reset low on the rising edge of the next clock cycle.
  2、DeadTimeCounter register is loaded with the DeadTime register value.  
  3、DeadTimeCounter register is decremented on each rising edge of the input clock until it         reaches the terminal count. Phase1 is then set high on the next falling edge of the clock. 

  Falling Edge  ↓
  1、Phase1 signal is reset low on the rising edge of the following clock cycle.
  2、DeadTimeCounter register is loaded with the DeadTime register value.  
  3、DeadTimeCounter register is decremented on each rising edge of the input clock until it reaches the terminal count. Phase 2 is then set high on the next falling edge of the clock.


  Phase1 and Phase2 track the frequency of the input signal received from PWM. Phase1 tracks the duty cycle of the input signal, minus the dead time. Phase2 tracks the inverted cycle of the input signal, minus the dead time. 

If you want more,you can download Application Notes about PWMDB.

URL:www.khalus.com.ua/psoc/pdf/modules/PWMDB_27.pdf
hotpower 发表于 2008-5-11 21:49 | 显示全部楼层

倒塌了~~~俺怎么没想到"转帖"换积分???害得俺灌水坏名分~~~

学习楼主好榜样~~~
phoenixmy 发表于 2008-5-11 21:50 | 显示全部楼层

呵呵


我现在还云里雾里中,对psoc还没有概念。。。

触摸键是咋回事???
QIUMING 发表于 2008-5-13 01:20 | 显示全部楼层

死区时间有建议值吗?

辛夷木蓝 发表于 2008-5-13 22:24 | 显示全部楼层

- -# 受教了!

yulindee 发表于 2010-1-23 16:17 | 显示全部楼层
想问问那个deadbandkill是什么意识,怎么设置!
god_like 发表于 2010-1-23 18:18 | 显示全部楼层
哇,这么老的贴都找到了
Go_PSoC 发表于 2010-1-25 10:31 | 显示全部楼层
总有一些好心人能把有用的老贴翻出来,呵呵。我把它放到置顶贴里了,这样找起来也方便,呵呵
liliang9554 发表于 2010-2-3 21:42 | 显示全部楼层
挖坟……
易达口香糖 发表于 2010-2-5 08:33 | 显示全部楼层
版主热心肠,呵呵
rocky_bian 发表于 2010-2-5 21:09 | 显示全部楼层
不要置顶 置顶太多 反而不好..
五谷道场 发表于 2010-2-5 21:20 | 显示全部楼层
有什么不好……
god_like 发表于 2010-2-6 20:04 | 显示全部楼层
可以收藏在置顶帖里
love_life 发表于 2010-2-6 20:47 | 显示全部楼层
不错,学习了
jiaoyong110 发表于 2013-11-4 15:53 | 显示全部楼层
学习。。受教。。
shawncxl 发表于 2013-11-5 22:18 | 显示全部楼层
谢谢前辈了
kk5290122 发表于 2013-11-8 23:19 | 显示全部楼层
死区控制在PWM控制里面的确很有用……
happygirlwz 发表于 2013-11-27 19:36 | 显示全部楼层
PWM控制,学习了……!顶一个!
jinpaidianzi 发表于 2013-11-29 13:33 | 显示全部楼层
哇塞这么老的贴你们是怎么挖出来的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

111

主题

1444

帖子

5

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