完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HI,在一些情况下,FX3不识别在SynchronousSlaveFIFO中用PKTAN=低和;SLWR=低或ZLP发送的数据。FIFO大小1024×16字节,我尝试发送1024×N字节(N是整数)的数据作为一个短包,但是,FX3不接收完整的数据,以及发送1024×N字节的数据与ZLP。看来FX3忽略了PKTAND的1024字节。此外,1024×16×N字节的大小只能用零长度分组接收。到目前为止看起来还不错。1024个字节的其他数据大小ExpEt可以作为短分组接收。你有什么解决办法来处理数据大小1024×N字节吗?当做,
以上来自于百度翻译 以下为原文 Hi, In several cases, the FX3 does not recognize the data which are sent with PKTEND=Low & SLWR=Low or ZLP in SynchronousSlaveFIFO. With FIFO size 1024 x 16bytes, I try sending 1024 x N bytes(N is integer) data as a short packet, though, the FX3 does not receive whole data as well as sending 1024 x N bytes data with ZLP. It seems that the FX3 ignores the PKTEND with 1024bytes. In addition, the size of 1024 x 16 x N bytes can be received only with Zero Length Packet. It looks OK so far. Other data size exept for 1024 x Nbytes can be received as a short packet. Do you have any solution how to handle the data size 1024 x N bytes? Regards, |
|
相关推荐
5个回答
|
|
我建议从包中产生一个信号PKTACK时间。当FIFO转移到FX3是空的并且当前的USB端点FIFO不是空的时,在预设周期的计时器中,如何确认信号PKTAN的感觉。
以上来自于百度翻译 以下为原文 I suggest generate a signal PKTEND time out of the package. The sense of how to assert the signal PKTEND, when the FIFO to transfer to the FX3 is EMPTY and current u*** endpoint FIFO is NOT EMPTY, during a preset number of cycles the timer. |
|
|
|
我建议从包中产生一个信号PKTACK时间。当FIFO转移到FX3是空的,而USB端点FIFO FX3不是空的时,在预设的周期数定时器时,如何确认信号PKTAN的感觉。
以上来自于百度翻译 以下为原文 I suggest generate a signal PKTEND time out of the package. The sense of how to assert the signal PKTEND, when the FIFO to transfer to the FX3 is EMPTY and u*** endpoint FIFO FX3 is NOT EMPTY, during a preset number of cycles the timer. |
|
|
|
谢谢你的忠告,DiMonstr。你的意思是说最好的拖延时间?我的理解是,PKTAN应该用数据的结尾来声明,而我想发送的数据大小只是1024字节或1024字节的倍数。但是在短时间内发送的数据大小不受FX3所接收。只有与FX3中定义的FIFO大小相对应的数据大小(大小是1024×16字节)才能用ZLP通过FX3接收。
以上来自于百度翻译 以下为原文 Thanks for the advise, DiMonstr. You mean that it is better to assert PKTEND with some delay? My understand is that the PKTEND should be asserted with the end of data, and the data size I want to send is just 1024bytes or multiples of 1024bytes. But the data size sent as a short packet are not received by FX3 at any time. Only the data size corresponding to the size of FIFO defined in the FX3 (size is 1024 x 16bytes) can be received with ZLP by FX3. |
|
|
|
是的,当然可以。我为控制器FX2实现。对于它来说,没有断言相对于SLWR的信号PKAND。我不能断言是否用那种方式工作FX3。文档是在FX3中写入的,信号PKKADE必须与SLWR和数据的最后一个字同步设置。你们俩都工作吗?我没有板DVK CYSUB3KIT-1001,不能测试:(即将到来…
以上来自于百度翻译 以下为原文 Yes, sure. I implemented for controller FX2. For it there is no limit as to assert the signal PKTEND relative to SLWR. I can not really assert whether or not work that way FX3. The documentation is written in the FX3, the signal PKTEND must be set in sync with the SLWR and the last word of data. Do you both work? I do not have board DVK CYUSB3KIT-001, can not test:( Soon to coming ... |
|
|
|
关于FX2,你是对的。事实上,FX2和FX3之间的行为似乎是不同的。FX3在大多数情况下直接工作在数据表之后。但是,随着特定的数据大小(此时,数据大小是1024字节的倍数),即使PKSADE与SLWR的关系精确地跟随数据表,也不起作用。
以上来自于百度翻译 以下为原文 Regarding to FX2, your are right. Actually, the behavior between FX2 and FX3 seems different. FX3 works collectly in most cases following the data sheet. But with the specific data size ( at this time, data size is multiples of 1024 bytes ), that does not work even though the relationship of PKTEND to SLWR is exactlly following the data sheet. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2100 浏览 1 评论
1846 浏览 1 评论
3665 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1782 浏览 6 评论
1532 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
561浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
413浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
907浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-20 17:17 , Processed in 1.027881 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号