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

29.4 Ethernet functional description: SMI, MII and RMII<br />

The Ethernet peripheral consists of a MAC 802.3 (media access control) with a dedicated<br />

DMA controller. It supports both default media-independent interface (MII) and reduced<br />

media-independent interface (RMII) through one selection bit (refer to SYSCFG_PMC<br />

register).<br />

The DMA controller interfaces with the Core and memories through the AHB Master and<br />

Slave interfaces. The AHB Master Interface controls data transfers while the AHB Slave<br />

interface accesses Control and Status Registers (CSR) space.<br />

The Transmit FIFO (Tx FIFO) buffers data read from system memory by the DMA before<br />

transmission by the MAC Core. Similarly, the Receive FIFO (Rx FIFO) stores the Ethernet<br />

frames received from the line until they are transferred to system memory by the DMA.<br />

The Ethernet peripheral also includes an SMI to communicate with external PHY. A set of<br />

configuration registers permit the user to select the desired mode and features for the MAC<br />

and the DMA controller.<br />

Note: The AHB clock frequency must be at least 25 MHz when the Ethernet is used.<br />

Figure 320. ETH block diagram<br />

AHB Slave interface<br />

Bus matrix<br />

DMA<br />

control &<br />

status<br />

registers<br />

Ethernet<br />

DMA<br />

Operation<br />

mode<br />

register<br />

2 Kbyte<br />

RX FIFO<br />

2 Kbyte<br />

TX FIFO<br />

Media access<br />

control<br />

MAC 802.3<br />

Checksum<br />

offload<br />

MAC<br />

control<br />

registers<br />

1. For AHB connections please refer to Figure 1: System architecture for STM32F40x and STM32F41x<br />

devices and Figure 2: System architecture for STM32F42x and STM32F43x devices.<br />

29.4.1 Station management interface: SMI<br />

PTP<br />

IEEE1588<br />

PMT MMC<br />

The station management interface (SMI) allows the application to access any PHY registers<br />

through a 2-wire clock and data lines. The interface supports accessing up to 32 PHYs.<br />

The application can select one of the 32 PHYs and one of the 32 registers within any PHY<br />

and send control data or receive status information. Only one register in one PHY can be<br />

addressed at any given time.<br />

Both the MDC clock line and the MDIO data line are implemented as alternate function I/O<br />

in the microcontroller:<br />

● MDC: a periodic clock that provides the timing reference for the data transfer at the<br />

maximum frequency of 2.5 MHz. The minimum high and low times for MDC must be<br />

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

RMII<br />

Interface<br />

MII<br />

MDC<br />

MDIO<br />

Select<br />

External PHY<br />

ai15620c

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

Saved successfully!

Ooh no, something went wrong!