完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我一直在尝试一个PSoC 3 firsttouch的评估套件。到目前为止,我对此非常满意。 我开始思考一个PSoC芯片3严重的应用程序,并想运行一些想法在这里看看其余的社会,认为它。 我想建立一个通用的IR(红外)接收器和解码器。一个可以解码任何常见的红外遥控信号。前端将威或尖锐的红外接收机解调36 / 38khz信号。 我想我会连接的红外接收器输出一个数字输入引脚。 那么接下来最好的是什么呢?我能在硬件上实现红外信号解码器吗?或者我应该只产生一个中断信号的下降沿,然后解码所有的软件吗? 我已经在不同的项目做了好几次,而使用传统的微处理器和软件做这一切。我主要只是计数增量(信号保持高或低的时间)和查找表进行比较,以一定数量的抖动了。 然而在这种新的方法,我想知道如果这是可能的实际解码红外信号,并提取控制代码,最好是在硬件,或结合硬件/软件。有什么想法吗? 我已经懂得如何解码红外信号如RC-5,-6等,所以我不需要参考了解红外-我寻找任何见解的最好的方法去做这在PSoC。 什么是最好的?一个简单的数字输入引脚,ISR和软件计数器?或某种连接一个定时器和转移登记数字输入?如何处理序言,我怎么能检测不同的编码方案? -肯尼 以上来自于百度翻译 以下为原文 Hi, I've been experimenting with a PSoC 3 'FirstTouch' eval kit. So far I am very pleased with it. I am beginning to think about a serious application for a PSoC 3 chip, and thought I would circulate a few ideas here and see what the rest of the community think of it. I'd like to build a universal IR (Infrared) receiver and decoder. One which can decode just about any common infra red remote control signal. The front end would be Vishay or Sharp Infrared receivers which demodulate the 36/38KHz signal. I think I'd connect the output of the IR Receiver to a digital input pin. So what would be best next? Can I implement an IR Signal decoder in hardware? Or should I simply generate an interrupt on the falling edge of the signal, then decode it all in software? I've already done this several times in various projects, but using traditional micro-processors and doing it all in software. Mainly I just count deltas (the time the signal stays hi or low) and compare against a look up table, with a certain amount of jitter built in. However in this new approach I wonder if it's possible to actually decode the IR signal and extract the control codes - preferably in hardware, or a combination of hardware/software. Any thoughts? I already understand how to decode IR signals such as RC-5, RC-6 and so on, so I don't need references to 'understanding ir' - I'm more looking for any insight on the best approach to take to doing this on PSoC. What would be best? A simple digital Input Pin, and ISR and software counters? Or some kind of digital input connected to a timer and shift register? How would that handle the preamble, and how could I detect different encoding schemes? -Kenny |
|
相关推荐
6个回答
|
|
我认为这可以在硬件上使用UDB来完成。你是否需要处理器的MIPS来执行其他功能(因此想要卸载到硬件)或者你只是好奇它是否能做到这一点?我想问的是,如果你已经有了代码,如果你用软件保持它,它看起来是一个简单的端口。
-博比 以上来自于百度翻译 以下为原文 I think this could be done in the hardware using the UDBs. Do you need the processor's MIPS to perform other functions (and thus the desire to offload to the hardware) or are you just curious if it can do it? Reason I ask is if you already have code, it seems like it would be an easy port if you keep it done in software. -Bobby |
|
|
|
警察,
谢谢你的回复。你和我谈论UDBs引起了我的兴趣,我想我需要更多的了解。 我移植了我现有的代码(从兔子5000向上)并让它工作。我放置了一个数字输入引脚,在下降沿启用中断,并弹出一个简单的循环轮询状态到ISR引脚。在PLD上这样做是一种非常低效的方式,所以我想知道它是否可以在硬件中完成。 有一件事令我印象深刻的是这个:我接了一个‘不’门数字输出引脚连接到LED板上,它继续工作,即使调试器正坐在一个突破点。谁是新的PSoC和CPLD这是令人印象深刻。;-) 现在,有一个很好的资源,我可以深入了解的UDB中的能力? -K 以上来自于百度翻译 以下为原文 Bobby, Thanks for the reply. You have piqued my interest with talk about UDBs - that's something I think I'll need to learn more about. I ported my existing code (From a Rabbit 5000 uP) over and have it working. I placed a single digital input pin, enabled interrupt on falling edge and popped a simple loop polling the pin for state into the ISR. It feels like a really inefficient way to do it on a PLD hence why I'm wondering about whether it can be done in hardware. One thing I was very impressed with was this: I connected a 'not' gate to a digital output pin and connected it to a LED on the board and it continued to work even when the debugger was sitting on a break point. For someone who is brand new to PSoC and CPLDs this was impressive. ;-) Now, is there a good resource I can dig into to learn about the capabilities of the UDBs? -K |
|
|
|
我看了一下计时器V1.0组件。
看来,它可以做这项工作,部分,当设置触发在任何一个边缘。然而,它的FIFO最多只能容纳4个计数。如果可以提升到一个更高的数字,比如说48,那么它将是理想的。 以上来自于百度翻译 以下为原文 I had a look at the timer v1.0 component. It looks like it could do the job, partly, when set to trigger on either-edge. However it's fifo can hold a maximum of only 4 counts. If that could be uprated to a higher number, like say, 48 then it would be ideal. |
|
|
|
有关UDBs的更多信息,我建议从PSoC 3和PSoC 5技术参考手册(TRM)开始。你可以在这里找到:HTTP://wwwyCysP.com?RID=35180。
-博比 以上来自于百度翻译 以下为原文 For more information about the UDBs, I recommend starting with the PSoC 3 & PSoC 5 Technical Reference Manual (TRM). You can find it here: http://www.cypress.com/?rID=35180. -Bobby |
|
|
|
|
|
|
|
嗨,KennyMillar,
组件有一个深度为4字节的硬件FIFO。FIFO的大小也可以增加到这之外。为此,SRAM存储器将被耗尽,和ISR将处理确保字节存储在指定长度的FIFO。 当做, DASG 以上来自于百度翻译 以下为原文 Hi KennyMillar, The Components have a Hardware FIFO which is 4 Bytes deep. The size of the FIFO can be increased beyond this too. For this, the SRAM memory will be used up, and ISRs will handle to ensure that the bytes are stored in the FIFO of specified length. Regards, dasg |
|
|
|
只有小组成员才能发言,加入小组>>
750个成员聚集在这个小组
加入小组2054 浏览 1 评论
1809 浏览 1 评论
3621 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1746 浏览 6 评论
1499 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
484浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
337浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
400浏览 2评论
341浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
834浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-8 16:35 , Processed in 0.908520 second(s), Total 59, Slave 52 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号