
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
127 of 808
NXP Semiconductors
UM10360
Chapter 10: LPC17xx Ethernet
Here are two examples to access PHY via the MII Management Controller.
For PHY Write if scan is not used:
1. Write 0 to MCMD
2. Write PHY address and register address to MADR
3. Write data to MWTD
4. Wait for busy bit to be cleared in MIND
For PHY Read if scan is not used:
1. Write 1 to MCMD
2. Write PHY address and register address to MADR
3. Wait for busy bit to be cleared in MIND
4. Write 0 to MCMD
5. Read data from MRDD
11.15 Station Address 0 Register (SA0 - 0x5000 0040)
The Station Address 0 register (SA0) has an address of 0x5000 0040. The bit definition of
this register is shown in
The station address is used for perfect address filtering and for sending pause control
frames. For the ordering of the octets in the packet please refer to
11.16 Station Address 1 Register (SA1 - 0x5000 0044)
The Station Address 1 register (SA1) has an address of 0x5000 0044. The bit definition of
this register is shown in
2
NOT VALID
When ’1’ is returned - indicates MII Mgmt Read cycle has not
completed and the Read Data is not yet valid.
0
3
MII Link Fail When ’1’ is returned - indicates that an MII Mgmt link fail has
occurred.
0
31:4
-
Unused
0x0
Table 122. MII Mgmt Indicators register (MIND - address 0x5000 0034) bit description
Bit
Symbol
Function
Reset
value
Table 123. Station Address register (SA0 - address 0x5000 0040) bit description
Bit
Symbol
Function
Reset
value
7:0
STATION ADDRESS,
2nd octet
This field holds the second octet of the station address.
0x0
15:8
STATION ADDRESS,
1st octet
This field holds the first octet of the station address.
0x0
31:16
-
Unused
0x0