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 />

Unavailable (ETH_DMASR register[2]) <strong>and</strong> Normal Interrupt Summary (ETH_DMASR<br />

register[16]) bits are set. The transmit engine proceeds to Step 9.<br />

4. If the acquired descriptor is flagged as owned by DMA (TDES0[31] is set), the DMA<br />

decodes the transmit data buffer address from the acquired descriptor.<br />

5. The DMA fetches the transmit data from the STM32F107xx memory <strong>and</strong> transfers the<br />

data.<br />

6. If an Ethernet frame is stored over data buffers in multiple descriptors, the DMA closes<br />

the intermediate descriptor <strong>and</strong> fetches the next descriptor. Steps 3, 4, <strong>and</strong> 5 are<br />

repeated until the end of Ethernet frame data is transferred.<br />

7. When frame transmission is complete, if IEEE 1588 time stamping was enabled for the<br />

frame (as indicated in the transmit status) the time stamp value is written to the transmit<br />

descriptor (TDES2 <strong>and</strong> TDES3) that contains the end-of-frame buffer. The status<br />

information is then written to this transmit descriptor (TDES0). Because the OWN bit is<br />

cleared during this step, the CPU now owns this descriptor. If time stamping was not<br />

enabled for this frame, the DMA does not alter the contents of TDES2 <strong>and</strong> TDES3.<br />

8. Transmit Interrupt (ETH_DMASR register [0]) is set after completing the transmission of<br />

a frame that has Interrupt on Completion (TDES1[31]) set in its last descriptor. The<br />

DMA engine then returns to Step 3.<br />

9. In the Suspend state, the DMA tries to re-acquire the descriptor (<strong>and</strong> thereby returns to<br />

Step 3) when it receives a transmit poll dem<strong>and</strong>, <strong>and</strong> the Underflow Interrupt Status bit<br />

is cleared.<br />

Figure 311 shows the TxDMA transmission flow in default mode.<br />

882/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!