
USB on-the-go full-speed (OTG_FS)
RM0351
1750/1830
DocID024597 Rev 5
Figure 534. Receive FIFO packet read
SETUP transactions
This section describes how the core handles SETUP packets and the application’s
sequence for handling SETUP transactions.
•
Application requirements
1.
To receive a SETUP packet, the STUPCNT field (OTG_DOEPTSIZx) in a control OUT
endpoint must be programmed to a non-zero value. When the application programs the
STUPCNT field to a non-zero value, the core receives SETUP packets and writes them
to the receive FIFO, irrespective of the NAK status and EPENA bit setting in
OTG_DOEPCTLx. The STUPCNT field is decremented every time the control endpoint
receives a SETUP packet. If the STUPCNT field is not programmed to a proper value
before receiving a SETUP packet, the core still receives the SETUP packet and
DLE
UGBGDWD UGBUHJ
27*B*5;6763
PHP>ZRUGBFQWB@
UGBU[ILIRUGBGDWD(3180
ZRUGBFQW
E
ZDLWXQWLO5;)/9/LQ
27*B*,17676*
<
3DFNHW
VWRUHGLQ
PHPRU\
UGBGDWD%&17
ZRUGBFQW
%&17>@
%&17>@_%&17>@
UFYBRXWBSNW