Architecture
1846
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
EMAC/MDIO Module
32.2.15 Reset Considerations
32.2.15.1 Software Reset Considerations
The peripheral clock is controlled by the Global Clock Module (GCM), while the reset to the EMAC, MDIO
and EMAC control module is controlled by the system module. See the "Architecture" chapter of the
Technical Reference Manual for more on how to enable or disable the peripheral clock to the EMAC,
MDIO and EMAC control module. For more on how the EMAC, MDIO, and EMAC control module are
disabled or placed in reset at runtime, see
Within the peripheral itself, the EMAC component of the Ethernet MAC peripheral can be placed in a reset
state by writing to the soft reset register (SOFTRESET). Writing a 1 to the SOFTRESET bit causes the
EMAC logic to be reset and the register values to be set to their default values. Software reset occurs
when the receive and transmit DMA controllers are in an idle state to avoid locking up the configuration
bus; it is the responsibility of the software to verify that there are no pending frames to be transferred.
After writing a 1 to the SOFTRESET bit, it may be polled to determine if the reset has occurred. If a 1 is
read, the reset has not yet occurred; if a 0 is read, then a reset has occurred.
After a software reset operation, all the EMAC registers need to be reinitialized for proper data
transmission, including the FULLDUPLEX bit setting in the MAC control register (MACCONTROL).
Unlike the EMAC module, the MDIO and EMAC control modules cannot be placed in reset from a register
inside their memory map.
32.2.15.2 Hardware Reset Considerations
When a hardware reset occurs, the EMAC peripheral has its register values reset and all the components
return to their default state. After the hardware reset, the EMAC needs to be initialized before being able
to resume its data transmission, as described in
.
A hardware reset is the only means of recovering from the error interrupts (HOSTPEND), which are
triggered by errors in packet buffer descriptors. Before doing a hardware reset, you should inspect the
error codes in the MAC status register (MACSTATUS) that gives information about the type of software
error that needs to be corrected. For detailed information on error interrupts, see