完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
这是我第一次在柏树论坛上发表文章,希望有人能帮上忙。这是我使用FX2的尝试。我一直在努力让EZ-USB FX2从ADC(模拟设备9251)传输数据,但就是无法让它工作。在这一点上,我已经尝试了所有的事情,所以现在我要向开发者社区寻求帮助。
我们的板在这一点上有3个主要组成部分:一个微芯片Pic32微控制器,AD9251 ADC和FX2。PIC32是我非常熟悉的一部分,项目的一部分工作良好[现在],PIC32控制ADC,所有与主机的通信都是用FX2完成的。其想法是,向FX2发送一个[供应商]命令,它使用GPIO引脚来向PIC32发出信号以启动ADC,以便将数据(通过FD0:15总线连接到FX2)将流向FX2(其配置为SalvFIFO模式)和主机。 这就是它应该工作的方式。我知道PIC32是做应该做的事情是ADC。不幸的是,从ADC的数据不会进入FX2的FIFO的6。我已经阅读了TRM很多次,看着这几个例子有增加不少调试供应商命令以便我能看到什么在Ep6 FIFO和各种寄存器。一切看起来应该工作,但我没有得到的数据从ADC到6 FIFO。 我附上我的周围。C文件(我没有重命名它)给我做了什么。如果任何人都可以看一看,看看我做了什么错事,那将是极大的赞赏。我原本设定autoin对NCCLS(似乎没有工作)然后尝试设置当我真正得到[供应商]启动命令,它做了一个0 & gt;1过渡。同样,这没有做任何事。 我真的不知所措。FX2应该是一个非常简单的芯片。使用从属FIFO模式是“只需要工作”。当然,和大多数其他事情一样,情况并非如此。所以,如果有人能给我指出正确的方向,这将是极大的赞赏。 以上来自于百度翻译 以下为原文 This is the first time that I have posted on the Cypress forums so hopefully someone can help out. And this is my try at using an FX2. I've been working on trying to get the EZ-USB FX2 to transfer data from an ADC (Analog devices 9251) but just can't get it to work. I've tried just about everything at this point so now I'm going to the developer community for help. Our board has 3 main components at this point: a Microchip PIC32 micro-controller, the AD9251 ADC and the FX2. The PIC32 is something that I'm very familiar with and that part of the project is working well [now], The PIC32 controls the ADC and all communication with the host is done with the FX2. The idea is that you send a [vendor] command to the FX2 which uses GPIO pins to signal the PIC32 to start the ADC so that data (which is connected to the FX2 via the FD0:15 bus) will flow to the FX2 (which is configured in salve FIFO mode) and to the host. So that's how it's supposed to work. I know that the PIC32 is doing what it is supposed to do as is the ADC. Unfortunately, no data from the ADC ever gets into the EP6 FIFO of the FX2. I've read through the TRM many times, looked at what few examples there are and added a lot of debugging vendor commands so that I can see what's in the EP6 FIFO and the various registers. Everything looks like it should be working but I get no data from the ADC into the EP6 FIFO. I've attached my periph.c file (I didn't rename it yet) to show what I have done. If anyone can take a quick look at it and see if I am doing anything wrong, it would be greatly appreciated. I had originally set AUTOIN to on for EP6 (that didn't seem to work) but then tried setting when I actually get the [vendor] start command so that it did a 0->1 transition. Again, that did nothing. I'm really at a loss here. The FX2 is supposed to be a very simple chip to use. Using slave FIFO mode is "just supposed to work". Of course, like most other things that's not the case. So if anyone can point me in the right direction, it would be greatly appreciated. |
|
相关推荐
1个回答
|
|
嘿版主,请你删除这个帖子,因为我有一个更合适的后续帖子。我会自己做,但似乎没有办法。
以上来自于百度翻译 以下为原文 Hey moderator, can you please delete this post as I have a follow up post that is more appropriate. I would do it myself but there seems to be no way to do it. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2071 浏览 1 评论
1827 浏览 1 评论
3640 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1513 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
511浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
361浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
858浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 12:12 , Processed in 0.760146 second(s), Total 48, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号