}
The data in the
the
register. See
STAADD
The function in
function block of the MAC. First, the
be polled until no other function is using the MIM block. The PHY
address and register address is sent over the MIM block. Then, the
bit is polled again, before the data is finally read through the
STABUSY
register.
EMAC_STADAT
Listing 8-9. Read Access to the PHY
//
/* Read an off-chip register in a PHY through the MDC/MDIO port
*/
//
u16
RdPHYReg(u16 PHYAddr, u16 RegAddr)
{
u16 Data;
PollMdcDone();
*pEMAC_STAADD =
PollMdcDone();
Data = (u16)*pEMAC_STADAT;
return Data;
}
ADSP-BF537 Blackfin Processor Hardware Reference
SET_REGAD(RegAddr) |\
STAOP | STABUSY;
register is immediately shifted out after a write to
STADAT
Figure 8-4 on page
Listing 8-9
shows how PHY data is read over the MIM
SET_PHYAD(PHYAddr) |\
SET_REGAD(RegAddr) |\
STABUSY;
8-9.
bit of the
STABUSY
Ethernet MAC
will
EMAC_STAADD
8-131
Need help?
Do you have a question about the Blackfin ADSP-BF537 and is the answer not in the manual?