Cypress Perform

Home > Support & Community
support.cypress.com     Bookmark and Share
Support & Community

Knowledge Base Article



Clear endpoint FIFO's for the EZ-USB FX2

Last Updated: 05/24/2011

How do I clear the endpoint FIFO's so that I can start with an empty/clear FIFO for the EZ-USB FX2?

The easiest way to clear the buffers is with a FIFORESET. You might want your application software to send a vendor command that you implement in firmware to reset and then re-arm the buffers.  In order to reset an endpoint FIFO, write 0x80 to this register to NAK all transfers from the host, then write the  endpoint  number to this register (0x02, 0x04, 0x06, or 0x08) to reset an individual FIFO (i.e., to restore endpoint FIFO flags and byte counts to their default states).  Then write 0x00 to clear the NAKALL  bit  and restore normal operation. Refer to section 5.5.4 (FIFO reset) of the Technical Reference Manual for  further information on this register  usage.

 

You also need to ensure after performing a FIFORESET that you are re-arming the OUT endpoints.  For OUT endpoints, you need to arm the buffers to let the SIE take control of them, and accept data from the host.

 

 


Related Categories: USB Hi-Speed Peripherals


Provide feedback on this article

Did this article help you solve your problem?

Yes

No

Maybe

Additional comments:

To protect your privacy, do not include contact information in your feedback.

 Help us improve by taking a brief survey
Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20
Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 06/15/20