14 reset considerations, 1 software reset considerations, 2 hardware reset considerations – Texas Instruments TMS320C674X User Manual

Page 48

Advertising
background image

Architecture

www.ti.com

2.14 Reset Considerations

2.14.1

Software Reset Considerations

Peripheral clock and reset control is done through the Power and Sleep Controller (PSC) module included
with the device. For more on how the EMAC, MDIO, and EMAC control module are disabled or placed in
reset at runtime from the registers located in the PSC module, see

Section 2.17

.

With the EMAC still in reset (PSC in the default state):

1. Program the PINMUX register(s) as required for the desired interface (MII or RMII), see your

device-specific System Reference Guide and your device-specific data manual for details.

2. Program the PSC to enable the EMAC. For information on how to enable the EMAC peripheral from

the PSC, see your device-specific System Reference Guide.

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.

2.14.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

Section 2.15

.

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

Section 2.16.1.4

.

48

EMAC/MDIO Module

SPRUFL5B – April 2011

Submit Documentation Feedback

© 2011, Texas Instruments Incorporated

Advertising