目录

RMII(Reduced Media Independent Interface)

Ethernet MAC和PHY之间数据传递的一种MII(Media Independent Interface)接口,,MII的精简版本,线减半时钟翻倍,最高支持100Mbps。

常用标准

RMII Specification V1.2

原理图设计

RMII信号连接如下图(图中PHY的TX和RX按按照MAC侧定义的,即MAC的TX应连接PHY的RX,MAC的RX连接PHY的TX):

RMII各信号的定义见下表:

Table 8: RMII Signal Definitions
Signal Name Source Description
REF_CLK Switch/MAC or External Reference Clock.This clock is sourced externally or by the MAC and is
always 50 MHz.Both the MAC and the PHY have the same data and control
signals on the rising edge of this clock.
TXEN Switch/MAC Transmit Enable.Active high single indicating that the current 2-bit data on
TXD[1:0]is valid.
TXD[1:0] Switch/MAC Transmit Data.2-bit transmit data bus.
CRS_DV PHY Carrier Sense/Receive Data Valid.Active high signal indicating that the
media is non-idle and that the current data on the RXD[1:0]is valid.
RXD[1:0] PHY Receive Data.2-bit receive data bus.
RXER PHY Receive Error.Active high signal instructing the MAC that a packet error has
been detected.
MDC Switch/MAC Management Data Clock.
MDIO Bidirectional Management Data.

电平转换:RMII电平一般有1.8V、2.5V和3.3V三种,MAC和PHY尽量配置成同样的电平,避免使用电平转换芯片。如果电平无法一致,因其时钟频率高,三极管或MOS管的电平转换电路不满足此频率要求,需要用专门的转换芯片。TI提供的电平转换芯片见文档“ Voltage Translation Buying Guide”。

PCB设计

Ethernet:MII(MII、RMII、GMII、RGMII)布线

测试

调测参考文档 TI AN-1405 DP83848 Reduced Media Independent Interface™ (RMII™) Mode

参考文献