打印

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

[复制链接]
6716|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 | 只看该作者

死区时间有建议值吗?

使用特权

评论回复
5
辛夷木蓝| | 2008-5-13 22:24 | 只看该作者

- -# 受教了!

使用特权

评论回复
6
yulindee| | 2010-1-23 16:17 | 只看该作者
想问问那个deadbandkill是什么意识,怎么设置!

使用特权

评论回复
7
god_like| | 2010-1-23 18:18 | 只看该作者
哇,这么老的贴都找到了

使用特权

评论回复
8
Go_PSoC| | 2010-1-25 10:31 | 只看该作者
总有一些好心人能把有用的老贴翻出来,呵呵。我把它放到置顶贴里了,这样找起来也方便,呵呵

使用特权

评论回复
9
liliang9554| | 2010-2-3 21:42 | 只看该作者
挖坟……

使用特权

评论回复
10
易达口香糖| | 2010-2-5 08:33 | 只看该作者
版主热心肠,呵呵

使用特权

评论回复
11
rocky_bian| | 2010-2-5 21:09 | 只看该作者
不要置顶 置顶太多 反而不好..

使用特权

评论回复
12
五谷道场| | 2010-2-5 21:20 | 只看该作者
有什么不好……

使用特权

评论回复
13
god_like| | 2010-2-6 20:04 | 只看该作者
可以收藏在置顶帖里

使用特权

评论回复
14
love_life| | 2010-2-6 20:47 | 只看该作者
不错,学习了

使用特权

评论回复
15
jiaoyong110| | 2013-11-4 15:53 | 只看该作者
学习。。受教。。

使用特权

评论回复
16
shawncxl| | 2013-11-5 22:18 | 只看该作者
谢谢前辈了

使用特权

评论回复
17
kk5290122| | 2013-11-8 23:19 | 只看该作者
死区控制在PWM控制里面的确很有用……

使用特权

评论回复
18
happygirlwz| | 2013-11-27 19:36 | 只看该作者
PWM控制,学习了……!顶一个!

使用特权

评论回复
19
jinpaidianzi| | 2013-11-29 13:33 | 只看该作者
哇塞这么老的贴你们是怎么挖出来的

使用特权

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

本版积分规则

111

主题

1443

帖子

5

粉丝