Functional Description
1421
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
M3 Ethernet Media Access Controller (EMAC)
(1)
If the CRC bit in the MACTCTL register is clear, the FCS bytes must be written with the correct CRC. If the CRC bit is set, the
Ethernet MAC automatically writes the FCS bytes.
Table 19-1. TX & RX FIFO Organization
FIFO Word Read/Write
Sequence
Word Bit Fields
TX FIFO (Write)
RX FIFO (Read)
1st
1:0
Data Length Least Significant
Byte
Frame Length Least Significant
Byte
15:8
Data Length Most Significant
Byte
Frame Length Most Significant
Byte
23:16
DA oct 1
31:24
DA oct 2
2nd
7:0
DA oct 3
15:8
DA oct 4
23:16
DA oct 5
31:24
DA oct 6
3rd
7:0
SA oct 1
15:8
SA oct 2
23:16
SA oct 3
31:24
SA oct 4
4th
7:0
SA oct 5
15:8
SA oct 6
23:16
Len/Type Most Significant Byte
31:24
Len/Type Least Significant Byte
5th to nth
7:0
data oct n
15:8
data oct n + 1
23:16
data oct n + 2
31:24
data oct n + 3
last
7:0
FCS 1
(1)
15:8
FCS 2
(1)
23:16
FCS 3
(1)
31:24
FCS 4
(1)
19.3.1.3 Ethernet Transmission Options
At the MAC layer, the transmitter can be configured for both full-duplex and half-duplex operation by using
the DUPLEX bit in the MACTCTL register. Note that in 10BASE-T half-duplex mode, the transmitted data
is looped back on the receive path.
The Ethernet MAC automatically generates and inserts the Frame Check Sequence (FCS) at the end of
the transmit frame when the CRC bit in the MACTCTL register is set. However, for test purposes, this
feature can be disabled in order to generate a frame with an invalid CRC by clearing the CRC bit.
The IEEE 802.3 specification requires that the Ethernet frame payload section be a minimum of 46 bytes.
The Ethernet MAC automatically pads the data section if the payload data section loaded into the FIFO is
less than the minimum 46 bytes when the PADEN bit in the MACTCTL register is set. This feature can be
disabled by clearing the PADEN bit.
The transmitter must be enabled by setting the TXEN bit in the MACTCTL register.
19.3.1.4 Ethernet Reception Options
The Ethernet MAC RX FIFO should be cleared during software initialization. The receiver should first be
disabled by clearing the RXEN bit in the Ethernet MAC Receive Control (MACRCTL) register, then the
FIFO can be cleared by setting the RSTFIFO bit in the MACRCTL register.