OM11077 NXP Semiconductors, OM11077 Datasheet - Page 262

no-image

OM11077

Manufacturer Part Number
OM11077
Description
MODULE DIMM LPC2478 ARM7
Manufacturer
NXP Semiconductors
Datasheets

Specifications of OM11077

Accessory Type
Module Card
For Use With/related Products
ARM-57TS-LPC2478
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
568-4742
NXP Semiconductors
UM10237_4
User manual
Fig 31. Receive Example Memory and Registers
0x7FE010EC
0x7FE010EC
0x7FE010FC
RxDescriptor
0x7FE010F0
0x7FE010F4
0x7FE010F8
0x7FE01100
0x7FE01104
0x7FE01108
1
1
1
1
descriptor array
CONTROL
CONTROL
CONTROL
CONTROL
0x7FE01409
0x7FE01411
0x7FE01419
0x7FE01325
PACKET
PACKET
PACKET
PACKET
After reset, the values of the DMA registers will be zero. During initialization, the device
driver will allocate the descriptor and status array in memory. In this example, an array of
four descriptors is allocated; the array is 4x2x4 bytes and aligned on a 4 byte address
boundary. Since the number of descriptors matches the number of statuses, the status
array consists of four elements; the array is 4x2x4 bytes and aligned on a 8 byte address
boundary. The device driver writes the base address of the descriptor array
(0xFEED B0EC) in the RxDescriptor register, and the base address of the status array
(0xFEED B1F8) in the RxStatus register. The device driver writes the number of
descriptors and statuses minus 1 (3) in the RxDescriptorNumber register. The descriptors
and statuses in the arrays need not be initialized yet.
After allocating the descriptors, a fragment buffer needs to be allocated for each of the
descriptors. Each fragment buffer can be between 1 byte and 2 k bytes. The base
address of the fragment buffer is stored in the Packet field of the descriptors. The number
of bytes in the fragment buffer is stored in the Size field of the descriptor Control word.
The Interrupt field in the Control word of the descriptor can be set to generate an interrupt
as soon as the descriptor has been filled by the receive process. In this example the
fragment buffers are 8 bytes, so the value of the Size field in the Control word of the
descriptor is set to 7. Note that in this example, the fragment buffers are actually a
7
7
7
7
FRAGMENT 0 BUFFER (8 bytes)
FRAGMENT 1 BUFFER (8 bytes)
FRAGMENT 2 BUFFER (3 bytes)
FRAGMENT 3 BUFFER (8 bytes)
Rev. 04 — 26 August 2009
fragment buffers
RxDescriptorNumber = 3
RxConsumeIndex
RxProduceIndex
0x7FE011F8
RxStatus
Chapter 11: LPC24XX Ethernet
StatusHashCRC
StatusHashCRC
StatusHashCRC
StatusHashCRC
StatusInfo
StatusInfo
StatusInfo
StatusInfo
status array
UM10237
© NXP B.V. 2009. All rights reserved.
7
7
2
7
0x7FE011F8
0x7FE01200
0x7FE01208
0x7FE01210
262 of 792

Related parts for OM11077