Users Guide
Submit Documentation Feedback
Mdio Registers
Mdio Version Register Version Mdio Control Register Control
Appendix a
Appendix B
List of Figures
Transmit Interrupt Mask Set Register Txintmaskset
List of Tables
MAC Control Register Maccontrol Field Descriptions
Read This First
Related Documentation From Texas Instruments
Related Documentation From Texas Instruments
Features
Purpose of the Peripheral
Functional Block Diagram
Emac and Mdio Block Diagram
MII Clocking
Industry Standards Compliance Statement
Clock Control
Media Independent Interface MII Connections
Signal Descriptions
Memory Map
Pin Multiplexing
Emac and Mdio Signals for MII Interface
Signal Type Description
Ethernet Protocol Overview
Ethernet Frame Format
Ethernet Frame Description
Field Bytes Description
Ethernet’s Multiple Access Protocol
Programming Interface
Packet Buffer Descriptors
Word
Basic Descriptor Description
Field Field Description
Transmit and Receive Descriptor Queues
Transmit and Receive Emac Interrupts
Transmit Buffer Descriptor Format
Example 1. Transmit Buffer Descriptor in C Structure Format
Next Descriptor Pointer
Buffer Pointer
Buffer Offset
Buffer Length
End of Packet EOP Flag
Ownership Owner Flag
End of Queue EOQ Flag
Teardown Complete Tdowncmplt Flag
Receive Buffer Descriptor Format
Receive Buffer Descriptor Format
Example 2. Receive Buffer Descriptor in C Structure Format
Buffer Length
Code Error Codeerror Flag
Alignment Error Alignerror Flag
CRC Error Crcerror Flag
Jabber Flag
Emac Control Module
Internal Memory
Bus Arbiter
CPU
Receive Pulse Interrupt
Interrupt Control
Transmit Pulse Interrupt
Interrupt Pacing
Receive Threshold Pulse Interrupt
Miscellaneous Pulse Interrupt
Mdio Module
Mdio Module Components
Mdio Clock Generator
Global PHY Detection and Link State Monitoring
Mdio Module Operational Overview
PHY Register User Access
Active PHY Monitoring
Reading Data From a PHY Register
Initializing the Mdio Module
Writing Data To a PHY Register
Example of Mdio Register Access Code
Example 3. Mdio Register Access Macros
Emac Module
Emac Module Components
Receive DMA Engine
Receive Fifo
Clock and Reset Logic
MAC Receiver
Receive Address
Transmit DMA Engine
Emac Module Operational Overview
Media Independent Interface MII
Data Reception
Receive Control
Receive Inter-Frame Interval
Collision-Based Receive Buffer Flow Control
Ieee 802.3x-Based Receive Buffer Flow Control
Transmit Control
CRC Insertion
Adaptive Performance Optimization APO
Interpacket-Gap IPG Enforcement
Transmit Flow Control
Speed, Duplex, and Pause Frame Support
Receive Channel Enabling
Receive DMA Host Configuration
Packet Receive Operation
Receive Address Matching
Hardware Receive QOS Support
Receive Frame Classification
Host Free Buffer Tracking
Receive Channel Teardown
Receive Frame Treatment
Promiscuous Receive Mode
Receive Frame Treatment Summary
Middle of Frame Overrun Treatment
Receive Overrun
Middle of Frame Overrun Treatment
Transmit DMA Host Configuration
Packet Transmit Operation
Receive and Transmit Latency
Transmit Channel Teardown
Transfer Node Priority
Reset Considerations
Software Reset Considerations
Hardware Reset Considerations
Initialization
Enabling the EMAC/MDIO Peripheral
Emac Control Module Initialization
Example 4. Emac Control Module Initialization Code
Mdio Module Initialization
Example 5. Mdio Module Initialization Code
Emac Module Initialization
Interrupt Support
Emac Module Interrupt Events and Requests
Receive Threshold Interrupts
Transmit Packet Completion Interrupts
Receive Packet Completion Interrupts
Host Error Interrupt
Statistics Interrupt
User Access Completion Interrupt
Mdio Module Interrupt Events and Requests
Link Change Interrupt
Proper Interrupt Processing
Power Management
Emulation Considerations
Emulation Control
Soft Free Description
Emac Control Module Registers
Slave Vbus
Acronym Register Description
Bit Field Value Description
Emac Control Module Software Reset Register Cmsoftreset
Softreset
Emac Control Module Emulation Control Register Cmemcontrol
Soft Free
Intprescale
Emac Control Module Interrupt Control Register Cmintctrl
Intpaceen
Rxthreshen
Rxpulseen
Txpulseen
Statpendinten
Statpendinten Hostpendinten Linkinten Userinten
Bit Field
Rxthreshinttstat
Rxpulseinttstat
Txpulseinttstat
31-8 Reserved TXPULSEINTTSTATn
Statpendintstat Hostpendintstat Linkintstat Userintstat
Statpendintstat
Rximax
Tximax
Mdio Version Register Version Field Descriptions
Mdio Version Register Version
Management Data Input/Output Mdio Registers
Mdio Control Register Control
Mdio Control Register Control Field Descriptions
PHY Acknowledge Status Register Alive
PHY Link Status Register Link
PHY Acknowledge Status Register Alive Field Descriptions
PHY Link Status Register Link Field Descriptions
31-2 Reserved
Will clear the event and writing a 0 has no effect
No Mdio user command complete event
USERINTMASKED0 and USERINTMASKED1 correspond to USERACCESS0
W1S-0
Mdio User Command Complete Interrupt Mask Clear Register
Mdio User Command Complete Interrupt Mask Clear Register
Mdio User Access Register 0 USERACCESS0
Mdio User Access Register 0 USERACCESS0 Field Descriptions
Mdio User PHY Select Register 0 USERPHYSEL0
Linksel Linkintenb
Phyadrmon
Linksel
Mdio User Access Register 1 USERACCESS1
Mdio User Access Register 1 USERACCESS1 Field Descriptions
Mdio User PHY Select Register 1 USERPHYSEL1
Mdio User PHY Select Register 1 USERPHYSEL1
Ethernet Media Access Controller Emac Registers
Offset Acronym Register Description
Network Statistics Registers
Transmit Control Register Txcontrol Field Descriptions
Transmit Identification and Version Register Txidver
Transmit Control Register Txcontrol
Txtdnch
Transmit Teardown Register Txteardown
Transmit Teardown Register Txteardown Field Descriptions
Receive Identification and Version Register Rxidver
Rxident
Rxmajorver Rxminorver
Rxmajorver
Receive Control Register Rxcontrol
Receive Teardown Register Rxteardown
Receive Control Register Rxcontrol Field Descriptions
Receive Teardown Register Rxteardown Field Descriptions
Transmit Interrupt Status Unmasked Register Txintstatraw
TX7PEND
Transmit Interrupt Status Masked Register Txintstatmasked
Transmit Interrupt Status Masked Register Txintstatmasked
Transmit Interrupt Mask Set Register Txintmaskset
TX7MASK
Transmit Interrupt Mask Clear Register Txintmaskclear
Transmit Interrupt Mask Clear Register Txintmaskclear
MAC Input Vector Register Macinvector
MAC End Of Interrupt Vector Register Maceoivector
MAC Input Vector Register Macinvector Field Descriptions
Statpend
Receive Interrupt Status Unmasked Register Rxintstatraw
RX7PEND
Receive Interrupt Status Masked Register Rxintstatmasked
Receive Interrupt Status Masked Register Rxintstatmasked
Receive Interrupt Mask Set Register Rxintmaskset
RX7MASK
Receive Interrupt Mask Clear Register Rxintmaskclear
Receive Interrupt Mask Clear Register Rxintmaskclear
Hostpend Statpend
MAC Interrupt Status Unmasked Register Macintstatraw
MAC Interrupt Status Masked Register Macintstatmasked
MAC Interrupt Mask Set Register Macintmaskset
MAC Interrupt Mask Clear Register Macintmaskclear
Hostmask Statmask
Hostmask
Rxpasscrc Rxqosen Rxnochain
Rxcmfen
Rxcsfen Rxcefen Rxcafen
Rxpromch
Frames containing errors are filtered
Receive multicast channel select
Receive Unicast Enable Set Register Rxunicastset
RXCH7EN
Receive Unicast Clear Register Rxunicastclear
Receive Unicast Clear Register Rxunicastclear
Receive Maximum Length Register Rxmaxlen Field Descriptions
Receive Maximum Length Register Rxmaxlen
Receive Buffer Offset Register Rxbufferoffset
Rxfilterthresh
Receive Channel 0-7 Free Buffer Count Register RXnFREEBUFFER
MAC Control Register Maccontrol
MAC Control Register Maccontrol Field Descriptions
Txflowen
Rxbufferflowen
Loopback
Fullduplex
MAC Status Register Macstatus
MAC Status Register Macstatus Field Descriptions
Rxqosact
Emulation Control Register Emcontrol
Fifo Control Register Fifocontrol
Emulation Control Register Emcontrol Field Descriptions
Fifo Control Register Fifocontrol Field Descriptions
MAC Configuration Register Macconfig
Soft Reset Register Softreset
MAC Configuration Register Macconfig Field Descriptions
Soft Reset Register Softreset Field Descriptions
MAC Source Address Low Bytes Register Macsrcaddrlo
MAC Source Address High Bytes Register Macsrcaddrhi
MAC Hash Address Register 1 MACHASH1
MAC Hash Address Register 2 MACHASH2
MAC Hash Address Register 1 MACHASH1 Field Descriptions
MAC Hash Address Register 2 MACHASH2 Field Descriptions
Back Off Test Register Bofftest Field Descriptions
Back Off Test Register Bofftest
Transmit Pacing Algorithm Test Register Tpacetest
Receive Pause Timer Register Rxpause
Transmit Pause Timer Register Txpause
Receive Pause Timer Register Rxpause Field Descriptions
Transmit Pause Timer Register Txpause Field Descriptions
MAC Address Low Bytes Register Macaddrlo
MAC Address Low Bytes Register Macaddrlo Field Descriptions
Valid Matchfilt Channel MACADDR0 MACADDR1
Valid
MAC Address High Bytes Register Macaddrhi
MAC Index Register Macindex
MAC Index Register Macindex Field Descriptions
MACADDR2 MACADDR3 MACADDR4 MACADDR5
TXnHDP
Transmit Channel 0-7 Completion Pointer Register TXnCP
Receive Channel 0-7 Completion Pointer Register RXnCP
Network Statistics Registers
Good Receive Frames Register Rxgoodframes
Broadcast Receive Frames Register Rxbcastframes
Multicast Receive Frames Register Rxmcastframes
Receive CRC Errors Register Rxcrcerrors
Receive Alignment/Code Errors Register Rxaligncodeerrors
Pause Receive Frames Register Rxpauseframes
Receive Oversized Frames Register Rxoversized
Receive Jabber Frames Register Rxjabber
Receive Undersized Frames Register Rxundersized
Receive Frame Fragments Register Rxfragments
Filtered Receive Frames Register Rxfiltered
Receive QOS Filtered Frames Register Rxqosfiltered
Receive Octet Frames Register Rxoctets
Good Transmit Frames Register Txgoodframes
Broadcast Transmit Frames Register Txbcastframes
Pause Transmit Frames Register Txpauseframes
Deferred Transmit Frames Register Txdeferred
Transmit Collision Frames Register Txcollision
Transmit Single Collision Frames Register Txsinglecoll
Transmit Underrun Error Register Txunderrun
Transmit Carrier Sense Errors Register Txcarriersense
Transmit Late Collision Frames Register Txlatecoll
Transmit Octet Frames Register Txoctets
Submit Documentation Feedback
Network Octet Frames Register Netoctets
Receive DMA Overruns Register Rxdmaoverruns
Appendix a Glossary
Physical Layer Definitions
Term Definition
Document Revision History
Reference Additions/Modifications/Deletions
Rfid
Products Applications
DSP