
Universal Serial Bus Interface – On-The-Go Module
21-56
Freescale Semiconductor
DCD software must maintain a state variable to differentiate between the defaultFS/HS state and the
address/configured states. Change of state from default to the address and configured states is part of the
enumeration process described in the device framework section of the USB 2.0 specification.
As a result of entering the address state, the DCD must program the device address register
(DEVICEADDR).
Entry into the configured state indicates that all endpoints to be used in the operation of the device have
been properly initialized by programming the EPCR
n
registers and initializing the associated queue heads.
21.5.3.2.1
Bus Reset
The host uses a bus reset to initialize downstream devices. When a bus reset is detected, USB OTG
controller renegotiates its attachment speed, resets the device address to 0, and notifies the DCD by
interrupt (assuming the USB reset interrupt enable is set). After a reset is received, all endpoints (except
endpoint 0) are disabled and the device controller cancels any primed transactions. The concept of priming
is clarified below, but when a reset is received, the DCD must perform:
1. Clear all setup token semaphores by reading the EPSETUPSR register and writing the same value
back to the EPSETUPSR register.
2. Clear all the endpoint complete status bits by reading the EPCOMPLETE register and writing the
same value back to the EPCOMPLETE register.
3. Cancel all primed status by waiting until all bits in the EPPRIME are 0 and then writing
0xFFFF_FFFF to EPFLUSH.
4. Read the reset bit in the PORTSC
n
register and make sure it remains active. A USB reset occurs
for a minimum of 3 ms and the DCD must reach this point in the reset clean-up before end of the
reset occurs, otherwise a hardware reset of the device controller is recommended (rare).
a) Setting USBCMD[RST] bit can perform a hardware reset.
NOTE
A hardware reset causes the device to detach from the bus by clearing the
USBCMD[RS] bit. Therefore, the DCD must completely re-initialize the
USB OTG after a hardware reset.
5. Free all allocated dTDs because the device controller no longer executes them. If this is the first
time the DCD processes a USB reset event, it is likely w3a4no dTDs have been allocated.
6. At this time, the DCD may release control back to the OS because no further changes to the device
controller are permitted until a port change detect is indicated.
Table 21-48. Device Controller State Information Bits
Bit
Register
DC Suspend (SLI)
USBSTS
USB Reset Received (URI)
USBSTS
Port Change Detect (PCI)
USBSTS
High-Speed Port (PSPD)
PORTSCn
MCF5329 Reference Manual, Rev 3
Содержание MCF5329
Страница 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 126: ...Enhanced Multiply Accumulate Unit EMAC 4 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 564: ...Liquid Crystal Display Controller LCDC 22 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 692: ...Programmable Interrupt Timers PIT0 PIT3 28 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 720: ...Queued Serial Peripheral Interface QSPI 30 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 790: ...Message Digest Hardware Accelerator MDHA 33 20 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Страница 902: ...Register Memory Map Quick Reference A 26 Freescale Semiconductor MCF5329 Reference Manual Rev 3...