You are here

Automatic Handling of USB Standard Control Packets. | Cypress Semiconductor

Support & Community

Automatic Handling of USB Standard Control Packets.

Last Updated: April 03, 2011

When configuring the SX2, are the standard control packets configured without the intervention of an external CPU?


Yes, that is correct. Chapter 9 standard requests need no external CPU intervention. If there is a request that SX2 doesn't understand (outside of Chapter 9) it will interrupt the external CPU. After the SX2 receives a set-up packet to which it cannot respond automatically, the SX2 will assert a SETUP interrupt. After the external master reads the IRQ register to determine that the interrupt source was the SETUP interrupt, it can initiate a read request to the SETUP register, 0x32. When the SX2 sees a read request for the SETUP register, it will present the first byte of set-up data to the external master. Each additional read request will present the next byte of set-up data, until all eight bytes have been read. The external master can either stall the endpoint or respond to the control request with a data phase.

A detailed explanation on handling Endpoint 0 control packets can be found in attached SX2 datasheet.

Note: The SX2 is NRND ( not recommended for new designs)

File TitleLanguageFile SizeLast Updated
Download Automatic Handling of USB Standard Control Packets.English1.1 MB04/03/11
Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type