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

SMI clock selection<br />

The MAC initiates the Management Write/Read operation. The SMI clock is a divided clock<br />

whose source is the application clock (AHB clock). The divide factor depends on the clock<br />

range setting in the MII Address register.<br />

Table 160 shows how to set the clock ranges.<br />

Table 160. Clock range<br />

Selection HCLK clock MDC clock<br />

000 60-100 MHz AHB clock / 42<br />

001 100-168 MHz AHB clock / 62<br />

010 20-35 MHz AHB clock / 16<br />

011 35-60 MHz AHB clock / 26<br />

100, 101, 110, 111 Reserved -<br />

29.4.2 Media-independent interface: MII<br />

The media-independent interface (MII) defines the interconnection between the MAC<br />

sublayer and the PHY for data transfer at 10 Mbit/s and 100 Mbit/s.<br />

Figure 324. Media independent interface signals<br />

STM32<br />

802.3 MAC<br />

TX _CLK<br />

TXD[3:0]<br />

TX_EN<br />

RX_CLK<br />

RXD[3:0]<br />

RX_ER<br />

RX_DV<br />

CRS<br />

COL<br />

MDC<br />

MDIO<br />

External<br />

PHY<br />

ai15622b<br />

● MII_TX_CLK: continuous clock that provides the timing reference for the TX data<br />

transfer. The nominal frequency is: 2.5 MHz at 10 Mbit/s speed; 25 MHz at 100 Mbit/s<br />

speed.<br />

● MII_RX_CLK: continuous clock that provides the timing reference for the RX data<br />

transfer. The nominal frequency is: 2.5 MHz at 10 Mbit/s speed; 25 MHz at 100 Mbit/s<br />

speed.<br />

● MII_TX_EN: transmission enable indicates that the MAC is presenting nibbles on the<br />

MII for transmission. It must be asserted synchronously (MII_TX_CLK) with the first<br />

nibble of the preamble and must remain asserted while all nibbles to be transmitted are<br />

presented to the MII.<br />

● MII_TXD[3:0]: transmit data is a bundle of 4 data signals driven synchronously by the<br />

MAC sublayer and qualified (valid data) on the assertion of the MII_TX_EN signal.<br />

Doc ID 018909 Rev 3 906/1416

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

Saved successfully!

Ooh no, something went wrong!