Texas Instruments Development Kit for TM4C129x,Tiva™ ARM® Cortex™ -M4 Microcontroller DK-TM4C129X DK-TM4C129X Datenbogen

Produktcode
DK-TM4C129X
Seite von 2182
24.3.14
Reduced Media Independent Interface (RMII)
The Reduced Media Independent Interface (RMII) specification reduces the pin count between
Ethernet PHYs and Ethernet MACs. According to the IEEE 802.3u standard, an MII contains 16
pins for data and control. In devices incorporating multiple MAC or PHY interfaces such as switches,
the number of pins adds significant cost with increase in port count. The RMII specification addresses
this problem by reducing the pin count to 7 for each port — a 62.5% decrease in pin count.
The RMII module has the following features:
■ Supports both 10-Mbps and 100-Mbps operating rates
■ Provides independent, two-bit wide transmit and receive paths
Each nibble is transmitted on the RMII two bits at a time. For a nibble {D3, D2, D1, D0}, the data is
transferred as {D1, D0} followed by {D3, D2}.
24.3.15
Interrupt Configuration
Interrupts can be generated from the MAC as a result of various events in the MAC and sub-modules.
MAC interrupts are enabled or disabled in the Ethernet MAC Interrupt Mask (EMACIM) register,
MAC offset 0x03C. Each interrupt event can be masked by setting the corresponding mask bit in
the EMACIM register.
The interrupt register bits in the Ethernet MAC Raw Interrupt Status (EMACRIS) register only
indicate the sub-module from which the event is reported. The application must read the
corresponding status registers to clear the interrupt.
24.4
EMAC Initialization and Configuration
The EMAC interface defaults to MII mode. To initialize the RMII interface:
1.
The MAC module and registers are enabled and powered at reset. When reset has completed,
the application should enable the clock to the Ethernet MAC by setting the
R0
bit in the Ethernet
Controller Run Mode Clock Gating Control (RCGCEMAC) register at System Control Module
offset 0x69C.
2.
Enable the external clock source input to the RMII interface signal
EN0RREF_CLK
by setting
both the
ECEXT
and
CLKEN
bit in the in the Ethernet Clock Configuration (EMACCC) register
at offset 0xFC8. The external clock source must be 50 MHz with a frequency tolerance of 50
PPM.
3.
Select the RMII interface by programming the
PINTFS
bit field to 0x4 in the Ethernet Peripheral
Configuration (EMACPC) register at offset 0xFC4.
4.
Reset the Ethernet MAC to latch the new RMII configuration by setting the
SWR
bit in the
EMACDMABUSMOD register. This bit resets the Ethernet MAC registers in addition to
configuring the RMII interface. Software must poll the
SWR
bit to determine when the new
configuration has been registered.
After this configuration is active, if the Ethernet MAC is reset by setting the
R0
bit in the Ethernet
MAC Software Reset (SREMAC) register in the System Control Module, then the interface is set
back to its default MII configuration. In this case, the steps listed above must be repeated to return
to an RMII interface.
The Initialization for the DMA for the Ethernet MAC is as follows:
1647
December 13, 2013
Texas Instruments-Advance Information
Tiva
TM4C129XNCZAD Microcontroller