
Universal Serial Bus Interface – On-The-Go Module
21-68
Freescale Semiconductor
21.5.3.5.1
Queue Head Initialization
One pair of device queue heads must be initialized for each active endpoint. To initialize a device queue
head:
•
Write the wMaxPacketSize field as required by the USB specification chapter 9 or application
specific protocol.
•
Write the multiplier field to 0 for control, bulk, and interrupt endpoints. For ISO endpoints, set the
multiplier to 1,2, or 3 as required for bandwidth with the USB specification chapter 9 protocol. In
FS mode, the multiplier field can only be 1 for ISO endpoints.
•
Set the next dTD terminate bit field.
•
Clear the active bit in the status field.
•
Clear the halt bit in the status field.
NOTE
The DCD must only modify dQH if the associated endpoint is not primed
and there are no outstanding dTDs.
21.5.3.5.2
Setup Transfers Operation
Section 21.5.3.4.4, “Control Endpoint Operation,”
setup transfers require special
treatment by the DCD. A setup transfer does not use a dTD, but instead stores the incoming data from a
setup packet in an 8-byte buffer within the dQH.
Upon receiving notification of the setup packet, the DCD should manage the setup transfer by:
1. Copying setup buffer contents from dQH-RX to software buffer.
2. Acknowledging setup backup by writing a 1 to the corresponding bit in the EPSETUPSR register.
NOTE
The acknowledge must occur before continuing to process the setup packet.
After acknowledge occurs, DCD must not attempt to access the setup buffer
in dQH-RX. Only local software copy should be examined.
3. Checking for pending data or status dTD's from previous control transfers and flushing if any exist
Section 21.5.3.6.5, “Flushing/De-priming an Endpoint.”
NOTE
It is possible for the device controller to receive setup packets before
previous control transfers complete. Existing control packets in progress
must be flushed and the new control packet completed.
4. Decoding setup packet and prepare data phase (optional) and status phase transfer as required by
the USB specification chapter 9 or application specific protocol.
MCF5329 Reference Manual, Rev 3
Summary of Contents for MCF5329
Page 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...