什么状况?

[复制链接]
235|7
手机看帖
扫描二维码
随时随地手机跟帖
liuzaiy|  楼主 | 2019-4-20 15:52 | 显示全部楼层 |阅读模式
用的是CY8C3866,想用counter去计算PWM的个数,以控制PWM个数的输出,把PWM输出接到FFconter的CLOCK端后,编译后有了如下错误提示:Timer "\Counter:CounterHW\" can only use one of the digital clock dividers or bus clock as the clock source.,这算什么状况?

使用特权

评论回复
yinxiangh| | 2019-4-20 15:55 | 显示全部楼层

然道PWM还不是数字信号了?

使用特权

评论回复
pangb| | 2019-4-20 15:59 | 显示全部楼层
计数器的输入要求怎么比PSOC1的高啊?

使用特权

评论回复
liuzaiy|  楼主 | 2019-4-20 16:03 | 显示全部楼层
是啊,在1这样用法没有错的阿。。。

使用特权

评论回复
ousj| | 2019-4-20 16:06 | 显示全部楼层
FF Counter 的Clock不能用Digital 模块,只能直接连时钟。

使用特权

评论回复
morrisk| | 2019-4-20 16:09 | 显示全部楼层

Counter datasheet怎么写的

使用特权

评论回复
zyf部长| | 2019-4-20 16:13 | 显示全部楼层
Fixed-Function Components
When configured to use the FF block in the device, the Counter component has the following
restrictions:
 The count input must be a digital clock from the clock system.
 If the frequency of the clock is to be the same as bus clock, the clock must actually be the
bus clock.
Open the Configure dialog of the appropriate Clock component to configure the Clock Type
parameter as Existing and the Source parameter as BUS_CLK. A clock at this frequency
cannot be divided from any other source, such as the master clock, IMO, and so on.

所以用个 UDB的Counter 吧

使用特权

评论回复
liuzaiy|  楼主 | 2019-4-20 16:18 | 显示全部楼层
谢谢阿,原来只能是时钟阿,UBD可以是知道的

使用特权

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

本版积分规则

735

主题

7546

帖子

2

粉丝