Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 865

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

Enhanced Three-Speed Ethernet Controllers
For both half- and full-duplex modes, an interrupt can be issued depending on TxBD[I]. The Ethernet
controller then proceeds to the next TxBD in the table. In this way, the core can be interrupted after each
frame, after each buffer, or after a specific buffer is sent. If TxBD[PAD/CRC] is set, the Ethernet controller
pads any frame shorter than 64 bytes with zero bytes to make up the minimum length.
To pause transmission, or rearrange the transmit queue, set DMACTRL[GTS]. This can be useful for
transmitting expedited data ahead of previously-linked buffers or for error situations. If this bit is set, the
eTSEC transmitter performs a graceful transmit stop. The Ethernet controller stops immediately if no
transmission is in progress or continues transmission until all queued frames in the Tx FIFO have been
disposed of. The IEVENT[GTSC] interrupt occurs once the graceful transmit stop operation is completed.
After the DMACTRL[GTS] is cleared, the eTSEC resumes transmission with the next frame.
While the eTSEC is in 10/100Mbps mode it sends bytes least-significant nibble first and each nibble is
sent lsb first. While it is in 1000Mbps mode it sends bytes LSB first.
15.6.2.4
Gigabit Ethernet Frame Reception
The eTSEC Ethernet receiver is designed to work with little core intervention and can perform data
extraction, address recognition, CRC checking, short frame checking, and maximum frame-length
checking.
After a hardware reset, the software driver clears the RSTAT register and sets MACCFG1[RX_EN]. The
Ethernet receiver is enabled and immediately starts processing receive frames. The MAC checks for when
TSECn_RX_DV is asserted and as long as TSECn_COL remains negated (full-duplex mode ignores
TSECn_COL), the MAC looks for the start of a frame by searching for a valid preamble/SFD (start of
frame delimiter) header, which is stripped (unless MACCFG2[PreAM RxEN] is set) and the frame begins
to be processed. If a valid header is not found, the frame is ignored.
If the receiver detects the first bytes of a frame, the eTSEC controller begins to perform the frame
recognition function through destination address (DA) recognition (see
Section 15.6.2.7, "Frame
Recognition"). Based on this match the frame can be accepted or rejected. The receiver can filter frames
based on individual (unicast), group (multicast), and broadcast addresses. Because Ethernet receive frame
data is not written to memory until the internal frame recognition algorithm is complete, system bus usage
is not wasted on frames unwanted by this station.
If a frame is accepted, the Ethernet controller fetches the receive buffer descriptor (RxBD) from either
queue 0 or the queue determined by the filer. If the RxBD is not being used by software (RxBD[E] is set),
the eTSEC starts transferring the incoming frame. RxBD[F] is set for the first RxBD used for any
particular receive frame. If the current RxBD is not available for the received frame, a receive busy error
condition is raised in IEVENT[BSY].
After the buffer is filled, the eTSEC clears RxBD[E] and, if RxBD[I] is set, generates an interrupt. If the
incoming frame is larger than the buffer, the Ethernet controller fetches the next RxBD in the table. If it is
empty, the controller continues receiving the rest of the frame. In half-duplex mode, if a collision is
detected during the frame, no RxBDs are used; thus, no collision frames are presented to the user except
late collisions, which indicate LAN problems.
The RxBD length is determined by the MRBL field in the maximum receive buffer length register
(MRBLR). The smallest valid value is 64 bytes, with larger values being be some integral multiple of 64
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
Freescale Semiconductor
15-147

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro