什么状况?

[复制链接]
573|7
 楼主| liuzaiy 发表于 2017-11-11 13:17 | 显示全部楼层 |阅读模式
用的是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 发表于 2017-11-11 13:20 | 显示全部楼层
然道PWM还不是数字信号了?
pangb 发表于 2017-11-11 13:24 | 显示全部楼层
计数器的输入要求怎么比PSOC1的高啊?
 楼主| liuzaiy 发表于 2017-11-11 13:26 | 显示全部楼层
是啊,在1这样用法没有错的阿。。。
ousj 发表于 2017-11-11 13:28 | 显示全部楼层
FF Counter 的Clock不能用Digital 模块,只能直接连时钟。
morrisk 发表于 2017-11-11 13:30 | 显示全部楼层
Counter datasheet怎么写的
zyf部长 发表于 2017-11-11 13:32 | 显示全部楼层
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 发表于 2017-11-11 13:34 | 显示全部楼层

谢谢阿,原来只能是时钟阿,UBD可以是知道的
您需要登录后才可以回帖 登录 | 注册

本版积分规则

735

主题

7546

帖子

2

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