完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好,
我发现登记ep2autoinlenh 我一直是默认值,当我试图修改它。我试着写0x01,0x03,0x04为ep2autoinlenh L,但分别总是出现ep2autoinlenh = 2,ep2autoinlenl = 0当我阅读他们;为什么会发生这种事?我需要一些帮助,对不起我的英语不好,欢迎来问我时,我一点都不清楚,这里是我的td_init代码: 空隙TDyIIT(空隙)/在启动时调用一次 { CPUCS= 0x0A;//24MCLK 同步延迟; RVCTL=0x03; 同步延迟; FX2PRIM2CH(); PotoAcfg= 0x01;//p00设置为It0模式 OEA=0x00; IOA= 0xFF;// PoTeCfg= 0x00;//全部设置为GPIO定义 OEE=0x00;//全部设置为输入… IOE=0xFF;//输出设置为0。输入设置为1 同步延迟; PoTCCfg= 0x00;//全部设置为GPIO定义 OEC=0x20;//PC 8引脚全部设置为输出 IOC=0x01;//PC0复位传感器…现在设置为0:重置状态…/ / 20130729添加 同步延迟; EP1Cnfg= 0xB0; 同步延迟; pFrAgAsAb=0xCC; 同步延迟; pFrAgCsCD= 0xCC; 同步延迟; VoPosiDrime= 0x3c;//0x3c为OV或HyNIX syncdelay; wakeupcs = 0x04;/ /!!!应该这样。其他不能工作时,电源打开。 syncdelay; IFCONFIG=0x43; 同步延迟; EP2CFG=0xE8; 同步延迟; EP4CFG=0; 同步延迟; EP6CFG=0; 同步延迟; EP8CFG=0; 同步延迟; ep2autoinlenh = 0x01 / 0x03,0x04 同步延迟; EP2AutoLeNLL=0x00; 同步延迟; ep2fifocfg = 0x0c;/ / 8bit autoin 同步延迟; FippET= 0x80; 同步延迟; FiPosit=0x02; 同步延迟; / / FiPosit=0x06; //同步延迟; FippET= 0x00; 同步延迟; //EP2BCH=4; //同步延迟; //EP2BCL=0; //同步延迟; inpktend = 0x82;/“武装”的转换 同步延迟; IpkTalk=0x82. 同步延迟; inpktend = 0x82;/“武装”的转换 同步延迟; IpkTalk=0x82. 同步延迟; //启用双自相关(s) AutoPrStuts= 0x01; //AlpUpSmithIn(); 系列产品(BDY115200); EX0=0;/ /禁用中断。 IT0 = 1;//边缘有效中断。 IE0=0; M1工作状态=0; My BISME=0; MyCrackNum=0; MyBNOSTROM=0; MySLaveID=Syror; MY-I2CDATA〔0〕=0; MY-I2CDATA〔1〕=0; ezu***_delay(20);/ / 20130729 P20=1;/ / 20130729加入 rwuen = true;/ /启用远程唤醒 dBGYSTR(“EP2CFG=”); BGGIN(EP2CFG); dBGySTR(“,Ep2AutoLunh=”); dBGyIn(EP2 AutoLunLH); dBGySTR(“,Ep2AutoNeLnL=”); dBGyIn(EP2 AutoNeNLL); dBGySTR(“,ReCTCL=”); dggtin(ReVCTL); } 以上来自于百度翻译 以下为原文 hello, I found that register EP2AUTOINLENHL is always kept as default value when I try to modify it. I tried to write 0x01,0x03,0x04 into EP2AUTOINLENHL separately.,but It always present EP2AUTOINLENH= 2,EP2AUTOINLENL = 0 when I read them;why could this happen? I need some help,sorry for my pool english,welcome to ask me when my point is not expressed clearly ,here is my TD_init code: void TD_Init(void) // Called once at startup { CPUCS = 0x0a;//24Mclk SYNCDELAY; REVCTL = 0x03; SYNCDELAY; FX2InitI2C(); PORTACFG = 0x01;//P00 set to int0 mode OEA = 0x00; // IOA = 0xff; // PORTECFG = 0x00;//all set to GPIO definition OEE = 0x00; //all set to input... IOE = 0xff; //output set to 0 .input set to 1 SYNCDELAY; PORTCCFG = 0x00;//all set to GPIO definition OEC = ~0x20; //PC 8 pin all set to output IOC = ~0x01; //PC0 reset sensor ... now set to 0:reset state... //20130729 added SYNCDELAY; EP1INCFG = 0xb0; SYNCDELAY; PINFLAGSAB = 0xcc; SYNCDELAY; PINFLAGSCD = 0xcc; SYNCDELAY; FIFOPINPOLAR = 0x3c; //0x3c for ov or hynix SYNCDELAY; WAKEUPCS = 0x04; //!!! should like this.others can't work when power on.. SYNCDELAY; IFCONFIG = 0x43; SYNCDELAY; EP2CFG = 0xe8; SYNCDELAY; EP4CFG = 0; SYNCDELAY; EP6CFG = 0; SYNCDELAY; EP8CFG = 0; SYNCDELAY; EP2AUTOINLENH = 0x01 //0x03,0x04 SYNCDELAY; // EP2AUTOINLENL = 0x00; SYNCDELAY; EP2FIFOCFG = 0x0c; //8bit autoin SYNCDELAY; FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x02; SYNCDELAY; // FIFORESET = 0x06; // SYNCDELAY; FIFORESET = 0x00; SYNCDELAY; // EP2BCH = 4; // SYNCDELAY; // EP2BCL = 0; // SYNCDELAY; INPKTEND = 0x82; //“ARMing” the IN transfer SYNCDELAY; INPKTEND = 0x82; SYNCDELAY; INPKTEND = 0x82; //“arming” the IN transfer SYNCDELAY; INPKTEND = 0x82; SYNCDELAY; // enable dual autopointer(s) AUTOPTRSETUP |= 0x01; // _alpum_init(); SerialPort_Init(BD_115200); EX0 = 0;//disable interrupt.. IT0 = 1;//edge effective interrupt. IE0 = 0; m_WorkState = 0; m_bIsMe = 0; m_CheckNum = 0; m_bNoStop = 0; m_SlaveID = SENSOR_ID; m_I2CData[0] = 0; m_I2CData[1] = 0; EZUSB_Delay(20); //20130729 added P20 = 1; //20130729 added Rwuen = TRUE; // Enable remote wakeup dbg_str("EP2CFG="); dbg_int(EP2CFG); dbg_str(",EP2AUTOINLENH="); dbg_int(EP2AUTOINLENH); dbg_str(",EP2AUTOINLENL="); dbg_int(EP2AUTOINLENL); dbg_str(",REVCTL="); dbg_int(REVCTL); } |
|
相关推荐
12个回答
|
|
|
你好,
检查Inrl Stand配置。它可能会覆盖有默认值。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Check in DR_SetConfiguration. It might be getting overwritten there with the default value. Regards, Gayathri |
|
|
|
|
|
你好,
Gayathri,谢谢你的回答。也许我点击了“验证答案”的错误,实际上我检查了你提到的代码,它是EP2AutoLunh=0x04,EP2AutoLnLy= 0x00;所以不是原因。我也试着去问他们,但是结果是一样的。 以上来自于百度翻译 以下为原文 hi, Gayathri,thanks for your answer. Maybe I clicked the "verified answer" for mistake ,actually I checked the code you referred to,and It was EP2AUTOINLENH = 0x04,EP2AUTOINLENL = 0x00; So its not the reason. I also tried to mask them, but the result is same. |
|
|
|
|
|
你好,
参考EZ-UBS.Tr.PDF中的代码,我修改了这样的代码: FippET= 0x80; 同步延迟; FippET= 0x82. 同步延迟; FippET= 0x00; 同步延迟; 但结果是相同的,我不能改变Ep2AutoLin的L值。 以上来自于百度翻译 以下为原文 hi, referring to the code in EZ-USB_TRM.PDF, I modified the code like this: FIFORESET = 0x80; SYNCDELAY; FIFORESET = 0x82; SYNCDELAY; FIFORESET = 0x00; SYNCDELAY; but the result is same, I can not modify EP2AUTOINLENHL value all the same. |
|
|
|
|
|
你好,
请在这里附上您的代码。我们可以看一下。 当做, 加亚特里 以上来自于百度翻译 以下为原文 Hi, Please attach your code here. We can take a look at it. Regards, Gayathri |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
你好,
我已经修改了你的视频.c文件以反映AutoLILN=0x0100(256字节)。请查收附件。请检查这是否仍然反映了0x0200? 我认为,对于散装的EPS,你不能犯更比512作为最大数据包大小按规格为。所以,即使你选择1024四缓冲配置,你只能从512犯(最大)。因此,有效的缓冲区会表现得好像是在配置:512四缓冲。 当做 以上来自于百度翻译 以下为原文 Hi, I have modified your video.c file to reflect AUTOINLEN = 0x0100 (256bytes). Please find attached files. can you please check with this and see if still reflects 0x0200? I think, for Bulk EPs, you cannot commit mroe than 512 as maximum packet size as per spec is 512. So, even if you choose 1024 Quad buffered configuration, you can commit only in terms of 512 (max). Thus in effective the buffer will behave as if it is in conf: 512 Quad buffered. Regards |
|
|
|
|
|
|
|
|
|
|
|
你好,
谢谢你的回复,但是抱歉我不知道如何找到附加文件,我看不到你在这个网页上附加的任何文件,请你在你回复的上下文下面附加文件,像我所做的,或者粘贴地址,再次感谢。 当做。 以上来自于百度翻译 以下为原文 hi, thanks for your reply,but sorry I dont know how to find attached files,I cannot see any files you attached on this webpage,could you please attach files below the context you reply, like what I did, or paste the address,thanks again. regards. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
忘记我们不能从Chrome附加zip文件…它来自Mozilla。
当做 以上来自于百度翻译 以下为原文 Regards |
|
|
|
|
只有小组成员才能发言,加入小组>>
788个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7478 浏览 0 评论
2492 浏览 1 评论
2184 浏览 1 评论
4046 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2095 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7962浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6538浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
760浏览 2评论
736浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8390浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-18 09:49 , Processed in 1.038462 second(s), Total 94, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2276