ENC28J60
5.0
ETHERNET OVERVIEW
5.1.1
Before discussing the use of the ENC28J60 as an
Ethernet interface, it may be helpful to review the
structure of a typical data frame. Users requiring more
information should refer to IEEE Standard 802.3 which
is the basis for the Ethernet protocol.
PREAMBLE/START-OF-FRAME
DELIMITER
5.1
Packet Format
Normal IEEE 802.3 compliant Ethernet frames are
between 64 and 1518 bytes long. They are made up of
five or six different fields: a destination MAC address, a
source MAC address, a type/length field, data payload,
an optional padding field and a Cyclic Redundancy
Check (CRC). Additionally, when transmitted on the
Ethernet medium, a 7-byte preamble field and start-of-
frame delimiter byte are appended to the beginning of
the Ethernet packet. Thus, traffic seen on the twisted
pair cabling will appear as shown in Figure 5-1.
When transmitting and receiving data with the
ENC28J60, the preamble and start of frame delimiter
bytes will automatically be generated or stripped from
the packets when they are transmitted or received. The
host controller does not need to concern itself with
them. Normally, the host controller will also not need to
concern itself with padding and the CRC which the
ENC28J60 will also be able to automatically generate
when transmitting and verify when receiving. The
padding and CRC fields will, however, be written into
the receive buffer when packets arrive, so they may be
evaluated by the host controller if needed.
FIGURE 5-1:
ETHERNET PACKET FORMAT
Number
of Bytes
Field
Comments
7
1
6
6
2
Used in the
Calculation
of the FCS
Preamble
SFD
DA
SA
Type/Length
Filtered out by the Module
Start-of-Frame Delimiter
(filtered out by the module)
Destination Address,
such as Multicast, Broadcast or Unicast
Source Address
Type of Packet or the Length of the Packet
Data
46-1500
Packet Payload
(with optional padding)
Padding
FCS
(1)
4
Frame Check Sequence – CRC
Note 1:
The FCS is transmitted starting with bit 31 and ending with bit 0.
©
2006 Microchip Technology Inc.
Preliminary
DS39662B-page 31