ADSP-BF537 Blackfin Processor Hardware Reference
8-49
Ethernet MAC
To perform a station management write transfer:
1. Initialize
MDCDIV
in the
EMAC_SYSCTL
register. The frequency of the
MDC clock is
SCLK / [ 2 * ( 1) ]
. Thus
MDCDIV
=
( SCLK_Freq / MDC_Freq )/2 - 1
. For typical 400ns
(2.5MHz) MDC rate at
SCLK = 125MHz
, set
MDCDIV
to
( 125MHz / 2.5MHz ) / 2 -1 = 50/2-1 = 24
.
2. Write the data into
EMAC_STADAT
.
3. Write
EMAC_STAADD
with the PHY address, register address,
STAOP = 1
,
STABUSY = 1
, and desired selections for preamble enable
and interrupt enable.
4. Do not initiate another read or write access until
STABUSY
reads 0
or until the station management done interrupt (if enabled) has
been received. Accesses attempted while
STABUSY = 1
are discarded.
To perform a station management read transfer:
1. Initialize
MDCDIV
.
2. Write
EMAC_STAADD
with the PHY address, register address,
STAOP = 0
,
STABUSY = 1
, and desired selections for preamble enable
and interrupt enable.
3. Wait either while polling
STABUSY
or until the station management
done interrupt (if enabled) has been received. Note that subsequent
accesses attempted while
STABUSY=1
are discarded. Proceed when
STABUSY
reads 0.
4. Read the data from
EMAC_STADAT
.
Summary of Contents for Blackfin ADSP-BF537
Page 42: ...Contents xlii ADSP BF537 Blackfin Processor Hardware Reference ...
Page 90: ...Development Tools 1 32 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 138: ...Programming Examples 4 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 340: ...SDC Programming Examples 6 84 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 606: ...Programming Examples 9 94 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 660: ...Programming Examples 10 54 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 720: ...Electrical Specifications 11 60 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 840: ...Programming Examples 13 42 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 876: ...Programming Examples 14 36 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 938: ...Programming Examples 15 62 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 958: ...Programming Examples 17 12 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 986: ...Programming Examples 18 28 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1162: ...G 26 ADSP BF537 Blackfin Processor Hardware Reference ...
Page 1218: ...Index I 56 ADSP BF537 Blackfin Processor Hardware Reference ...