你好,
这是我的第一个帖子。我在PoSO5LP上使用了CY8CKIT-059工具包上的周期表。
输入方波在
timeRy1的捕获输入上。
该周期被计算为TimeRy1的捕获寄存器的2个连续值之间的差值。
结果用于设置VDAC(全SACLE=4.080V)的值。
定时器时钟设置为1MHz,因此对于4kHz至16 kHz的频率(周期256μs下降到62秒),VDAC的8位值不应该溢出。
结果是好的,除了一些杂散值,如示波器上所示。
上迹是输入信号(0…5V),低迹是DE VDAC1的输出。
有人看到我做错了什么吗?
谢谢你的帮助
伯纳德
2018031909922.JPG
2兆字节
201803190094253.JPG
1.8兆字节
金龟子
1.5兆字节
以上来自于百度翻译
以下为原文
Hi,
It’s my first post . I’m having trouble with a periodmeter on PSOC5 LP, on a cy8ckit-059 kit.
The input square wave is on the capture input of Timer_1.
The period is calculated as the difference between 2 successive values of the capture register of Timer_1.
The result is used to set the value of a VDAC (full sacle = 4.080V)
The timer clock is set to 1MHz, so for frequencies of 4kHz to 16 kHZ (period 256µs downto 62µs) there should be no overflow of the 8 bit value of the VDAC.
The result is ok, except for some spurious values, as shown on the oscillograms.
Upper trace is the input signal ( 0..5V), lower trace is the output of de VDAC1.
Can anyone see if I’ve done something wrong ?
Thank you for your help
Bernard