English
Language : 

PXN20RM Datasheet, PDF (608/1376 Pages) Freescale Semiconductor, Inc – PXN20 Microcontroller
Fast Ethernet Controller (FEC)
25.4.14 Ethernet Error-Handling Procedure
The Ethernet controller reports frame reception and transmission error conditions using the FEC RxBDs,
the EIR register, and the MIB block counters.
25.4.14.1 Transmission Errors
25.4.14.1.1 Transmitter Underrun
If this error occurs, the FEC sends 32 bits that ensure a CRC error and stops transmitting. All remaining
buffers for that frame are then flushed and closed. The UN bit is set in the EIR. The FEC then continues
to the next transmit buffer descriptor and begins transmitting the next frame.
The “UN” interrupt is asserted if enabled in the EIMR register.
25.4.14.1.2 Retransmission Attempts Limit Expired
When this error occurs, the FEC terminates transmission. All remaining buffers for that frame are flushed
and closed, and the RL bit is set in the EIR. The FEC then continues to the next transmit buffer descriptor
and begins transmitting the next frame.
The “RL” interrupt is asserted if enabled in the EIMR register.
25.4.14.1.3 Late Collision
When a collision occurs after the slot time (512 bits starting at the preamble), the FEC terminates
transmission. All remaining buffers for that frame are flushed and closed, and the LC bit is set in the EIR
register. The FEC then continues to the next transmit buffer descriptor and begins transmitting the next
frame.
The “LC” interrupt is asserted if enabled in the EIMR register.
25.4.14.1.4 Heartbeat
Some transceivers have a self-test feature called ‘heartbeat’ or ‘signal quality error.’ To signify a good
self-test, the transceiver indicates a collision to the FEC within 4 microseconds after completion of a frame
transmitted by the Ethernet controller. This indication of a collision does not imply a real collision error
on the network, but is rather an indication that the transceiver still seems to be functioning properly. This
is called the heartbeat condition.
If the HBC bit is set in the TCR register and the heartbeat condition is not detected by the FEC after a frame
transmission, then a heartbeat error occurs. When this error occurs, the FEC closes the buffer, sets the HB
bit in the EIR register, and generates the HBERR interrupt if it is enabled.
25-42
PXN20 Microcontroller Reference Manual, Rev. 1
Freescale Semiconductor