see the text file
If both EF and FF of EP2 is active high then it means you've not configured the endpoint in a valid configuration or you've not ARMed it properly. Are you in a valid endpoint configuration? Please let me know the FIFO depth and buffering you are using for each endpoint.
A humble request,
Please respond in the forum rather than attaching text documents. It would help others as well to read, understand and solve issues.
the endpoint2468 are 512 bytes and double buffering, bulk endpoint.the detail of configuration is in the TD_Init() in the text file.thanks,Anand.
the endpoints are all in buffer,the endpoint 2 is auto in mode,others are manual mode,how to ARM them? thanks.
I try to configure EP2 as 1024 depth and four buffers.then I modify the endpoint descriptor and interface descriptor to be only one endpoint,and delete the endpoint descriptors of endpoint468.But the EF and FF of EP2 are still active high. So the problem is not in the endpoint configuration.it would be in other place,but I don't know where is it.
Getting the EF high and FF low would confirm proper configuration of the endpoint buffer. One thing I notice is that you're configuring the FIFO configurations and doing FIFORESET before you've even configured the endpoints. Please try moving them to after the EPxCFG statements.
I remove the FIFORESET after EP2CFG(1024,4 buffer).But whatever I did FIFORESET=0x02 four time or one time,unfortunately the EF and FF keep active high.sorry,this problem is still in.
another test result:whatever I change the FIFOADDR1:0,change the FIFOPINPOLAR to be active low.the EF and FF keep high all the time
Can you give me a effective complete configuration example of slave fifo,by which I can find where is the problem in contrast.
The IFCLK also must be provided even 68013's slave fifo work at asynchronous mode, but you can select external or internal,when you select external a clock source must be connected to IFCLK pin.Is this right? If so I know why I failed. Because I select external IFCLK, but I don't provide a clock source.