11.02.2013 Views

SMSC LPC47N252 Data Sheet - Keil

SMSC LPC47N252 Data Sheet - Keil

SMSC LPC47N252 Data Sheet - Keil

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.

4.1.4 ABORT MECHANISM<br />

The host can use LFRAME# to force a peripheral off the LPC Bus. See the Intel Low Pin Count Specification,<br />

Section 4.2.2.2, for timing for the abort mechanism using LFRAME#.<br />

Note: The <strong>LPC47N252</strong> adheres to the following abort policy: on target I/O and DMA cycles, if the host signals an<br />

abort before the peripheral has asserted the ‘ready’ or ‘error’ SYNC, the cycle will be terminated. No data is to be<br />

transferred to the host on I/O reads or DMA writes, and the data written to the <strong>LPC47N252</strong> on I/O writes and DMA<br />

reads is to be ignored. Note that once the <strong>LPC47N252</strong> asserts the ready SYNC, the host will not abort.<br />

4.1.5 I/O READ AND WRITE CYCLES<br />

I/O cycles are initiated by the host for register or FIFO accesses and will generally have minimal Sync times. The<br />

minimum number of wait-states between bytes is 1. EPP cycles will depend on the speed of the external device, and<br />

may have much longer Sync times.<br />

<strong>Data</strong> transfers are assumed to be exactly 1-byte. If the CPU requested a 16 or 32-bit transfer, the host will break it<br />

up into 8-bit transfers.<br />

4.1.6 DMA READ AND WRITE CYCLES<br />

DMA read cycles involve the transfer of data from the host (main memory) to the peripheral. DMA write cycles<br />

involve the transfer of data from the peripheral to the host (main memory). <strong>Data</strong> will be coming from or going to a<br />

FIFO and will have minimal Sync times. DMA data transfers to/from The <strong>LPC47N252</strong> are single bytes.<br />

4.1.7 DMA REQUEST<br />

To initiate DMA service, the peripheral encodes its requested channel number on the LDRQ# signal. Each peripheral<br />

has its own dedicated LDRQ# signal.<br />

LDRQ# is synchronous with the PCI clock (see section 28.2.2, nCLKRUN Support for LPC DMA Cycle on page 284).<br />

The peripheral starts the DMA cycle by asserting a START bit. The START bit is LDRQ# asserted (low) for one PCI<br />

clock cycle (FIGURE 6). The next three bits contain the encoded requested DMA channel number (MSB first).<br />

The ACT bit follows the LSB bit. The ACT bit indicates if the encoding is associated with the DMA request going<br />

active or inactive; i.e., ACT = ‘1’ if the request is active, ACT = ‘0’ if the request is inactive. The ACT bit allows for a<br />

previous DMA request for that channel to be abandoned (see Intel Low Pin Count Specification, Section 6.3). Note:<br />

The <strong>LPC47N252</strong> implements support for the ACT bit.<br />

Following the ACT bit, the peripheral must deassert the LDRQ# signal (high) for at least 1 clock. After that, the<br />

LDRQ# signal can be brought back low to start the next encoding (for another channel).<br />

Peripherals do not have to wait for the CHANNEL field to deassert LDRQ# to begin encoding for another channel.<br />

This allows additional DMA requests to be indicated, even if the first one has not yet been acknowledged.<br />

Using the LDRQ# encoding to request a transfer for a particular channel should not be attempted if one is still<br />

pending for that channel. Therefore, to encode another LDRQ# for the same channel, the part must wait 8 LCLKs<br />

after it sends a SYNC encoding of 0000 for that channel. However, using a SYNC value of 1001 replaces the<br />

LDRQ# encoding for the same channel. Therefore, the only time that it is necessary to send another LDRQ# is if a<br />

SYNC of 0000 is used.<br />

To attempt to abandon a previously requested DMA transfer, the peripheral sends an encoding on LDRQ# for that<br />

channel, but with the ACT bit set to 0 (see the Intel Low Pin Count Specification, Section 6.3 for a description of<br />

abandoning DMA requests).<br />

LCLK<br />

LDRQ#<br />

Start MSB LSB ACT Start<br />

FIGURE 6 - LDRQ# ENCODING<br />

<strong>SMSC</strong> DS – <strong>LPC47N252</strong> Page 28 Rev. 09/06/2000

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

Saved successfully!

Ooh no, something went wrong!