09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

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.

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

Bits 22:20 TPS: Transmit process state<br />

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

000: Stopped; Reset or Stop Transmit Command issued<br />

001: Running; Fetching transmit transfer descriptor<br />

010: Running; Waiting for status<br />

011: Running; Reading Data from host memory buffer and queuing it to transmit buffer (Tx<br />

FIFO)<br />

100, 101: Reserved for future use<br />

110: Suspended; Transmit descriptor unavailable or transmit buffer underflow<br />

111: Running; Closing transmit descriptor<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 Command 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 and 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 and 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 />

Doc ID 018909 Rev 3 1004/1416

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

Saved successfully!

Ooh no, something went wrong!