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.

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

Bits 31:0 STL: Start of transmit list<br />

This field contains the base address of the first descriptor in the transmit descriptor list.<br />

The LSB bits [1/2/3:0] for 32/64/128-bit bus width) are internally ignored and taken as allzero<br />

by the DMA. Hence these LSB bits are read-only.<br />

Ethernet DMA status register (ETH_DMASR)<br />

Address offset: 0x1014<br />

Reset value: 0x0000 0000<br />

The Status register contains all the status bits that the DMA reports to the application. The<br />

ETH_DMASR register is usually read by the software driver during an interrupt service<br />

routine or polling. Most of the fields in this register cause the host to be interrupted. The<br />

ETH_DMASR register bits are not cleared when read. Writing 1 to (unreserved) bits in<br />

ETH_DMASR register[16:0] clears them and writing 0 has no effect. Each field (bits [16:0])<br />

can be masked by masking the appropriate bit in the ETH_DMAIER register.<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 />

Reserved<br />

TSTS<br />

PMTS<br />

MMCS<br />

Reserved<br />

EBS<br />

1003/1416 Doc ID 018909 Rev 3<br />

TPS<br />

RPS<br />

r r r r r r r r r r r r<br />

NIS<br />

rcw1<br />

Bits 31:30 Reserved, must be kept at reset value.<br />

AIS<br />

rcw1<br />

ERS<br />

rcw1<br />

Bit 29 TSTS: Time stamp trigger status<br />

This bit indicates an interrupt event in the MAC core's Time stamp generator block. The<br />

software must read the MAC core’s status register, clearing its source (bit 9), to reset this bit<br />

to 0. When this bit is high an interrupt is generated if enabled.<br />

Bit 28 PMTS: PMT status<br />

This bit indicates an event in the MAC core’s PMT. The software must read the<br />

corresponding registers in the MAC core to get the exact cause of interrupt and clear its<br />

source to reset this bit to 0. The interrupt is generated when this bit is high if enabled.<br />

Bit 27 MMCS: MMC status<br />

This bit reflects an event in the MMC of the MAC core. The software must read the<br />

corresponding registers in the MAC core to get the exact cause of interrupt and clear the<br />

source of interrupt to make this bit as 0. The interrupt is generated when this bit is high if<br />

enabled.<br />

Bit 26 Reserved, must be kept at reset value.<br />

Bits 25:23 EBS: Error bits status<br />

These bits indicate the type of error that caused a bus error (error response on the AHB<br />

interface). Valid only with the fatal bus error bit (ETH_DMASR register [13]) set. This field<br />

does not generate an interrupt.<br />

Bit 23 1 Error during data transfer by TxDMA<br />

0 Error during data transfer by RxDMA<br />

Bit 24 1 Error during read transfer<br />

0 Error during write transfer<br />

Bit 25 1 Error during descriptor access<br />

0 Error during data buffer access<br />

FBES<br />

rcw1<br />

Reserved<br />

ETS<br />

rcw1<br />

RWTS<br />

rcw1<br />

RPSS<br />

rcw1<br />

RBUS<br />

rcw1<br />

RS<br />

rcw1<br />

TUS<br />

rcw1<br />

ROS<br />

rcw1<br />

TJTS<br />

rcw1<br />

TBUS<br />

rcw1<br />

TPSS<br />

rcw1<br />

TS<br />

rcw1

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

Saved successfully!

Ooh no, something went wrong!