完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用PSOC3的“频率测量”例子,并希望在一个特定的时间段(例如1秒)将整个输出修改为脉冲计数(当电压超过阈值)。最后,我想输出这些脉冲的总时间(INT)。一段时间(例如1秒),我已经附加了我目前正在工作的文件。在“脉冲计数/秒”的LCD读数上显示的值不能提供基于波形发生器/镜像结果的准确读数。
提前感谢您的帮助。 窗口比较器 1.8兆字节 以上来自于百度翻译 以下为原文 I am using the "Frequency Measurement" example for the PSoC3 and would like to modify the overall output to be the number of pulse counts (when voltage crosses a threshold) over a specific period of time (e.g. 1 sec). Finally I would like to progress to outputting the total time of these pulses (integrate time when pulse is high) for a defined period of time (e.g. 1 sec). I have attached the file I am working from currently. The value displayed on the LCD readout of "pulse count/sec" is not providing an accurate reading - based on wave generator/Oscope results. Thank you in advance for you help.
|
|
相关推荐
9个回答
|
|
当在这里上传一个创建者项目时,你应该:
第一、构建& GT;清洁项目(最小化文件数量) 第二。文件& gt;创建工作区束(最小,zip) 第三、上传到这里。 我不能打开你的项目,提供的PDF是一个柏树数据表。 当计数器不计算时,我可以想到一些原因: 信号质量差。PSOC器件中的一些调节可以改善 频率超出极限 错频同步 计数器的错误选通/启用 由于程序读出导致的干预/干扰计数器 正如你所看到的,我们需要更多的信息来帮助你。 鲍勃 以上来自于百度翻译 以下为原文 When uploading a Creator-project here you should: 1st. Build->Clean Project (That minimizes the number of files) 2nd. File->Create workspace bundle(minimal,zip) 3rd. Upload here. I cannot open your project and the supplied PDF is a cypress-datasheet. When a counter doesn't count there are some reasons I can think of: Poor signal quality. Can be improved with some conditioning within the PSoC device Frequency out of limit Sync with wrong frequency wrong gating / enabling of counter Intervention / disturbing the counter due to read-out from program As you can see from this, we need a bit more information to help you. Bob |
|
|
|
很抱歉。遵照您的指示,我重新附加了一个zip文件。你有没有理由打开和运行之前?
我急切地等待你的回应。谢谢你的帮助。 Windows WixBuffer-Cyrk.SaveV01.Zip 277.8 K 以上来自于百度翻译 以下为原文 Sorry about that. I have re-attached a zip file after following your instructions. Is there a reason you were not able to open it up and run before? I eagerly await your response. Thank you for your help. |
|
|
|
正如我之前说过的,第一个拉链没有包含你和我期望的东西,你自己看看。
第二个拉链是O. K! 我采取了自由改变(和评论)很多。注意不要在下载后改写原始项目。没有时间和设备来测试,这取决于你。当你真的想使用中断(我把它们拿出来)联系我一些提示。 快乐编码 鲍勃 Windows WixBuffer-Cyrk.CaseV011Zip 277.7 K 以上来自于百度翻译 以下为原文 As I said before, the first zip didn't contain what you (and me) expected, have a look by yourself. The second ZIP was O.K! I took the freedom to change (and comment) a lot. take care not to overwrite your original project after downloading. Had no time and equipment to test, that is up to you. When you really want to use interrupts (I took them out) contact me for some hints. Happy coding Bob |
|
|
|
谢谢你看一看。我建立和编程您发送的文件,无法找出为什么当正弦波电压高于VDDA/2时,比较器输出没有触发(它在我最初发送的文件中工作正常)。请告知,谢谢。
以上来自于百度翻译 以下为原文 Thanks for taking a look. I built and programmed the files you sent and cannot figure out why the comparator output is not triggering when sine wave voltage is above Vdda/2 (it works correctly in the file I originally sent). Please advise, thanks. |
|
|
|
我没有最轻的线索。LED输出是否显示出任何信号?
鲍勃 以上来自于百度翻译 以下为原文 I don't have the lightest clue. Does the LED - output show any signal? Bob |
|
|
|
不。我在一个显微镜上监视它,它是一条平线。当用原始代码重新编程时,它可以正常工作。
以上来自于百度翻译 以下为原文 Nope. I have it monitored on an Oscope and it is a flatline. When re-programed with original code - it works OK. |
|
|
|
重新构建该模式的一部分,直到它再次工作,然后将其连接到电路的其余部分。有一小块模拟线被移除。我根本没有改变比较器。
鲍勃 以上来自于百度翻译 以下为原文 Re-build that part of the schematic until that works again, then connect it to the rest of the circuit. There was a small piece of an analog wire which removed. I didn't change the comparator at all. Bob |
|
|
|
这是我试图执行的项目的列表。
1。如果NeWestRead读取为lt;Max值,则写入数组缓冲器;否则等待下一个读数2。一旦阵列被填充了3个测量值,取平均值并作出关于输出状态3的决定。用最新的读数连续更新缓冲区,替换最老的读数 Windows WixBuffer-Cyrk.CaseVo.03.Zip 1.4兆字节 以上来自于百度翻译 以下为原文 Here is a list of the items which I am trying to execute. 1. If newest_reading is < max_value, write to array buffer; Else wait for next reading 2. Once array is filled with 3 measured values, take the average and make a decision about the output state 3. Continuously update buffer with latest reading, replacing the oldest reading |
|
|
|
你的最终代码是什么?我正在对一个RH传感器进行一段时间的频率测量。RH基本上是一个可变电容器。
我在看比较器。然后使用计数器。我在你的帖子上看到了一个zip文件。我只是复制了它,今晚我会看一下你的代码。有什么帮助吗? 谢谢 菲利普尼尔森 以上来自于百度翻译 以下为原文 What was your end code. I am interigating a RH sensor with a frequency over time. The RH is basicaly a variable capacator. I was looking at using a comparator. Then use a counter. I saw a zip file on your post. I just copied it and I will take a look at your code tonight. Any help? Thanks Philip Nielsen |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2081 浏览 1 评论
1833 浏览 1 评论
3648 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1773 浏览 6 评论
1520 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
530浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
385浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
421浏览 2评论
367浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
879浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 19:57 , Processed in 1.108286 second(s), Total 94, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号