MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 821

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
RM0008
Examples
This section describes and depicts some fundamental transfer types and scenarios.
Figure 278
and describes the events involved in the process.
Figure 278. Slave mode bulk OUT transaction
After a SetConfiguration/SetInterface command, the application initializes all OUT endpoints
by setting CNAK = 1 and EPENA = 1 (in OTG_FS_DOEPCTLx), and setting a suitable
XFRSIZ and PKTCNT in the OTG_FS_DOEPTSIZx register.
1.
2.
3.
4.
5.
6.
7.
Host
Slave mode bulk OUT transaction
Host attempts to send data (OUT token) to an endpoint.
When the core receives the OUT token on the USB, it stores the packet in the RxFIFO
because space is available there.
After writing the complete packet in the RxFIFO, the core then asserts the RXFLVL
interrupt (in OTG_FS_GINTSTS).
On receiving the PKTCNT number of USB packets, the core internally sets the NAK bit
for this endpoint to prevent it from receiving any more packets.
The application processes the interrupt and reads the data from the RxFIFO.
When the application has read all the data (equivalent to XFRSIZ), the core generates
an XFRC interrupt (in OTG_FS_DOEPINTx).
The application processes the interrupt and uses the setting of the XFRC interrupt bit
(in OTG_FS_DOEPINTx) to determine that the intended transfer is complete.
512 bytes
depicts the reception of a single Bulk OUT Data packet from the USB to the AHB
2
USB
5
3
Device
xact _1
7
Doc ID 13902 Rev 9
1
RXFLVL intr
4
8
i
6
wr_reg (DOEPTSIZx)
wr_reg(D OEPCTLx)
rcv_out _pkt()
init_ out_ ep
idle until intr
idle until intr
Application
USB on-the-go full-speed (OTG_FS)
On new xfer
or RxFIFO
not empty
XFRSIZ = 512 bytes
PKTCNT = 1
EPENA = 1
CNAK = 1
ai15679
821/995

Related parts for MCBSTM32EXL