Communication Processor Module
MOTOROLA
MPC823 USER’S MANUAL
16-323
SCC2
COMMUNICATION
16
PROCESSOR
MODULE
16.9.22.9 SCC2 ETHERNET COMMANDS. You can program the CPM command register
STOP TRANSMIT—When used with the SCC2 Ethernet controller, this command
violates a specific behavior of an Ethernet/IEEE 802.3 station. It should not be used.
GRACEFUL STOP TRANSMIT—This command is used to ensure that transmission
stops smoothly after the current frame finishes or undergoes a collision. The GRA bit in
the SCCE–Ethernet register is set once transmission stops. Then you can modify the
Ethernet transmit parameters and their buffer descriptors. The TBPTR points to the
next TX buffer descriptor in the table. Transmission begins once the R bit of the next
buffer descriptor is set and the RESTART TRANSMIT command is issued.
RESTART TRANSMIT—This command enables the transmission of characters on the
transmit channel. The SCC2 Ethernet controller expects it after a GRACEFUL STOP
TRANSMIT command is issued or a transmitter error occurs. The SCC2 Ethernet
controller resumes transmission from the current TBPTR in the channel TX buffer
descriptor table.
INIT TX PARAMETERS—This command initializes all the transmit parameters in this
serial channel parameter RAM to their reset state. It should only be issued when the
transmitter is disabled. The INIT TX AND RX PARAMS command can also be used to
reset the transmit and receive parameters.
You can program the CPM command register with the following commands to receive data.
ENTER HUNT MODE—After the hardware or software is reset and the channel in the
SCCM–Ethernet register is enabled, the channel is in receive enable mode and uses
the first buffer descriptor in the table. This command is generally used to force the
Ethernet receiver to stop receiving the current frame and enter hunt mode. In this mode,
the SCC2 Ethernet controller continually scans the input datastream for a transition of
carrier sense from inactive to active and then a preamble sequence followed by the start
frame delimiter. After receiving the command, the current receive buffer is closed and
the CRC calculation is reset. The next RX buffer descriptor is used to receive more
frames.
Note: Before issuing a CPM reset (RST bit in the CPCR), configure the TENA pin as
an input.
Note:
If the GRACEFUL STOP TRANSMIT command is issued and the current
transmit frame ends in a collision, the TBPTR points to the beginning of the
collided frame with the R bit still set in the TX buffer descriptor. The frame will
look as if it was never transmitted.