![Motorola ColdFire MCF5281 User Manual Download Page 386](http://html.mh-extra.com/html/motorola/coldfire-mcf5281/coldfire-mcf5281_user-manual_245144386.webp)
17-30
MCF5282 User’s Manual
MOTOROLA
Programming Model
To perform a read or write operation on the MII Management Interface, the MMFR register
must be written by the user. To generate a valid read or write management frame, the ST
field must be written with a 01 pattern, and the TA field must be written with a 10. If other
patterns are written to these fields, a frame will be generated but will not comply with the
IEEE 802.3 MII definition.
To generate an IEEE 802.3-compliant MII Management Interface write frame (write to a
PHY register), the user must write {01 01 PHYAD REGAD 10 DATA} to the MMFR
register. Writing this pattern will cause the control logic to shift out the data in the MMFR
register following a preamble generated by the control state machine. During this time the
contents of the MMFR register will be altered as the contents are serially shifted and will
be unpredictable if read by the user. Once the write management frame operation has
completed, the MII interrupt will be generated. At this time the contents of the MMFR
register will match the original value written.
To generate an MII Management Interface read frame (read a PHY register) the user must
write {01 10 PHYAD REGAD 10 XXXX} to the MMFR register (the content of the DATA
field is a don’t care). Writing this pattern will cause the control logic to shift out the data in
the MMFR register following a preamble generated by the control state machine. During
this time the contents of the MMFR register will be altered as the contents are serially
shifted, and will be unpredictable if read by the user. Once the read management frame
operation has completed, the MII interrupt will be generated. At this time the contents of
the MMFR register will match the original value written except for the DATA field whose
contents have been replaced by the value read from the PHY register.
Table 17-17. MMFR Field Descriptions
Bit
Name
Description
31–30
ST
Start of frame delimiter. These bits must be programmed to 01
for a valid MII management frame.
29–28
OP
Operation code. This field must be programmed to 10 (read) or
01 (write) to generate a valid MII management frame. A value
of 11 will produce “read” frame operation while a value of 00 will
produce “write” frame operation, but these frames will not be MII
compliant.
27–23
PA
PHY address. This field specifies one of up to 32 attached PHY
devices.
22–18
RA
Register address. This field specifies one of up to 32 registers
within the specified PHY device.
17–16
TA
Turn around. This field must be programmed to 10 to generate
a valid MII management frame.
15–0
DATA
Management frame data. This is the field for data to be written
to or read from the PHY register.
Summary of Contents for ColdFire MCF5281
Page 124: ...3 20 MCF5282 User s Manual MOTOROLA EMAC Instruction Set Summary ...
Page 141: ...MOTOROLA Chapter 5 Static RAM SRAM 5 5 SRAM Programming Model ...
Page 142: ...5 6 MCF5282 User s Manual MOTOROLA SRAM Programming Model ...
Page 168: ...6 26 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 186: ...7 18 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 228: ...9 22 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 246: ...10 18 MCF5282 User s Manual MOTOROLA Low Power Wakeup Operation ...
Page 254: ...11 8 MCF5282 User s Manual MOTOROLA Memory Map and Registers ...
Page 264: ...12 10 MCF5282 User s Manual MOTOROLA Chip Select Registers ...
Page 280: ...13 16 MCF5282 User s Manual MOTOROLA Misaligned Operands ...
Page 314: ...14 34 MCF5282 User s Manual MOTOROLA MCF5282 External Signals ...
Page 339: ...MOTOROLA Chapter 15 Synchronous DRAM Controller Module 15 25 SDRAM Example ...
Page 340: ...15 26 MCF5282 User s Manual MOTOROLA SDRAM Example ...
Page 356: ...16 16 MCF5282 User s Manual MOTOROLA DMA Controller Module Functional Description ...
Page 408: ...17 52 MCF5282 User s Manual MOTOROLA Buffer Descriptors ...
Page 446: ...20 24 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 474: ...22 18 MCF5282 User s Manual MOTOROLA Programming Model ...
Page 510: ...23 36 MCF5282 User s Manual MOTOROLA Operation ...
Page 526: ...24 16 MCF5282 User s Manual MOTOROLA I2C Programming Examples ...
Page 672: ...28 12 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 718: ...29 46 MCF5282 User s Manual MOTOROLA Motorola Recommended BDM Pinout ...
Page 750: ...32 8 MCF5282 User s Manual MOTOROLA Ordering Information ...