Motorola MPC823e Reference Manual page 833

Microprocessor for mobile computing
Table of Contents

Advertisement

20. Write 20002020 to DPRAM+500 to set up the RBASE and TBASE fields of the
endpoint 0 parameter RAM.
21. Write 18180100 to DPRAM+504 to set up the RFCR, TFCR and MRBLR fields of the
endpoint 0 parameter RAM.
22. Write 20002020 to DPRAM+508 to set up the RBPTR and TBPTR fields of the
endpoint 0 parameter RAM.
23. Clear the TSTATE field of the endpoint 0 parameter RAM.
24. Write 20082028 to DPRAM+520 to set up the RBASE and TBASE fields of the
endpoint 1 parameter RAM.
25. Write 18180100 to DPRAM+524 to set up the RFCR, TFCR and MRBLR fields of the
endpoint 1 parameter RAM.
26. Write 20082028 to DPRAM+528 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 0x0200 to the USEP0 for endpoint 0, bulk transfer, one packet only, and manual
handshake.
29. Write 0x1200 to the USEP1 for endpoint 1, bulk transfer, one packet only, and manual
handshake.
30. Write 0x2200 to the USEP2 for endpoint 2, bulk transfer, one packet only, and manual
handshake.
31. Write 0x3200 to the USEP3 for endpoint 3, bulk transfer, one packet only, and manual
handshake.
32. Write 0x00 to the USMOD for full-speed 12Mps function endpoint mode and disable
the USB.
33. Write 0x05 to the USADR for slave address 5.
34. Clear the USCOM register.
35. Set the EN bit in the USMOD register to enable the USB controller.
36. Write 0x80 to the USCOM to start filling the TX FIFO with endpoint 0 data ready for
transmission when IN token is received.
37. Write 0x81 to the USCOM to start filling the TX FIFO with endpoint 1 data ready for
transmission when IN token is received.
38. Write 0x82 to the USCOM to start filling the TX FIFO with endpoint 2 data ready for
transmission when IN token is received.
39. Write 0x83 to the USCOM to start filling the TX FIFO with endpoint 3 data ready for
transmission when IN token is received.
MOTOROLA
MPC823e REFERENCE MANUAL
Communication Processor Module
16-379

Advertisement

Table of Contents
loading

Table of Contents