29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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.

RM0008<br />

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

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

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

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

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

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

results in undefined behavior.<br />

These bits are valid <strong>and</strong> 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. When<br />

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

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

Bits 15:14 RTPR: 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 always<br />

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

can be programmed with permissible values of 1, 2, 4, 8, 16, <strong>and</strong> 32. Any other value results in<br />

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

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 <strong>and</strong> 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 <strong>and</strong> receive DMA, the minimum Rx FIFO <strong>and</strong> Tx<br />

FIFO depths must be considered.<br />

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

Bit 7 Reserved<br />

Bits 6:2 DSL: Descriptor skip length<br />

This bit specifies the number of Word/Dword/Lword (depending on 32/64/128-bit bus) to skip<br />

between two unchained descriptors. The address skipping starts from the end of current<br />

descriptor to the start of next descriptor. When DSL value equals zero, the descriptor table is<br />

taken as contiguous by the DMA, in Ring mode.<br />

Bit 1 DA: DMA Arbitration<br />

0: Round-robin with Rx:Tx priority given in bits [15:14]<br />

1: Rx has priority over Tx<br />

Bit 0 SR: Software reset<br />

When this bit is set, the MAC DMA controller resets all MAC Subsystem internal registers <strong>and</strong><br />

logic. It is cleared automatically after the reset operation has completed in all of the core clock<br />

domains. Read a 0 value in this bit before re-programming any register of the core.<br />

Doc ID 13902 Rev 9 933/995

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

Saved successfully!

Ooh no, something went wrong!