Motorola MPC823e Reference Manual page 835

Microprocessor for mobile computing
Table of Contents

Advertisement

10. Write DPRAM+210 to DPRAM+2C to set up the TX DATA BUFFER POINTER field of
the endpoint 1 TX buffer descriptor.
11. Write 0x698560 to DPRAM+200 to set up the endpoint 0 TX data pattern. This pattern
consists of the IN token and the CRC5.
12. Write ABCD1234 to DPRAM+210 to set up the endpoint 1 TX data pattern.
13. Write 20002020 to DPRAM+500 to set up the RBASE and TBASE fields of the
endpoint 0 parameter RAM.
14. Write 18180100 to DPRAM+504 to set up the RFCR, TFCR, and MRBLR fields of the
endpoint 0 parameter RAM.
15. Write 20002020 to DPRAM+508 to set up the RBPTR and TBPTR fields of the
endpoint 0 parameter RAM.
16. Clear the TSTATE field of the endpoint 0 parameter RAM.
17. Write 20082028 to DPRAM+520 to set up the RBASE and TBASE fields of the
endpoint 1 parameter RAM.
18. Write 18180100 to DPRAM+524 to set up the RFCR, TFCR, and MRBLR fields of the
endpoint 1 parameter RAM.
19. Write 20082028 to DPRAM+528 to set up the RBPTR and TBPTR fields of the
endpoint 1 parameter RAM.
20. Clear the TSTATE field of the endpoint 1 parameter RAM.
21. Write 0x0000 to the USEP0 for endpoint 0, control transfer, one packet only.
22. Write 0x1100 to the USEP1 for endpoint 1, control transfer, one packet only.
23. Write 0x2200 to the USEP2 for endpoint 2, bulk transfer, one packet only.
24. Write 0x3300 to the USEP3 for endpoint 3, isochronous transfer, one packet only.
25. Write 0x06 to the USMOD for full-speed 12mps signaling, local loopback configuration
(test and host modes set), and disable the USB.
26. Write 0x05 to the USAD for slave address 5.
27. Clear the USCOM register.
28. Set the EN bit in the USMOD register to enable the USB controller.
29. Write 0x80 to the USCOM to start filling the TX FIFO with endpoint 0 data ready for
transmission when IN token is received.
30. Write 0x81 to the USCOM to start filling the TX FIFO with endpoint 1 data ready for
transmission when IN token is received.
MOTOROLA
MPC823e REFERENCE MANUAL
Communication Processor Module
16-381

Advertisement

Table of Contents
loading

Table of Contents