Universal Serial Bus (USB)
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
31-31
25. Write 0x1818_0100 to DPRAM+0x524 to set up the RFCR, TFCR, and MRBLR fields of the
endpoint 1 parameter RAM.
26. Write 0x2008_2028 to DPRAM+0x528 to set up the RBPTR and TBPTR fields of the endpoint 1
parameter RAM.
27. Clear the TSTATE field of the endpoint 1 parameter RAM.
28. Write 0x2010_2030 to DPRAM+0x40 to set up the RBASE and TBASE fields of the endpoint 2
parameter RAM.
29. Write 0x1818_0100 to DPRAM+0x44 to set up the RFCR, TFCR, and MRBLR fields of the
endpoint 2 parameter RAM.
30. Write 0x2010_2030 to DPRAM+0x48 to set up the RBPTR and TBPTR fields of the endpoint 2
parameter RAM.
31. Clear the TSTATE field of the endpoint 2 parameter RAM.
32. Write 0x2018_2038 to DPRAM+0x60 to set up the RBASE and TBASE fields of the endpoint 3
parameter RAM.
33. Write 0x1818_0100 to DPRAM+0x64 to set up the RFCR, TFCR, and MRBLR fields of the
endpoint 3 parameter RAM.
34. Write 0x2018_2038 to DPRAM+0x568 to set up the RBPTR and TBPTR fields of the endpoint 3
parameter RAM.
35. Clear the TSTATE field of the endpoint 3 parameter RAM.
36. Write 0x0000 to USEP0 for control transfer, one packet only, and manual handshake.
37. Write 0x1200 to USEP1 for bulk transfer, one packet only, and manual handshake.
38. Write 0x2200 to USEP2 for bulk transfer, one packet only, and manual handshake.
39. Write 0x3200 to USEP3 for bulk transfer, one packet only, and manual handshake.
40. Write 0x00 to the USMOD for full-speed 12 Mbps function endpoint mode and disable the USB.
41. Write 0x05 to the USADR for slave address 5.
42. Set USMOD[EN] to enable the USB controller.
43. Write 0x80 to USCOM to start filling the Tx FIFO with endpoint 0 data ready for transmission
when an IN token is received.
44. Write 0x81 to USCOM to start filling the Tx FIFO with endpoint 1 data ready for transmission
when an IN token is received.
45. Write 0x82 to USCOM to start filling the Tx FIFO with endpoint 2 data ready for transmission
when an IN token is received.
46. Write 0x83 to USCOM to start filling the Tx FIFO with endpoint 3 data ready for transmission
when an IN token is received.
31.16 Programming the USB Host Controller
The MPC885 implementation of a USB host uses endpoint 0 to control the host transmission and
reception. The other endpoints are typically not used, unless for testing purposes (loop-back).
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...