30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NXP Semiconductors<br />

<strong>UM10211</strong><br />

Chapter 11: LPC2300 Ethernet<br />

16. Interrupts<br />

The hardware will receive packets from the PHY and apply filtering as configured by the<br />

software driver. While receiving a packet the hardware will read a descriptor from memory<br />

to find the location of the associated receiver data buffer. Receive data is written in the<br />

data buffer and receive status is returned in the receive descriptor status word. Optionally<br />

an interrupt can be generated to notify software that a packet has been received. Note<br />

that the DMA manager will prefetch and buffer up to three descriptors.<br />

15.2 AHB interface<br />

The registers of the Ethernet block connect to an AHB slave interface to allow access to<br />

the registers from the CPU.<br />

The AHB interface has a 32 bit data path, which supports only word accesses and has an<br />

address aperture of 4 kB. Table 11–133 lists the registers of the Ethernet block.<br />

All AHB write accesses to registers are posted except for accesses to the IntSet, IntClear<br />

and IntEnable registers. AHB write operations are executed in order.<br />

If the PowerDown bit of the PowerDown register is set, all AHB read and write accesses<br />

will return a read or write error except for accesses to the PowerDown register.<br />

Bus Errors<br />

The Ethernet block generates errors for several conditions:<br />

• The AHB interface will return a read error when there is an AHB read access to a<br />

write-only register; likewise a write error is returned when there is an AHB write<br />

access to the read-only register. An AHB read or write error will be returned on AHB<br />

read or write accesses to reserved registers. These errors are propagated back to the<br />

CPU. Registers defined as read-only and write-only are identified in Table 11–133.<br />

• If the PowerDown bit is set all accesses to AHB registers will result in an error<br />

response except for accesses to the PowerDown register.<br />

The Ethernet block has a single interrupt request output to the CPU (via the Vectored<br />

Interrupt Controller).<br />

The interrupt service routine must read the IntStatus register to determine the origin of the<br />

interrupt. All interrupt statuses can be set by software writing to the IntSet register;<br />

statuses can be cleared by software writing to the IntClear register.<br />

The transmit and receive datapaths can only set interrupt statuses, they cannot clear<br />

statuses. The SoftInt interrupt cannot be set by hardware and can be used by software for<br />

test purposes.<br />

16.1 Direct Memory Access (DMA)<br />

Descriptor arrays<br />

The Ethernet block includes two DMA managers. The DMA managers make it possible to<br />

transfer frames directly to and from memory with little support from the processor and<br />

without the need to trigger an interrupt for each frame.<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 170 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!