MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 816

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
USB on-the-go full-speed (OTG_FS)
816/995
3.
4.
Application programming sequence
1.
2.
3.
4.
5.
6.
The application must use this sequence to disable an OUT endpoint that it has enabled.
Application programming sequence:
1.
2.
3.
4.
5.
When the application pops the Global OUT NAK pattern DWORD from the receive
FIFO, the core sets the GONAKEFF interrupt (OTG_FS_GINTSTS).
Once the application detects this interrupt, it can assume that the core is in Global OUT
NAK mode. The application can clear this interrupt by clearing the SGONAK bit in
OTG_FS_DCTL.
To stop receiving any kind of data in the receive FIFO, the application must set the
Global OUT NAK bit by programming the following field:
Wait for the assertion of the GONAKEFF interrupt in OTG_FS_GINTSTS. When
asserted, this interrupt indicates that the core has stopped receiving any type of data
except SETUP packets.
The application can receive valid OUT packets after it has set SGONAK in
OTG_FS_DCTL and before the core asserts the GONAKEFF interrupt
(OTG_FS_GINTSTS).
The application can temporarily mask this interrupt by writing to the GINAKEFFM bit in
GINTMSK.
Whenever the application is ready to exit the Global OUT NAK mode, it must clear the
SGONAK bit in OTG_FS_DCTL. This also clears the GONAKEFF interrupt
(OTG_FS_GINTSTS).
If the application has masked this interrupt earlier, it must be unmasked as follows:
Disabling an OUT endpoint
Before disabling any OUT endpoint, the application must enable Global OUT NAK
mode in the core.
Wait for the GONAKEFF interrupt (OTG_FS_GINTSTS)
Disable the required OUT endpoint by programming the following fields:
Wait for the EPDISD interrupt (OTG_FS_DOEPINTx), which indicates that the OUT
endpoint is completely disabled. When the EPDISD interrupt is asserted, the core also
clears the following bits:
The application must clear the Global OUT NAK bit to start receiving data from other
non-disabled OUT endpoints.
SGONAK = 1 in OTG_FS_DCTL
GINAKEFFM = 0 in GINTMSK
OTG_FS_DCTL = 1 in CGONAK
GINAKEFFM = 1 in GINTMSK
SGONAK = 1 in OTG_FS_DCTL
EPDIS = 1 in OTG_FS_DOEPCTLx
SNAK = 1 in OTG_FS_DOEPCTLx
EPDIS = 0 in OTG_FS_DOEPCTLx
EPENA = 0 in OTG_FS_DOEPCTLx
SGONAK = 0 in OTG_FS_DCTL
Doc ID 13902 Rev 9
RM0008

Related parts for MCBSTM32EXL