![Freescale Semiconductor MCF54455 Скачать руководство пользователя страница 256](http://html1.mh-extra.com/html/freescale-semiconductor/mcf54455/mcf54455_reference-manual_2330541256.webp)
Universal Serial Bus Interface – On-The-Go Module
Freescale Semiconductor
10-49
To initialize the host controller, software must:
1. Optionally set streaming disable in the USBMODE[SDIS] bit.
2. Optionally modify the BURSTSIZE register.
3. Program the PORTSC1[PTS] field if using a non-ULPI PHY.
4. Optionally write the appropriate value to the USBINTR register to enable the desired interrupts.
5. Set the USBMODE[CM] field to enable host mode, and set the USBMODE[ES] bit for big endian
operation.
6. Write the USBCMD register to set the desired interrupt threshold, frame list size (if applicable),
and turn the controller on by setting the USBCMD[RS] bit.
7. Enable external VBUS supply. The exact steps required for initialization depend on the external
hardware used to supply the 5V VBUS power.
8. Set the PORTSC[PP] bit.
At this point, the host controller is up and running and the port registers begin reporting device connects.
System software can enumerate a port through the reset process (port is in the enabled state).
To communicate with devices via the asynchronous schedule, system software must write the
ASYNCLISTADDR register with the address of a control or bulk queue head. Software must then enable
the asynchronous schedule by setting the asynchronous schedule enable (ASE) bit in the USBCMD
register. To communicate with devices via the periodic schedule, system software must enable the periodic
schedule by setting the periodic schedule enable (PSE) bit in the USBCMD register. Schedules can be
turned on before the first port is reset and enabled.
Any time the USBCMD register is written, system software must ensure the appropriate bits are preserved,
depending on the intended operation.
10.5.2
Device Data Structures
This section defines the interface data structures used to communicate control, status, and data between
device controller driver (DCD) software and the device controller.The interface consists of device queue
heads and transfer descriptors.
NOTE
Software must ensure that data structures do not span a 4K-page boundary.
The USB OTG uses an array of device endpoint queue heads to organize device transfers. As shown in
, there are two endpoint queue heads in the array for each device endpoint—one for IN and
one for OUT. The EPLISTADDR provides a pointer to the first entry in the array.
Содержание MCF54455
Страница 33: ...xxviii Freescale Semiconductor ...
Страница 67: ...Freescale Semiconductor 1 ...
Страница 125: ...Freescale Semiconductor 1 ...
Страница 145: ...Enhanced Multiply Accumulate Unit EMAC 5 21 Freescale Semiconductor ...
Страница 173: ...Cache 6 28 Freescale Semiconductor ...
Страница 179: ...Static RAM SRAM 7 6 Freescale Semiconductor ...
Страница 207: ...Power Management 9 16 Freescale Semiconductor ...
Страница 323: ...Reset Controller Module 13 8 Freescale Semiconductor ...
Страница 389: ...Pin Multiplexing and Control 16 44 Freescale Semiconductor ...
Страница 575: ...PCI Bus Controller 22 58 Freescale Semiconductor ...
Страница 600: ...Advanced Technology Attachment ATA Freescale Semiconductor 23 25 ...
Страница 601: ...Freescale Semiconductor 1 ...
Страница 842: ...I2 C Interface Freescale Semiconductor 33 16 ...
Страница 843: ...Freescale Semiconductor 1 ...
Страница 921: ...Revision History A 6 Freescale Semiconductor ...