打印

这个有什么用

[复制链接]
347|12
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
chuxh|  楼主 | 2018-3-16 19:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

沙发
juventus9554| | 2018-3-16 19:17 | 只看该作者

你要做什么

使用特权

评论回复
板凳
chuxh|  楼主 | 2018-3-16 19:19 | 只看该作者
我想做一个spwm 初步想法是如果pwm每发生一个波形后触发中断改变一次占空比  不知道是否可行

使用特权

评论回复
地板
chuxh|  楼主 | 2018-3-16 19:23 | 只看该作者
还有pwm他的中断是否就是每产生一次波形触发一次中断?

使用特权

评论回复
5
supernan| | 2018-3-16 19:26 | 只看该作者

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他的中断是否就是每产生一次波形触发一次中断?- 可以设置

使用特权

评论回复
6
chuxh|  楼主 | 2018-3-16 19:31 | 只看该作者

谢谢了。不知道哪里可以找到中文文档。。对于上述问题,我已经解决了,用的是pwm中断后修改占空比实现了spwm波

使用特权

评论回复
7
dingy| | 2018-3-16 19:33 | 只看该作者
你是说用户模块的是吗?打开其网页如PSoC Creator组件数据手册 或PSoC Designer用户模块数据手册 在后面的language里面选择中文就可以了,器件的datasheet也是一样

使用特权

评论回复
8
pangb| | 2018-3-16 19:36 | 只看该作者


你说的可靠是指什么?你试验验证一下就知道了

使用特权

评论回复
9
renyaq| | 2018-3-19 14:24 | 只看该作者
这个中断是输入还是输出呢?

使用特权

评论回复
10
chuxh|  楼主 | 2018-3-19 14:29 | 只看该作者

是输出,用来产生一个中断信号,告诉CPU中断当前的执行,进入中断服务程序中要求执行的动作。

使用特权

评论回复
11
supernan| | 2018-3-19 14:32 | 只看该作者
找个中文的数据手册看看就知道了,中文的数据手册论坛里面有,lz找下。

使用特权

评论回复
12
xxrs| | 2018-3-19 14:34 | 只看该作者

这不就是产生中断信号么??

使用特权

评论回复
13
chuxh|  楼主 | 2018-3-19 14:40 | 只看该作者
结贴了,多谢大家讨论这么多哈,呵呵

使用特权

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

本版积分规则

936

主题

11296

帖子

2

粉丝