09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

ETH_DMAIER register. This timer is disabled before it runs out, when a frame is transferred<br />

to memory and the RS is set because it is enabled for that descriptor.<br />

Note: Reading the PMT control and status register automatically clears the Wakeup Frame<br />

Received and Magic Packet Received PMT interrupt flags. However, since the registers for<br />

these flags are in the CLK_RX domain, there may be a significant delay before this update is<br />

visible by the firmware. The delay is especially long when the RX clock is slow (in 10 Mbit<br />

mode) and when the AHB bus is high-frequency.<br />

Since interrupt requests from the PMT to the CPU are based on the same registers in the<br />

CLK_RX domain, the CPU may spuriously call the interrupt routine a second time even after<br />

reading PMT_CSR. Thus, it may be necessary that the firmware polls the Wakeup Frame<br />

Received and Magic Packet Received bits and exits the interrupt service routine only when<br />

they are found to be at ‘0’.<br />

29.8 Ethernet register descriptions<br />

The peripheral registers can be accessed by bytes (8-bit), half-words (16-bit) or words (32bits).<br />

29.8.1 MAC register description<br />

Ethernet MAC configuration register (ETH_MACCR)<br />

Address offset: 0x0000<br />

Reset value: 0x0000 8000<br />

The MAC configuration register is the operation mode register of the MAC. It establishes<br />

receive and transmit operating modes.<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 CSTF<br />

Reserved<br />

WD<br />

JD<br />

Reserved<br />

IFG<br />

CSD<br />

Reserved<br />

FES<br />

rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw rw<br />

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

Bits 25 CSTF: CRC stripping for Type frames<br />

When set, the last 4 bytes (FCS) of all frames of Ether type (type field greater than<br />

0x0600) will be stripped and dropped before forwarding the frame to the application.<br />

Bits 24 Reserved, must be kept at reset value.<br />

Bit 23 WD: Watchdog disable<br />

When this bit is set, the MAC disables the watchdog timer on the receiver, and can receive<br />

frames of up to 16 384 bytes.<br />

When this bit is reset, the MAC allows no more than 2 048 bytes of the frame being received<br />

and cuts off any bytes received after that.<br />

Bit 22 JD: Jabber disable<br />

When this bit is set, the MAC disables the jabber timer on the transmitter, and can transfer<br />

frames of up to 16 384 bytes.<br />

When this bit is reset, the MAC cuts off the transmitter if the application sends out more than<br />

2 048 bytes of data during transmission.<br />

ROD<br />

LM<br />

DM<br />

IPCO<br />

RD<br />

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

Reserved<br />

APCS<br />

BL<br />

DC<br />

TE<br />

RE<br />

Reserved

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

Saved successfully!

Ooh no, something went wrong!