Motorola PowerQUICC II MPC8280 Series Reference Manual page 897

Table of Contents

Advertisement

11. Clear the TSTATE field of the endpoint 2 parameter RAM.
12. Write 0xB000_0000 to DPRAM+0x00 to set up the RxBD[Status and Control, Data
Length] fields of the host endpoint.
13. Write DPRAM+0x100 to DPRAM+0x04 to set up the RxBD[Buffer Pointer] field
of the host endpoint.
14. Write 0xB800_0003 to DPRAM+0x20 to set up the TxBD[Status and Control, Data
Length] fields of the host endpoint.
15. Write DPRAM+0x200 to DPRAM+0x24 to set up the TxBD[Buffer Pointer] field
of the host endpoint.
16. Write 0xBC80_0003 to DPRAM+0x28 to set up the TxBD[Status and Control, Data
Length] fields of the function endpoint.
17. Write DPRAM+0x210 to DPRAM+0x2C to set up the TxBD[Buffer Pointer] field
of the function endpoint.
18. Write 0x698560 to DPRAM+0x200 to set up the host endpoint Tx data pattern. This
pattern consists of the IN token and the CRC5.
19. Write 0xABCD_1234 to DPRAM+0x210 to set up the function endpoint Tx data
pattern.
20. Write 0x0020 to USEP1 for the host: non-isochronous transfer, multi-packet,
packet-level interface.
21. Write 0x1100 to USEP2 for the function: interrupt transfer, one packet only.
22. Write 0x06 to USMOD for full-speed 12 Mbps signaling, local loopback
configuration (test and host modes set), and disable the USB.
23. Write 0x05 to the USAD for slave address 5.
24. Set USMOD[EN] to enable the USB controller.
25. Write 0x81 to the USCOM to start filling the Tx FIFO with endpoint 2 data to be
ready for transmission when an IN token is received.
26. Write 0x80 to the USCOM to start transmitting the IN token.
The expected results are as follows:
• TxBD[Status and Control] of the host endpoint should contain 0x3800.
• TxBD[Data Length] of the host endpoint should contain 0x0003.
• TxBD[Status and Control] of endpoint 2 should contain 0x3C80.
• TxBD[Data Length] of endpoint 2 should contain 0x0003.
• RxBD[Status and Control] of the host endpoint should contain 0x3C00.
• RxBD[Data Length] of the host endpoint should contain 0x0005.
• The receive buffer of the host endpoint should contain 0xABCD_122B,
0x42xx_xxxx.
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-39

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powerquicc ii mpc8270Powerquicc ii mpc8275Powerquicc ii mpc8280

Table of Contents