
Communication Processor Module
MOTOROLA
MPC823 USER’S MANUAL
16-17
RISC
COMMUNICATION
16
PROCESSOR
MODULE
When the dual-port RAM is accessed by the core or SDMA channel, the data and address
are passed to and from the U-bus. The microcontroller has access to the entire dual-port
RAM for data fetches and portions of the system RAM for microcode instruction fetches.
The dual-port RAM is used to complete the following tasks. Any two of them can occur
simultaneously.
To store the parameters associated with the USB, SCC2, SMCs, SPI, I2C, and IDMAs
in the 1,024-byte parameter RAM.
To store the buffer descriptors that describe where data is to be received and
transmitted.
To store the data from the serial channels. This is optional because data can also be
stored in external memory.
To store the RAM microcode for the RISC microcontroller. This feature allows Motorola
to add protocols in the future.
To use as an additional scratchpad RAM space for your program.
Only the content of the parameter and microcode RAM options require the use of fixed
addresses. The buffer descriptors, buffer data, and scratchpad RAM can be located in the
internal system RAM or in any unused parameter RAM. For instance, the area that is
available when a serial channel or sub-block is not being used. When a microcode from
RAM is executed, certain portions of the system RAM are no longer available. There are
three possible configurations for microcode area sizes— first 512-byte block with a 256-byte
extension (RCCR ERAM=01), first 1,024-byte block with 256-byte extension (RCCR
ERAM=10), or first 2,048-byte block with 512-byte extension (RCCR ERAM=11). The
remainder of the first 4,096 bytes are available as system RAM. See
Table 16-1 for details.
16.2.7.3.1 Buffer Descriptors. The universal serial bus, serial communication controller,
serial management controllers, serial peripheral interface, and I2C always use buffer
descriptors to control data buffers. The table below shows that their buffer descriptor formats
are all the same. If the IDMA channel is used in buffer chaining or autobuffer mode, it also
uses buffer descriptors.
16.2.7.3.2 Parameter RAM. The communication processor module maintains a section of
dual-port RAM called the parameter RAM. It contains many parameters for a universal serial
bus, serial communication controller, serial management controller, serial peripheral
interface, I2C controller, and IDMA channel operation. The parameter RAM structure is
0
15
OFFSET + 0
STATUS AND CONTROL
OFFSET + 2
DATA LENGTH
OFFSET + 4
HIGH-ORDER DATA BUFFER POINTER
OFFSET + 6
LOW-ORDER DATA BUFFER POINTER