完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好
IAM使用CY7C68013A与EP2设置为ISO UouTrink点。FIFO缓冲器的数据由外部同步主机(CPLD)读取。问题是,在随机的时候,FrasaDead配置为Actule低EP2空标志变为零,并且保持ACITVE,而主机继续向EP2发送数据,直到IrryCy7C68013A重新加载固件。 这种行为的原因是什么? 以上来自于百度翻译 以下为原文 Hi all I am using CY7C68013A with EP2 set up as iso OUT endpoint. The data from FIFO buffers is read by external synchronous master (CPLD). The problem is that at random times FLAGA output configured as actile low EP2 empty flag becomes zero, and stays acitve, while host continues sending data to EP2, until I reset the CY7C68013A and reload the firmware. What can be the reason of such behavior? |
|
相关推荐
8个回答
|
|
|
|
|
|
下面是FPGA的波形图
每个读周期是每rdActuple 2个单词。主机总是发送多个4字节的数据包。 在IOLK的下降边缘采样,如果FLAGA不活跃(FIFONOT空,然后SLeeIS激活,然后在下一个IOLK下降边缘激活RDIS)。IOCKFRQ为6.25兆赫 屏幕截图29pNG 12.8 K 以上来自于百度翻译 以下为原文 Here is the waveforms the FPGA generates Each read cycle is 2 words per RD active. Host always sends packets which are multiple of 4 bytes. FLAGA is sampled on falling edges of IOCLK, and if FLAGA is not active (FIFO not empty, then SLOE is activated, then RD is activated on next IOCLK falling edge. IOCLK freq is 6.25 MHz
|
|
|
|
你好,
请分享什么样的模式(自动/手动)FX2LP操作?请在这里粘贴代码。我想看一看。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Please share things like in what mode (Auto/Manual) FX2LP is operating? Can you please paste your code here. I would like to take a look. Regards, Gayathri |
|
|
|
这是初始化代码:
SycDelay-();IfCunFig=0x03;/EXT时钟,从属FIFO SycDelayy(;EP1OutCFG&AMP;= ~0x7f;SycDelay.);EP1CIFG&AMP;=0x7f;SycDelay-();EP4CFG&AMP;= ~0x7f;SycDelay-();Ep6CFG&AMP;= ~0x7f;SycDelay-();EP8CFG&AMP;= ~0x7f;SycDelayy();EP4FIFOFFG=0;同步。RVCTL=0x00;EP8FIFOFFG=0;SycDelayle();Ep2FIFOFFG=0x11;//Auto,WordFieldSycDelayle();PoFrAsAsAB=0x08;//有效输出ISO 1024的DbBuf EP2CFG=(1和lt;lt;7)*(0和lt;lt;6)(1和lt;4)(1和lt;3)(0 & lt;lt;0);SycDelay.(Fixelt=0x8);删除();EP6FIFOFFG=0;0;SycDelay-();FiPosie= 0x82.;SycDelay-();FiPosie= 0x00;SycDelay-();EP2BCL=0x80;SycDelaye();EP2BCL=0x80;SycDelaye();EP2BCL=0x80;SycDelayy();EP2BCL=0x80;//Debug引脚OEA= 0x03; 当主机选择接口时执行此代码: FiPosit=0x80;SycDelay-();FiPosie= 0x82.;SycDelay-();FixPoT=0x00;SycDelay-();ToCTLL=0x02;SycDelay-();ToCTL=0x22;EP2BCL=0x80;SycDelaye();EP2BCL=0x80;SycDelaye();EP2BCL=0x80;SycDelayy();EP2BCL=0x80; 以上来自于百度翻译 以下为原文 This is the initialization code: REVCTL = 0x00; SYNCDELAY(); IFCONFIG = 0x03; // ext. clock, slave FIFO SYNCDELAY(); EP1OUTCFG &= ~0x7F; SYNCDELAY(); EP1INCFG &= ~0x7F; SYNCDELAY(); EP4CFG &= ~0x7F; SYNCDELAY(); EP6CFG &= ~0x7F; SYNCDELAY(); EP8CFG &= ~0x7F; SYNCDELAY(); EP4FIFOCFG = 0; SYNCDELAY(); EP6FIFOCFG = 0; SYNCDELAY(); EP8FIFOCFG = 0; SYNCDELAY(); EP2FIFOCFG = 0x11; // Auto, wordwide SYNCDELAY(); PINFLAGSAB = 0x08; // Valid Out ISO 1024 QuadBuf EP2CFG = (1 << 7) | (0 << 6) | (1 << 4) | (1 << 3) | (0 << 0); SYNCDELAY(); FIFORESET = 0x80; SYNCDELAY(); FIFORESET = 0x82; SYNCDELAY(); FIFORESET = 0x00; SYNCDELAY(); EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; //debug pin OEA = 0x03; And this code is executed when host selects interface: FIFORESET = 0x80; SYNCDELAY(); FIFORESET = 0x82; SYNCDELAY(); FIFORESET = 0x00; SYNCDELAY(); TOGCTL = 0x02; SYNCDELAY(); TOGCTL = 0x22; EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; SYNCDELAY(); EP2BCL = 0x80; |
|
|
|
你好,
请尝试更换 FiPosie= 0x80;SycDelay-();FiPosie= 0x82.;SycDelay-();FiPosie= 0x00;SycDelay.(); 具有 FiPosie= 0x80;SycDelay-();FiPosie= 0x02;SycDelay-();FiPosie= 0x00;SycDelay.(); 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Please try replacing FIFORESET = 0x80; SYNCDELAY(); FIFORESET = 0x82; SYNCDELAY(); FIFORESET = 0x00; SYNCDELAY(); with FIFORESET = 0x80; SYNCDELAY(); FIFORESET = 0x02; SYNCDELAY(); FIFORESET = 0x00; SYNCDELAY(); Regards, Gayathri |
|
|
|
如果IDO如此,FLAGAis总是活跃的(FIFO空)
以上来自于百度翻译 以下为原文 If I do so, FLAGA is always active (FIFO empty) |
|
|
|
我注意到,当这个问题发生时,USBERRIRQ中的ISOP2比特被设置。
以上来自于百度翻译 以下为原文 I have noticed that when this problem occurs, ISOEP2 bit in USBERRIRQ is set |
|
|
|
你好,
请在www. CyPress网站上提供一个技术支持案例,这样工程师就可以看一看并帮助你走出去。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Please cerate a tech support case at www.cypress.com, so that and one of engineers can take a look at it and help yo out. regards, Gayathri |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2102 浏览 1 评论
1848 浏览 1 评论
3666 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1783 浏览 6 评论
1533 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
564浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
418浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
434浏览 2评论
380浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
911浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 12:06 , Processed in 1.228565 second(s), Total 91, Slave 74 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号