Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X 데이터 시트

제품 코드
DK-TM4C129X
다운로드
페이지 2182
The transmit engine controls the operation of Ethernet frame transmission. Some of the functions
of the transmit module include:
■ Output of (32-bit) Transmit Status (TDES0) to the application at the end of normal transmission
or collision
■ Generating preamble and Start of Frame Data (SFD)
■ Generating jam pattern in half-duplex mode
■ Supporting Jabber time-out
■ Supporting flow control
■ Generating timestamp information for transmission
■ Scheduling frame transmission to satisfy inter-frame gap (IFG) and back-off delays
■ Generating CRC and FCS field for Ethernet Frame
■ Generating pause frames as necessary in full duplex mode
When a new frame transmission is requested, the MAC transmit module sends out a preamble and
SFD, followed by the data in the TX FIFO. The preamble is defined as 7 bytes of 0xAA and the SFD
is defined as 1 byte of 0xAB pattern.
The collision window is defined as 1 slot time (512-bit times). If a collision occurs any time from the
beginning of the frame to the end of the CRC field, the MAC transmit module sends a 32-bit jam
pattern of 0x5555.5555 to inform all other stations that a collision has occurred. If the collision is
seen during the preamble transmission phase, the MAC transmit module completes the transmission
of the preamble and SFD, and then sends the jam pattern. If the collision occurs after the collision
window and before the end of the FCS field, the MAC transmit module sends a 32-bit jam pattern
and sets the late collision bit in the transmit frame status. The jam pattern generation is applicable
only to half-duplex mode.
A jabber timer is enabled by default at reset in the MAC module. If the
JD
bit in the EMACCFG
register at offset 0x000 is clear and the MAC module has transferred more than 2K bytes, the jabber
timer causes the MAC module to stop transmission of Ethernet frames. The timeout is changed to
10 KB when the Jumbo Frame Enable (
JFEN
) bit is enabled in the EMACCFG register.
The MAC transmit module uses a deferral mechanism for flow control (back pressure) in half-duplex
mode. When the application requests to stop receiving frames, the transmit module sends a jam
pattern of 32 bytes whenever it senses the reception of a frame, provided the transmit flow control
is enabled. This results in a collision and the remote station backs off. If the application requests a
frame to be transmitted, the frame is scheduled and transmitted even when backpressure is activated.
If the backpressure is activated for a long time (more than 16 consecutive collision events occur)
then the remote stations abort their transmissions because of excessive collisions.
If IEEE 1588 timestamping is enabled for the transmit frame, the MAC transmit module takes a
snapshot of the system time when the start-of-frame data is output on the bus.
24.3.6.2
MAC Transmit Module CRC Generator
The Transmit CRC Generator is used to generate the 32-bit CRC for the FCS field of the Ethernet
frame. The encoding is defined by the following generating polynomial:
G(x) = x
32
+ x
26
+ x
23
+ x
22
+ x
16
+ x
12
+ x
11
+ x
10
+ x
8
+ x
7
+ x
5
+ x
4
+ x
2
+ x
1
.
1629
December 13, 2013
Texas Instruments-Advance Information
Tiva
TM4C129XNCZAD Microcontroller