
Ethernet (ETH): media access control (MAC) with DMA controller
RM0008
1008/1096
Doc ID 13902 Rev 12
Ethernet MAC MII data register (ETH_MACMIIDR)
Address offset: 0x0014
Reset value: 0x0000 0000
The MAC MII Data register stores write data to be written to the PHY register located at the
address specified in ETH_MACMIIAR. ETH_MACMIIDR also stores read data from the PHY
register located at the address specified by ETH_MACMIIAR.
Ethernet MAC flow control register (ETH_MACFCR)
Address offset: 0x0018
Reset value: 0x0000 0000
The Flow control register controls the generation and reception of the control (Pause
Command) frames by the MAC. A write to a register with the Busy bit set to '1' causes the
MAC to generate a pause control frame. The fields of the control frame are selected as
specified in the 802.3x specification, and the Pause Time value from this register is used in
the Pause Time field of the control frame. The Busy bit remains set until the control frame is
Bits 4:2
CR:
Clock range
The CR clock range selection determines the HCLK frequency and is used to decide the
frequency of the MDC clock:
Selection HCLK
MDC
Clock
000 60-72
MHz
HCLK/42
001 Reserved
-
010 20-35
MHz
HCLK/16
011 35-60
MHz
HCLK/26
100, 101, 110, 111 Reserved
-
Bit 1
MW:
MII write
When set, this bit tells the PHY that this will be a Write operation using the MII Data register. If
this bit is not set, this will be a Read operation, placing the data in the MII Data register.
Bit 0
MB:
MII busy
This bit should read a logic 0 before writing to ETH_MACMIIAR and ETH_MACMIIDR. This bit
must also be reset to 0 during a Write to ETH_MACMIIAR. During a PHY register access, this
bit is set to 0b1 by the application to indicate that a read or write access is in progress.
ETH_MACMIIDR (MII Data) should be kept valid until this bit is cleared by the MAC during a
PHY Write operation. The ETH_MACMIIDR is invalid until this bit is cleared by the MAC during
a PHY Read operation. The ETH_MACMIIAR (MII Address) should not be written to until this bit
is cleared.
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
Reserved
MD
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw rw rw
rw
rw
Bits 31:16 Reserved
Bits 15:0
MD:
MII data
This contains the 16-bit data value read from the PHY after a Management Read operation, or
the 16-bit data value to be written to the PHY before a Management Write operation.