
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
115 of 808
NXP Semiconductors
UM10360
Chapter 10: LPC17xx Ethernet
Hardware in the DMA engine controls how data incoming from the Ethernet MAC is saved
to memory, causes fragment related status to be saved, and advances the hardware
receive pointer for incoming data. Driver software must handle the disposition of received
data, changing of descriptor data addresses (to avoid unnecessary data movement), and
advancing the software receive pointer. The two pointers create a circular queue in the
descriptor array and allow both the DMA hardware and the driver software to know which
descriptors (if any) are available for their use, including whether the descriptor array is
empty or full.
Similarly, driver software must set up pointers to data that will be transmitted by the
Ethernet MAC, giving instructions for each fragment of data, and advancing the software
transmit pointer for outgoing data. Hardware in the DMA engine reads this information and
sends the data to the Ethernet MAC interface when possible, updating the status and
advancing the hardware transmit pointer.
7.
Ethernet Packet
illustrates the different fields in an Ethernet packet.
A packet consists of a preamble, a start-of-frame delimiter and an Ethernet frame.
Fig 16. Ethernet packet fields
OPTIONAL
VLAN
SOURCE
ADDRESS
DesA
oct6
DesA
oct1
DesA
oct2
DesA
oct3
DesA
oct4
DesA
oct5
SrcA
oct6
SrcA
oct5
SrcA
oct4
SrcA
oct3
SrcA
oct2
SrcA
oct1
LSB
oct(0)
oct(1)
oct(2)
oct(3)
oct(4)
oct(5)
oct(6)
MSB
oct(7)
DESTINATION
ADDRESS
PAYLOAD
FCS
ETHERNET FRAME
PREAMBLE
7 bytes
ethernet packet
start-of-frame
delimiter
1 byte
time
LEN
TYPE