完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我正在研究我们的语音信号,并使用UART向PC发送这些数字样本,并使用超终端在PC中进行采集。 问题是我丢失了很多样品。对于16000个BPS采样率,我只收集每秒1600个样本。 我没有使用DMA或ISR,我想这是一种有效的方式吗? 如果是这样的话,有人能帮助我把ISR或DMA添加到当前工作空间,包括C代码吗? 如果没有,还有其他有效的方法吗? 我已经附加了我的工作空间。 提前感谢 以上来自于百度翻译 以下为原文 Hi , I am working on digitising our speech signals and transmitting these digital samples using UART to PC and collecting in PC using hyperterminal. Problem is am losing many samples. For 16000BPS sampling rate, i collect only 1600 samples per second. I have not used a DMA or ISR ,which i suppose, to be an efficient way? If so could somebody help me with adding the ISR or/and DMA to the present workspace including the C-code? If not, is there any other efficient way? I have attached my workspace. Thanks in advance |
|
相关推荐
9个回答
|
|
或者这取决于输入信号的变化吗?
此外,我正在收集我的数字样本使用超终端,即在ASCII形式。如果接收到的样本与输入信号一致,有没有软件可以检查/绘图?或者我们需要把这个ASCII转换成二进制形式? 非常感谢! 以上来自于百度翻译 以下为原文 Or does it depend on the variation of input siignal ? Also i am collecting my digital samples using Hyperterminal i.e in ASCII form. Is there any software to check/plot if the received samples are in accordance with the input signal? or we need to convert this ascii to binary form? Thanks a lot in advance ! |
|
|
|
我建议你去看看这里的视频,AppNog和代码:
AN6102-PSoC®3和PSoC 5 -使用DMA数据缓冲 HTTP://www. CyPress?COM/?RID=44335 耐心地复习这些材料,它会解决你的问题。 PSOC岩石 当做, 克曼卡德 以上来自于百度翻译 以下为原文 I'd advise you to go through the video,appnote and code linked here: AN61102 - PSoC® 3 and PSoC 5 - ADC Data Buffering Using DMA http://www.cypress.com/?rID=44335 Go through those materials patiently,it will solve your problem. PSoC Rocks, Regards, kmmankad |
|
|
|
这里是一个应用程序,它将从UART、以太网或USB
非商业用途。 HTTP://www. SelMaSurvi.COM/STAMPPLOTT/DEXX.HTM 问候,Dana。 以上来自于百度翻译 以下为原文 Here is an application that will graph from UART, or Ethernet or USB, free for non-commercial uses. http://www.selmaware.com/stampplot/index.htm Regards, Dana. |
|
|
|
|
|
|
|
我想你不能储存160个样品。即使一个样本只有一个字节,它将占用可用内存量的三倍。因此,你应该创建2页或三页,比如说4K,并以循环方式捕获它们。AppNo.AN52505包含了一个例子,称为“乒乓缓冲”。然后,你可以把每一页转移到PC后,它已经完成,而另一个再次填补。
为了每秒发送16个采样到PC,您需要每秒至少160比特的传输速率(串行端口的开销至少传输每字节10位)。最好使用USB端口(它可以模拟PC端的串行端口),并通过它进行批量传输。 以上来自于百度翻译 以下为原文 I don't think you can store 160.000 samples. Even if one sample is only one byte, it would take nearly trice the amount of available memory. So you should create 2 or three pages of, lets say, 4k, and capture into them in a round-robin fashion. The AppNote AN52705 contains an example for this, called 'ping-pong-buffer'). Then you can transfer each page to the PC after it has been finished, while the other one gets filled again. To send 16.000 samples per second to the PC, you will need a transfer rate of at least 160.000 bits per second (the overhead for the serial port transmits at least 10 bits per byte). It might be better to use the USB-port for that (it can emulate a serial port on the PC side), and to bulk transfer over it. |
|
|
|
好的,我刚查过你的邮件。会的!
我也使用PSOC5—050用于这个套件和PSoC创建者2。我在这个论坛上看到很少的帖子说我们需要一个外部晶体来使用像USB或UART这样的通信设备。有人能给它上点亮光吗? 以上来自于百度翻译 以下为原文 Ok Hli, i just checked your post. Will do that ! Also am using Psoc5 -050 for this kit and psoc creator 2.0 . I see few posts in this forum that says we need an external crystal for using communication devices like USB or UART. Could someone please throw some light on it? |
|
|
|
是的,从创建者2开始,你需要一个使用USB的水晶。原因是内部振荡器的频率对于USB来说不够精确。如果你有一个生产硅的-050套件,晶体应该已经在那里(检查PSOC附近,应该有一个24MHz晶体)。如果你有一个带有ES1硅的套件,你需要焊接一个晶体。有关具体的说明,请看这里:HTTP://www. CyPress?ID=4和;RID=56796。在论坛上有一个更详细的讨论:APP =论坛和ID ID=2233和RID=56823(包括使用其他晶体频率,以及选择什么电容)。对于我自己,我使用了一个股票12MHz晶体和22PF电容器,工作良好。
以上来自于百度翻译 以下为原文 Yes, starting with Creator 2.0 you need a crystal for using USB. The reason is that the frequency of the internal oscillator is not accurate enough for USB. If you have a -050 kit with production silicon, the crystal should be already there (check near the PSoC, there should be a 24MHz crystal). If you have a kit with -ES1 silicon, you need to solder a crystal. For specific instructions, look here: http://www.cypress.com/?id=4&rID=56796 . There was a more detailed discussion in the forum here: http://www.cypress.com/?app=forum&id=2233&rID=56823 (including using other crystal frequencies, and what capacitors to choose). For myself, I used a stock 12MHz crystal and 22pF capacitors, which worked fine. |
|
|
|
不要忘记,如果你正在处理语音信号压缩是一个非常
可行的替代正常过采样。 需要考虑的一些算法 HTTP://193.224.6174/IT2002 2/PDF/L42.PDF HTTP://www. Ti.COM/LIT/AN/SLAA361/SLAA361.PDF HTTP://www. McCHIP.COM/STELTEN/IDCPLG?IDCService = SSYGETXEPGE和NoDEID=2660和PARAM= NE535126 HTTP//www.亚马逊/COM/Script处理嵌入式系统-eBoo/Dp/B08BBMYRM HTTP://Cuel.EdU/Lun/CursSe/EeCe060/FialPrimeSt/Sn66/WC227μRKS33/WC227μRKS33/NETX.HTM 问候,Dana。 以上来自于百度翻译 以下为原文 Don't forget if you are dealing with speech signals compression is a very viable alternative to normal oversampling. Some algorithims to consider - http://193.226.6.174/IT2002/pdf/L42.pdf http://www.ti.com/lit/an/slaa361/slaa361.pdf http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2660¶m=en535126 http://www.amazon.com/Speech-Processing-Embedded-Systems-ebook/dp/B008BBMYRM http://people.ece.cornell.edu/land/courses/ece4760/FinalProjects/s2006/wc227_rks33/wc227_rks33/index.htm Regards, Dana. |
|
|
|
还有一个有用的参考——
HTTP://www. pSOCGooReR.COM/AppAddis/TXYPIAPAPNOTE/AN2095.PDF 问候,Dana。 以上来自于百度翻译 以下为原文 One more reference that may be useful - http://www.psocdeveloper.com/uploads/tx_piapappnote/an2095.pdf Regards, Dana. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2077 浏览 1 评论
1829 浏览 1 评论
3645 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1771 浏览 6 评论
1517 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
525浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
379浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
416浏览 2评论
363浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
873浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-2 03:59 , Processed in 1.033608 second(s), Total 95, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号