09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>RM0090</strong> Ethernet (ETH): media access control (MAC) with DMA controller<br />

Bits 31:27 Reserved, must be kept at reset value.<br />

Bit 26 MB: Mixed burst<br />

When this bit is set high and the FB bit is low, the AHB master interface starts all bursts of a<br />

length greater than 16 with INCR (undefined burst). When this bit is cleared, it reverts to<br />

fixed burst transfers (INCRx and SINGLE) for burst lengths of 16 and below.<br />

Bit 25 AAB: Address-aligned beats<br />

When this bit is set high and the FB bit equals 1, the AHB interface generates all bursts<br />

aligned to the start address LS bits. If the FB bit equals 0, the first burst (accessing the data<br />

buffer’s start address) is not aligned, but subsequent bursts are aligned to the address.<br />

Bit 24 FPM: 4xPBL mode<br />

When set high, this bit multiplies the PBL value programmed (bits [22:17] and bits [13:8]) four<br />

times. Thus the DMA transfers data in a maximum of 4, 8, 16, 32, 64 and 128 beats<br />

depending on the PBL value.<br />

Bit 23 USP: Use separate PBL<br />

When set high, it configures the RxDMA to use the value configured in bits [22:17] as PBL<br />

while the PBL value in bits [13:8] is applicable to TxDMA operations only. When this bit is<br />

cleared, the PBL value in bits [13:8] is applicable for both DMA engines.<br />

Bits 22:17 RDP: Rx DMA PBL<br />

These bits indicate the maximum number of beats to be transferred in one RxDMA<br />

transaction. This is the maximum value that is used in a single block read/write operation.<br />

The RxDMA always attempts to burst as specified in RDP each time it starts a burst transfer<br />

on the host bus. RDP can be programmed with permissible values of 1, 2, 4, 8, 16, and 32.<br />

Any other value results in undefined behavior.<br />

These bits are valid and applicable only when USP is set high.<br />

Bit 16 FB: Fixed burst<br />

This bit controls whether the AHB Master interface performs fixed burst transfers or not.<br />

When set, the AHB uses only SINGLE, INCR4, INCR8 or INCR16 during start of normal<br />

burst transfers. When reset, the AHB uses SINGLE and INCR burst transfer operations.<br />

Bits 15:14 PM: Rx Tx priority ratio<br />

RxDMA requests are given priority over TxDMA requests in the following ratio:<br />

00: 1:1<br />

01: 2:1<br />

10: 3:1<br />

11: 4:1<br />

This is valid only when the DA bit is cleared.<br />

Bits 13:8 PBL: Programmable burst length<br />

These bits indicate the maximum number of beats to be transferred in one DMA transaction.<br />

This is the maximum value that is used in a single block read/write operation. The DMA<br />

always attempts to burst as specified in PBL each time it starts a burst transfer on the host<br />

bus. PBL can be programmed with permissible values of 1, 2, 4, 8, 16, and 32. Any other<br />

value results in undefined behavior. When USP is set, this PBL value is applicable for<br />

TxDMA transactions only.<br />

The PBL values have the following limitations:<br />

– The maximum number of beats (PBL) possible is limited by the size of the Tx FIFO and Rx<br />

FIFO.<br />

– The FIFO has a constraint that the maximum beat supported is half the depth of the FIFO.<br />

– If the PBL is common for both transmit and receive DMA, the minimum Rx FIFO and Tx<br />

FIFO depths must be considered.<br />

– Do not program out-of-range PBL values, because the system may not behave properly.<br />

Doc ID 018909 Rev 3 1000/1416

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

Saved successfully!

Ooh no, something went wrong!