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 19:17 RPS: Receive process state<br />

These bits indicate the Receive DMA FSM state. This field does not generate an interrupt.<br />

000: Stopped: Reset or Stop Receive Comm<strong>and</strong> issued<br />

001: Running: Fetching receive transfer descriptor<br />

010: Reserved for future use<br />

011: Running: Waiting for receive packet<br />

100: Suspended: Receive descriptor unavailable<br />

101: Running: Closing receive descriptor<br />

110: Reserved for future use<br />

111: Running: Transferring the receive packet data from receive buffer to host memory<br />

Bit 16 NIS: Normal interrupt summary<br />

The normal interrupt summary bit value is the logical OR of the following when the<br />

corresponding interrupt bits are enabled in the ETH_DMAIER register:<br />

– ETH_DMASR [0]: Transmit interrupt<br />

– ETH_DMASR [2]: Transmit buffer unavailable<br />

– ETH_DMASR [6]: Receive interrupt<br />

– ETH_DMASR [14]: Early receive interrupt<br />

Only unmasked bits affect the normal interrupt summary bit.<br />

This is a sticky bit <strong>and</strong> it must be cleared (by writing a 1 to this bit) each time a corresponding<br />

bit that causes NIS to be set is cleared.<br />

Bit 15 AIS: Abnormal interrupt summary<br />

The abnormal interrupt summary bit value is the logical OR of the following when the<br />

corresponding interrupt bits are enabled in the ETH_DMAIER register:<br />

– ETH_DMASR [1]:Transmit process stopped<br />

– ETH_DMASR [3]:Transmit jabber timeout<br />

– ETH_DMASR [4]: Receive FIFO overflow<br />

– ETH_DMASR [5]: Transmit underflow<br />

– ETH_DMASR [7]: Receive buffer unavailable<br />

– ETH_DMASR [8]: Receive process stopped<br />

– ETH_DMASR [9]: Receive watchdog timeout<br />

– ETH_DMASR [10]: Early transmit interrupt<br />

– ETH_DMASR [13]: Fatal bus error<br />

Only unmasked bits affect the abnormal interrupt summary bit.<br />

This is a sticky bit <strong>and</strong> it must be cleared each time a corresponding bit that causes AIS to be<br />

set is cleared.<br />

Bit 14 ERS: Early receive status<br />

This bit indicates that the DMA had filled the first data buffer of the packet. Receive Interrupt<br />

ETH_DMASR [6] automatically clears this bit.<br />

Bit 13 FBES: Fatal bus error status<br />

This bit indicates that a bus error occurred, as detailed in [25:23]. When this bit is set, the<br />

corresponding DMA engine disables all its bus accesses.<br />

Bits 12:11 Reserved<br />

Bit 10 ETS: Early transmit status<br />

This bit indicates that the frame to be transmitted was fully transferred to the Transmit FIFO.<br />

Bit 9 RWTS: Receive watchdog timeout status<br />

This bit is asserted when a frame with a length greater than 2 048 bytes is received.<br />

Doc ID 13902 Rev 9 937/995

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

Saved successfully!

Ooh no, something went wrong!