Motorola PowerQUICC II MPC8280 Series Reference Manual page 895

Table of Contents

Advertisement

11. Write 0x0000_0020 to DPRAM+0x500 to set up the RBASE and TBASE fields of
the endpoint 1 parameter RAM.
12. Write 0x1818_0100 to DPRAM+0x504 to set up the RFCR, TFCR, and MRBLR
fields of the endpoint 1 parameter RAM.
13. Write 0x0000_0020 to DPRAM+0x508 to set up the RBPTR and TBPTR fields of
the endpoint 1 parameter RAM.
14. Clear the TSTATE field of the endpoint 1 parameter RAM.
15. Write 0x0008_0028 to DPRAM+0x520 to set up the RBASE and TBASE fields of
the endpoint 2 parameter RAM.
16. Write 0x1818_0100 to DPRAM+0x524 to set up the RFCR, TFCR, and MRBLR
fields of the endpoint 2 parameter RAM.
17. Write 0x0008_0028 to DPRAM+0x528 to set up the RBPTR and TBPTR fields of
the endpoint 2 parameter RAM.
18. Clear the TSTATE field of the endpoint 2 parameter RAM.
19. Write 0x0000 to USEP1: Endpoint Number 0, control transfer, one packet only, and
normal handshake.
20. Write 0x7200 to USEP2: Endpoint Number 7, bulk transfer, one packet only, and
normal handshake.
21. Write 0x00 to the USMOD for full-speed 12 Mbps function endpoint mode and
disable the USB.
22. Write 0x05 to the USAD for slave address 5.
23. Set USMOD[EN] to enable the USB controller.
24. Write 0x80 to USCOM to start filling the Tx FIFO with endpoint 1 data ready for
transmission when an IN token is received.
25. Write 0x81 to USCOM to start filling the Tx FIFO with endpoint 2 data ready for
transmission when an IN token is received.
26. Generate an IN token to address 5, endpoint number 0, control.
27. Generate an IN token to address 5, endpoint number 7, bulk.
27.10 Programming the USB Host Controller
(Packet-Level)
The MPC8280 implementation of a USB host uses the endpoint represented by USEP1 to
control the host transmission and reception. The other endpoints are typically not used,
except for testing purposes (loop-back).
Programming the USB controller to act as host is similar to configuring an endpoint for
function operation. A general outline of how to program the host controller follows. (A
more detailed example can be found in Section 27.10.1, "USB Host Controller
MOTOROLA
Freescale Semiconductor, Inc.
Programming the USB Host Controller (Packet-Level)
Chapter 27. Universal Serial Bus Controller
For More Information On This Product,
Go to: www.freescale.com
27-37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powerquicc ii mpc8270Powerquicc ii mpc8275Powerquicc ii mpc8280

Table of Contents