Motorola MPC860 PowerQUICC User Manual page 767

Table of Contents

Advertisement

28.17 Handling Errors in the Ethernet Controller
The Ethernet controller reports frame reception and transmission error conditions using
channel BDs, error counters, and SCCE. Table 28-4 describes transmission errors.
Error
Transmitter underrun
If this error occurs, the channel sends 32 bits that ensures a CRC error, stops sending the
buffer, closes it, sets the UN bit in the TxBD and SCCE[TXE]. The channel resumes
transmission after it receives a
Carrier sense lost
When this error occurs and no collision is found in the frame, the channel sets the CSL bit in
during frame
the TxBD, sets SCCE[TXE], and continues sending the buffer normally. No retries are
transmission
performed after this error occurs. Carrier sense is the logical OR of RENA and CLSN.
Retransmission
The channel stops sending the buffer, closes it, sets the RL bit in the TxBD and SCCE[TXE].
attempts limit expired
The channel resumes transmission after it receives a
Late collision
When this error occurs, the channel stops sending the buffer, closes it, sets SCCE[TXE] and
the LC bit in the TxBD. The channel resumes transmission after it receives the
TRANSMIT
Heartbeat
Some transceivers have a heartbeat (signal-quality error) self-test. To signify a good self-test,
the transceiver indicates a collision to the MPC860 within 20 clocks after the Ethernet
controller sends a frame. This heartbeat condition does not imply a collision error, but that the
transceiver seems to be functioning properly. If SCCE[HBC] = 1 and the MPC860 does not
detect a heartbeat condition after sending a frame, a heartbeat error occurs; the channel
closes the buffer, sets the HB bit in the TxBD, and generates the TXE interrupt if it is enabled.
Table 28-4 describes reception errors.
Error
Overrun
The Ethernet controller maintains an internal FIFO for receiving data. When it overruns, the channel
writes the received byte over the previously received byte. The previous byte and frame status are lost.
The channel closes the buffer, sets RxBD[OV] and SCCE[RXF], and increments the discarded frame
counter (DISFC). The receiver then enters hunt mode.
Busy
A frame was received and discarded because of a lack of buffers. The channel sets SCCE[BSY] and
increments DISFC. The receiver then enters hunt mode.
Non-Octet
The Ethernet controller handles up to seven dribbling bits when the receive frame terminates nonoctet
Error
aligned. It checks the CRC of the frame on the last octet boundary. If there is a CRC error, a frame
(Dribbling
nonoctet aligned error is reported, SCCE[RXF] is set, and the alignment error counter is incremented. If
Bits)
there is no CRC error, no error is reported. The receiver then enters hunt mode.
CRC
When a CRC error occurs, the channel closes the buffer, sets SCCE[RXF] and CR in the RxBD, and
increments the CRC error counter (CRCEC). After receiving a frame with a CRC error, the receiver enters
hunt mode. CRC checking cannot be disabled, but CRC errors can be ignored if checking is not required.
28.18 Ethernet Mode Register (PSMR)
In Ethernet mode, the protocol-speciÞc mode register (PSMR), shown in Figure 28-7, is
used as the Ethernet mode register.
MOTOROLA
Table 28-4. Transmission Errors
RESTART TRANSMIT
command. This error is discussed further in the deÞnition of PSMR[LCW].
Table 28-5. Reception Errors
Description
Chapter 28. SCC Ethernet Mode
Part V. The Communications Processor Module
Description
command.
RESTART TRANSMIT
command.
RESTART
28-19

Advertisement

Table of Contents
loading

Table of Contents