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.

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

RM0008<br />

Ethernet DMA transmit poll dem<strong>and</strong> register (ETH_DMATPDR)<br />

Address offset: 0x1004<br />

Reset value: 0x0000 0000<br />

This register is used by the application to instruct the DMA to poll the transmit descriptor list.<br />

The transmit poll dem<strong>and</strong> register enables the Transmit DMA to check whether or not the<br />

current descriptor is owned by DMA. The Transmit Poll Dem<strong>and</strong> comm<strong>and</strong> is given to wake<br />

up the TxDMA if it is in Suspend mode. The TxDMA can go into Suspend mode due to an<br />

underflow error in a transmitted frame or due to the unavailability of descriptors owned by<br />

transmit DMA. You can issue this comm<strong>and</strong> anytime <strong>and</strong> the TxDMA resets it once it starts<br />

re-fetching the current descriptor from host memory.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

TPD<br />

rw_wt<br />

Bits 31:0 TPD: Transmit poll dem<strong>and</strong><br />

When these bits are written with any value, the DMA reads the current descriptor pointed to by<br />

the ETH_DMACHTDR register. If that descriptor is not available (owned by Host), transmission<br />

returns to the Suspend state <strong>and</strong> ETH_DMASR register bit 2 is asserted. If the descriptor is<br />

available, transmission resumes.<br />

EHERNET DMA receive poll dem<strong>and</strong> register (ETH_DMARPDR)<br />

Address offset: 0x1008<br />

Reset value: 0x0000 0000<br />

This register is used by the application to instruct the DMA to poll the receive descriptor list.<br />

The Receive poll dem<strong>and</strong> register enables the receive DMA to check for new descriptors.<br />

This comm<strong>and</strong> is given to wake up the RxDMA from Suspend state. The RxDMA can go into<br />

Suspend state only due to the unavailability of descriptors owned by it.<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

RPD<br />

rw_wt<br />

Bits 31:0 RPD: Receive poll dem<strong>and</strong><br />

When these bits are written with any value, the DMA reads the current descriptor pointed to by<br />

the ETH_DMACHRDR register. If that descriptor is not available (owned by Host), reception<br />

returns to the Suspended state <strong>and</strong> ETH_DMASR register bit 7 is not asserted. If the<br />

descriptor is available, the Receive DMA returns to active state.<br />

934/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!