
Communication Processor Module
MOTOROLA
MPC823 USER’S MANUAL
16-353
USB
COMMUNICATION
16
PROCESSOR
MODULE
RFCR and TFCR—The USB function code registers control the value that you would
like to appear on the AT pins when the associated SDMA channel accesses memory.
It also controls the byte-ordering convention to be used in the transfers.
Bits 0–2—Reserved
These bits are reserved and should be set to 0.
BO—Byte Ordering
Set this field to select the required byte ordering for the data buffer. If this field is
modified on-the-fly, it will take effect at the beginning of the next frame.
00 =
The DEC/Intel convention is used for byte ordering (swapped operation). It is
also called little-endian byte ordering. The transmission order of bytes within
a buffer word is reversed as compared to the Motorola mode. This mode is
supported only for 32-bit port size memory.
01 =
PowerPC little-endian byte ordering. As data is transmitted onto the serial line
from the data buffer, the least-significant byte of the buffer double-word
contains data to be transmitted earlier than the most-significant byte of the
same buffer double word.
1X = Motorola byte ordering (normal operation). It is also called big-endian byte
ordering. As data is transmitted onto the serial line from the data buffer, the
most-significant byte of the buffer word contains data to be transmitted earlier
than the least-significant byte of the same buffer word.
AT—Address Type 1–3
This field contains the function code value used during this SDMA channel’s memory
accesses. AT0 will be driven with a one to identify this SDMA channel access as a
DMA-type access.
MRBLR—The maximum receive buffer length register defines the maximum number of
bytes that the MPC823 will write to the USB receive buffer before moving to the next
buffer. MRBLR must be divisible by 4. The MPC823 can write fewer bytes to the buffer
than the MRBLR value if a condition such as an error or end-of-packet occurs, but it will
never write more bytes than the MRBLR value. It follows, then, that buffers you supply
to the MPC823 should always be at least as long as MRBLR.
The transmit buffers for the USB channel are not affected in any way by the value
programmed into MRBLR. Transmit buffers may be individually chosen to have varying
lengths, as needed. The number of bytes to be transmitted is chosen by programming
the DATA LENGTH field in the TX buffer descriptor.
RFCR AND TFCR
BIT
0
1
2
3
4
5
6
7
FIELD
RESERVED
BO
AT