完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好!如何配置GPIF端口,使CLK的上升沿(从外部时钟,25 MHz)在32位从存储在缓冲器中的端口?一旦缓冲区被填充,它就被发送到PC.。
以上来自于百度翻译 以下为原文 Hi! How to configure GPIF port so that the rising edge of CLK (from external clock, 25 MHz) at 32 bits from port stored in a buffer? Once the buffer is filled, it is sent to the PC. |
|
相关推荐
18个回答
|
|
你好,请看附件示例项目。该项目是为了从ADC读取数据而开发的。谢谢,赛克利纳。
以上来自于百度翻译 以下为原文 Hi, Please have a look at the attached example project. That project is developed for reading data from ADC. Thanks, sai krishna. |
|
|
|
|
|
|
|
你好,
很抱歉,再次附上。 谢谢, 西克里希纳。 AdCFX3Mask.Zip 2.2兆字节 以上来自于百度翻译 以下为原文 Hi, Sorry for that and attaching again. Thanks, sai krishna.
|
|
|
|
嗨,谢谢你的帮助!我选择从32位同步接口与外部的正计时。我用状态机有问题。例如不明确,有两个流和它们如何与港口的互动。我试图让我的设备状态机。电thread0读取数据到缓冲区后,GPIF缺。填充缓冲区生成后dma_rdy_th0,对吗?如何将数据从缓冲区传输到USB端口?
12PNG 11.1 K 以上来自于百度翻译 以下为原文 Hi, Thanks for your help! I select synchronous slave 32-bit interface with external positive clocking. I have a problem with state machine. In example is not clear for which there are two streams and how they interact with ports. I tried to make state machine to my device. After power up THREAD0 read data from GPIF-porr into buffer. After filling buffer generates DMA_RDY_TH0, right? How to transfer data from the buffer to USB-port?
|
|
|
|
你好,
假设您已经分配了16KB大小的缓冲区,并在PIB套接字和UBSocket之间创建的DMA通道计数为4。如果您使用的是单线程,那么它将分配4×16kb的缓冲区。但是如果你使用两个线程和多个DMA到一个通道,那么它将为每个线程分配4×16kb的缓冲区。 假设GPIFII已经从ADC读取16KB的数据,然后GPIFIII读取下一个字节(16KB加…) 然后DMA通道切换到下一个16KB缓冲器。但是这种切换包括一定的延迟量。 为了避免这一点,我们在附图中使用了两个线程。此线程切换不包括任何延迟。 因此,一旦分配给TH0的缓冲器被填充,我们就开始将填充缓冲器分配给TH1。 同时,Th0发生缓冲器切换,TH0将准备接受新的数据字节。一旦分配给TH1的第一个缓冲器被填充,它将切换到分配给TH0的第二个缓冲器,并且这个过程继续下去… 我希望这个解释有助于你的设计。 如果你还有什么问题,请告诉我。 谢谢, 西克里希纳。 以上来自于百度翻译 以下为原文 Hi, Let say you have allocated buffer of 16KB size and count as 4 to the DMA channel that you are creating between PIB socket and USB socket. If you are using single thread then it will allocate 4*16KB buffer. But if you are using two threads and DMA many to one channel then it will allocate 4*16KB buffer for each thread. Let say GPIF II already read 16KB of data from the ADC and then GPIF II is reading the next byte (16KB plus...) Then DMA channel switches to the next 16KB buffer. But this switching includes some definite amount of delay. So to avoid this we are using two threads in the attached example. This thread switching does not include any delay. So as soon as the buffer allocated to TH0 is filled then we start filling buffer allocated to TH1. In the mean time, buffer switching happens for TH0 and TH0 will be ready to accept new data bytes. As soon as first buffer allocated to TH1 is filled it will switch to second buffer allocated to TH0 and this process goes on... I hope this explanation help you with your design. Please let me know if you have any more questions. Thanks, sai krishna. |
|
|
|
你好!溪流清澈,谢谢!现在我用单个线程的项目(见附件)。不幸的是,董事会发出错误的价值观和一些数据包返回错误997后(见附图)。我想我还没有正确配置DMA和绘制状态机。
ADCFX3.ZIP 1.1兆字节 以上来自于百度翻译 以下为原文 Hi! With streams was clear, thanks! Now I made the project with a single thread (files attached). Unfortunately, the board sends the wrong values and after some packets return error 997 (see attached image). I think I still incorrectly configured DMA and draw state machine.
|
|
|
|
你好,
请尝试附加的GPIFII项目。 我刚刚改变了从Logix1到DMAYRYDYTH0的状态转换。我们应该检查的缓冲区进行in_data行动准备。我们可以在DMAY-RYDYTH0标记的帮助下知道这一点。 请让我知道这个项目你的项目的行为。 谢谢, Sai Krishna。 以上来自于百度翻译 以下为原文 Hi, Please try with the attached GPIF II project. I just changed the state transition from Logic_One to DMA_rdy_TH0. We should be checking for readiness of the buffer we perform IN_DATA action. We can know this with the help of DMA_RDY_TH0 flag. Please let me know the behavior of your project with this project. Thanks, Sai Krishna. |
|
|
|
你好!明天我将尝试使用我项目中的前一个例子。请再次附上修改后的工程。
以上来自于百度翻译 以下为原文 Hi! Tomorrow I will try to use the previous example in my project. Please attach the modified project again). |
|
|
|
|
|
|
|
|
|
|
|
具有2个线程的示例不能正常工作。马克斯的尺寸是16384。从设备读取数据包(数据是正确的)之后,接下来读取动作返回错误997。如果我设置了LDXDATAYCONTTO 32766(在GPIF II设计器中),在12次读取操作之后出错。如果在8次读取操作之后,将CyfxxDMAiBuffyCalt设置为4错误。缓冲区溢出?为什么?
以上来自于百度翻译 以下为原文 Example with 2 threads does not work correctly. Max paket size = 16384. After I read 2 packets from device (data is correct) next read action return error 997. If I set LD_DATA_COUNT to 32766 (in GPIF II designer), error raising after 12 read actions. If I set CY_FX_DMA_BUF_COUNT to 4 - error after 8 read action. Buffer overflow? Why? |
|
|
|
我不明白为什么这样的行为。请帮帮我!!
以上来自于百度翻译 以下为原文 I can`t understand why such behavior. Please help me!! |
|
|
|
你好,
我们也在追求相同的配置(ADC流数据到FX3),并且对SUNC正在经历的问题非常感兴趣。 此外,当我们加载附加项目的仿真波形是由sinc的版本,但在版本提供的rskv我们无法看到的数据跟踪和GPIF II设计师报告“无效的状态机路径的模拟状态rd_data” 以上来自于百度翻译 以下为原文 Hi there, We are also pursuing the same configuration (ADCs streaming data into FX3) and are very interested in a resolution to the problem Sinc is experiencing. Additionally when we load the attached projects the simulation waveforms are present in the version supplied by Sinc, but in the version supplied by RSKV we are unable to see the data trace and GPIF II designer reports "Invalid state machine path for the simulation for state RD_DATA" |
|
|
|
嗨,Sinc和艾登,
请尝试附上的项目。 谢谢, 西克里希纳。 以上来自于百度翻译 以下为原文 Hi Sinc and Aiden, Please try with the attached project. Thanks, sai krishna. |
|
|
|
FX3A AD9269A MTUSB3.CYDSN.ZIP
5 K 以上来自于百度翻译 以下为原文 |
|
|
|
你好!尝试附加的解决方案。PC上的解决方案(芯片组X79,Win 7),但不工作在2个超字节(芯片组HM76,Win 8)。也许,司机的问题。祝你好运!
ADC2.ZIP 1.1兆字节 以上来自于百度翻译 以下为原文 Hi! Try attached solution. Solution work on PC (chipset X79, win 7), but does`t work on 2 ultrabooks (chipset hm76, win 8). Maybe, problem with driver. Good luck!
|
|
|
|
嗨,RSKV。你的最后一个例子是最好的!)谢谢您!
以上来自于百度翻译 以下为原文 Hi, RSKV. Your last example the best! )) Thank you! |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
713个成员聚集在这个小组
加入小组1888 浏览 1 评论
1637 浏览 1 评论
3392 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1556 浏览 6 评论
1371 浏览 1 评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
170浏览 2评论
170浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
304浏览 2评论
323浏览 1评论
45浏览 1评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-3-28 19:05 , Processed in 0.688388 second(s), Total 92, Slave 76 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 深圳华秋电子有限公司
电子发烧友 (电路图) 粤公网安备 44030402000349 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号