29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

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

RM0008<br />

RMII clock sources<br />

As described in the RMII clock sources section, the STM32F107xx could provide this<br />

50 MHz clock signal on its MCO output pin <strong>and</strong> you then have to configure this output value<br />

through PLL configuration.<br />

Figure 291. RMII clock sources<br />

STM32<br />

25 MHz<br />

802.3 MAC<br />

External<br />

PHY<br />

PLL<br />

REF_CLK<br />

MCO<br />

50 MHz<br />

For 10/100 Mbit/s<br />

50 MHz<br />

ai15625<br />

27.4.4 MII/RMII selection<br />

The mode, MII or RMII, is selected using the configuration bit 23, MII_RMII_SEL, in the<br />

AFIO_MAPR register. The application has to set the MII/RMII mode while the Ethernet<br />

controller is under reset or before enabling the clocks.<br />

MII/RMII internal clock scheme<br />

The clock scheme required to support both the MII <strong>and</strong> RMII, as well as 10 <strong>and</strong> 100 Mbit/s<br />

operations is described in Figure 292.<br />

Figure 292. Clock scheme<br />

MAC<br />

MII_TX_CLK as AF<br />

(25 MHz or 2.5 MHz)<br />

MII_RX_CLK as AF<br />

(25 MHz or 2.5 MHz)<br />

RMII_REF_CK as AF<br />

(50 MHz)<br />

GPIO <strong>and</strong> AF<br />

controller<br />

GPIO <strong>and</strong> AF<br />

controller<br />

25 MHz or 2.5 MHz<br />

50 MHz<br />

Sync. divider<br />

/2 for 100 Mb/s<br />

/20 for 10 Mb/s<br />

25 MHz or 2.5 MHz<br />

0 25 MHz<br />

1 or 2.5 MHz<br />

0 MII<br />

1 RMII (1)<br />

0<br />

1<br />

25 MHz<br />

or 2.5 MHz<br />

MACTXCLK<br />

MACRXCLK<br />

TX<br />

RX<br />

RMII<br />

AHB<br />

HCLK<br />

must be greater<br />

than 25 MHz<br />

HCLK<br />

ai15650<br />

1. The MII/RMII selection is controlled through bit 23, MII_RMII_SEL, in the AFIO_MAPR register.<br />

848/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!