![Freescale Semiconductor MCF52277 Скачать руководство пользователя страница 414](http://html1.mh-extra.com/html/freescale-semiconductor/mcf52277/mcf52277_reference-manual_2330539414.webp)
Universal Serial Bus Interface – On-The-Go Module
MCF52277 Reference Manual, Rev. 1
20-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.
20.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 20-49. 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)
PORTSC
n
Содержание MCF52277
Страница 1: ...MCF52277 Reference Manual Devices Supported MCF52274 MCF52277 Document Number MCF52277RM Rev 1 04 2008...
Страница 22: ...MCF52277 Reference Manual Rev 1 Freescale Semiconductor xxii...
Страница 32: ...MCF52277 Reference Manual Rev 0 xxxii Freescale Semiconductor...
Страница 60: ...Signal Descriptions MCF52277 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Страница 112: ...Enhanced Multiply Accumulate Unit EMAC MCF52277 Reference Manual Rev 1 4 20 Freescale Semiconductor...
Страница 128: ...Static RAM SRAM MCF52277 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Страница 140: ...Clock Module MCF52277 Reference Manual Rev 1 7 12 Freescale Semiconductor...
Страница 172: ...Chip Configuration Module CCM MCF52277 Reference Manual Rev 1 9 16 Freescale Semiconductor...
Страница 180: ...Serial Boot Facility SBF MCF52277 Reference Manual Rev 1 10 8 Freescale Semiconductor...
Страница 188: ...Reset Controller Module MCF52277 Reference Manual Rev 1 11 8 Freescale Semiconductor...
Страница 210: ...Crossbar Switch XBS MCF52277 Reference Manual Rev 1 13 8 Freescale Semiconductor...
Страница 480: ...Liquid Crystal Display Controller LCDC MCF52277 Reference Manual Rev 1 21 44 Freescale Semiconductor...
Страница 510: ...Touchscreen Controller Analog to Digital Converter MCF52277 Reference Manual Rev 1 22 30 Freescale Semiconductor...
Страница 542: ...FlexCAN MCF52277 Reference Manual Rev 1 23 32 Freescale Semiconductor...
Страница 568: ...Pulse Width Modulation PWM Module MCF52277 Reference Manual Rev 1 24 26 Freescale Semiconductor...
Страница 640: ...Programmable Interrupt Timers PIT0 PIT1 MCF52277 Reference Manual Rev 1 27 8 Freescale Semiconductor...
Страница 690: ...DMA Serial Peripheral Interface DSPI MCF52277 Reference Manual Rev 1 29 40 Freescale Semiconductor...
Страница 724: ...UART Modules MCF52277 Reference Manual Rev 1 30 34 Freescale Semiconductor...
Страница 740: ...I2 C Interface MCF52277 Reference Manual Rev 1 31 16 Freescale Semiconductor...
Страница 790: ...Debug Module MCF52277 Reference Manual Rev 1 32 50 Freescale Semiconductor...