pwm中断

[复制链接]
2737|12
 楼主| zhuhuis 发表于 2012-7-21 17:21 | 显示全部楼层 |阅读模式
如图:   是有什么用的。
tian111 发表于 2012-7-21 17:25 | 显示全部楼层
你要做什么
 楼主| zhuhuis 发表于 2012-7-21 17:27 | 显示全部楼层
我想做一个spwm 初步想法是如果pwm每发生一个波形后触发中断改变一次占空比  不知道是否可行
 楼主| zhuhuis 发表于 2012-7-21 17:29 | 显示全部楼层
还有pwm他的中断是否就是每产生一次波形触发一次中断?
宋倩2010 发表于 2012-7-21 17:31 | 显示全部楼层
Interrupts
The Interrupts parameters allow you to configure the initial interrupt sources. These values are
ORed with any of the other Interrupt parameters to give a final group of events that can trigger
an interrupt. The software can re-configure this mode at any time as long as Interrupts were not
set to "None"; this parameter simply defines an initial configuration.
• None – No interrupts are set.
• Interrupt On Terminal Count Event –This option is always available; it is set to "false" by
default.
• Interrupt On Compare 1 Event – This option is set to "false" by default. It is always
shown.
• Interrupt On Compare 2 Event – This option is set to "false" by default. It is only
available when "UDB" is selected for Implementation and PWM Mode is set
appropriately.
• Interrupt On Kill Event – This option is set to "false" by default. It is only available when
"UDB" is selected for Implementation and PWM Mode is set appropriately.

pwm每发生一个波形后触发中断改变一次占空比 - 可行
还有pwm他的中断是否就是每产生一次波形触发一次中断?- 可以设置
 楼主| zhuhuis 发表于 2012-7-21 17:33 | 显示全部楼层
谢谢了。不知道哪里可以找到中文文档。。对于上述问题,我已经解决了,用的是pwm中断后修改占空比实现了spwm波
宋倩2010 发表于 2012-7-21 17:34 | 显示全部楼层
你是说用户模块的是吗?打开其网页如PSoC Creator组件数据手册 或PSoC Designer用户模块数据手册 在后面的language里面选择中文就可以了,器件的datasheet也是一样
gongche 发表于 2012-7-21 17:36 | 显示全部楼层
你说的可靠是指什么?你试验验证一下就知道了
huwr 发表于 2012-7-21 17:40 | 显示全部楼层
这个中断是输入还是输出呢?
 楼主| zhuhuis 发表于 2012-7-21 17:44 | 显示全部楼层
是输出,用来产生一个中断信号,告诉CPU中断当前的执行,进入中断服务程序中要求执行的动作。
 楼主| zhuhuis 发表于 2012-7-21 17:45 | 显示全部楼层
OK ,哈哈
 楼主| zhuhuis 发表于 2012-7-21 17:46 | 显示全部楼层
那就先结贴了
willy_see 发表于 2012-7-21 22:17 | 显示全部楼层
您需要登录后才可以回帖 登录 | 注册

本版积分规则

728

主题

8464

帖子

6

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