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

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

Bits 15:11 PA: PHY address<br />

This field tells which of the 32 possible PHY devices are being accessed.<br />

Bits 10:6 MR: MII register<br />

These bits select the desired MII register in the selected PHY device.<br />

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

Bits 4:2 CR: Clock range<br />

The CR clock range selection determines the HCLK frequency and is used to decide the<br />

frequency of the MDC clock:<br />

Selection HCLK MDC Clock<br />

000 60-100 MHz HCLK/42<br />

001 100-150 MHz HCLK/62<br />

010 20-35 MHz HCLK/16<br />

011 35-60 MHz HCLK/26<br />

100 150-168 MHz HCLK/102<br />

101, 110, 111 Reserved -<br />

Bit 1 MW: MII write<br />

When set, this bit tells the PHY that this will be a Write operation using the MII Data register. If<br />

this bit is not set, this will be a Read operation, placing the data in the MII Data register.<br />

Bit 0 MB: MII busy<br />

This bit should read a logic 0 before writing to ETH_MACMIIAR and ETH_MACMIIDR. This bit<br />

must also be reset to 0 during a Write to ETH_MACMIIAR. During a PHY register access, this<br />

bit is set to 0b1 by the application to indicate that a read or write access is in progress.<br />

ETH_MACMIIDR (MII Data) should be kept valid until this bit is cleared by the MAC during a<br />

PHY Write operation. The ETH_MACMIIDR is invalid until this bit is cleared by the MAC<br />

during a PHY Read operation. The ETH_MACMIIAR (MII Address) should not be written to<br />

until this bit is cleared.<br />

Ethernet MAC MII data register (ETH_MACMIIDR)<br />

Address offset: 0x0014<br />

Reset value: 0x0000 0000<br />

The MAC MII Data register stores write data to be written to the PHY register located at the<br />

address specified in ETH_MACMIIAR. ETH_MACMIIDR also stores read data from the PHY<br />

register located at the address specified by ETH_MACMIIAR.<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 />

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

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

MD<br />

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

Bits 15:0 MD: MII data<br />

This contains the 16-bit data value read from the PHY after a Management Read operation,<br />

or the 16-bit data value to be written to the PHY before a Management Write operation.

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

Saved successfully!

Ooh no, something went wrong!