MSC8113 Reference Manual, Rev. 0
25-48
Freescale Semiconductor
Ethernet Controller
two above. For either method, make sure that the first TxBD is the last for which
TxBD[R] is set.
2.
To receive Ethernet frames, link the RxBDs together as a ring and point the
corresponding registers to them. Both transmit and receive can be gracefully stopped
after transmission and reception begins.
3.
Clearing DMACTRL[GTS] triggers the transmission of frame data if the transmitter had
been previously stopped. The DMACTRL[GRS] must be cleared if the receiver had
been previously stopped. Refer to the DMACTRL DMA Control Register, on
page 25-59, and Section 25.10.1 for more information.
4.
Write to MACCFG1R and set the appropriate bits, including RXEN and TXEN. To
enable flow control, RXFL and TXFL should also be set.
Before issuing any type reset to and/or reconfiguring the MAC with new parameters, you must
properly shut down the DMA controller and ensure that it is in an idle state by setting both the
DMACTRL[GRS, GTS] bits. Wait for both the IEVENT[GRSC, GTSC] bits to be set, clear them
by writing 1 and then set the Ethernet controller internal reset bit (MIIGSK_GPR[IR]). The
internal reset must be valid for at least 10 core cycles. Then clear the MIIGSK_GPR[IR] bit and
reconfigure the Ethernet controller. During the MAC configuration, the TBASE register and the
RBASEn registers must be written with the pointers that points to the TX/RX set of descriptors.
Use the following procedure for resetting and reconfiguring the MAC. The page numbers
indicate the location of the appropriate register descriptions.
1.
Set the DMACTRL[GRS, GTS] bits (page 25-59).
2.
Poll the IEVENT[GRSC, GTSC] bit until both are set (page 25-53).
3.
Clear the DMACTRL[GRS, GTS] bits (page 25-59).
4.
Set the MIIGSK_GPR[IR] bit (page 25-97)
5.
Wait 20 Core Cycles.
6.
Clear the MIIGSK_GPR[IR] bit (page 25-97).
7.
Set the MIIGSK_ENR[EN] bit (page 25-98).
8.
Wait until the MIIGSK_ENR[R} bit sets (page 25-98).
9.
Set the MACCFG1R[SRESET] bit (page 25-84).
10.
Clear the MACCFG1R[SRESET] bit (page 25-84).
11.
Write 01 to the MACCFG2R[22–23] bits (page 25-85).
12.
Set DMAMR[9] (page 25-61).
13.
Set FRXCTRLR[30] (page 25-63).
14.
Configure the MIIGSK_CFGR (page 25-96).
Summary of Contents for MSC8113
Page 1: ...MSC8113 Reference Manual Tri Core 16 Bit Digital Signal Processor MSC8113RM Rev 0 May 2008 ...
Page 20: ...MSC8113 Reference Manual Rev 0 xx Freescale Semiconductor Contents ...
Page 28: ...MSC8113 Reference Manual Rev 0 xxviii Freescale Semiconductor ...
Page 56: ...MSC8113 Reference Manual Rev 0 1 28 Freescale Semiconductor MSC8113 Overview ...
Page 76: ...MSC8113 Reference Manual Rev 0 2 20 Freescale Semiconductor SC140 Core Overview ...
Page 134: ...MSC8113 Reference Manual Rev 0 4 30 Freescale Semiconductor System Interface Unit SIU ...
Page 168: ...MSC8113 Reference Manual Rev 0 6 18 Freescale Semiconductor Boot Program ...
Page 180: ...MSC8113 Reference Manual Rev 0 7 12 Freescale Semiconductor Clocks ...
Page 260: ...MSC8113 Reference Manual Rev 0 8 80 Freescale Semiconductor Memory Map ...
Page 300: ...MSC8113 Reference Manual Rev 0 9 40 Freescale Semiconductor Extended Core ...
Page 304: ...MSC8113 Reference Manual Rev 0 10 4 Freescale Semiconductor MQBus and M2 Memory ...
Page 308: ...MSC8113 Reference Manual Rev 0 11 4 Freescale Semiconductor SQBus ...
Page 590: ...MSC8113 Reference Manual Rev 0 17 46 Freescale Semiconductor Interrupt Processing ...
Page 614: ...MSC8113 Reference Manual Rev 0 18 24 Freescale Semiconductor Debugging ...
Page 622: ...MSC8113 Reference Manual Rev 0 19 8 Freescale Semiconductor Internal Peripheral Bus IPBus ...
Page 724: ...MSC8113 Reference Manual Rev 0 21 32 Freescale Semiconductor UART ...
Page 920: ...MSC8113 Reference Manual Rev 0 25 150 Freescale Semiconductor Ethernet Controller ...
Page 1171: ...MSC8113 Reference Manual Rev 0 Freescale Semiconductor C 61 EF wait_rts P 01077FFC 9F rts 71 ...
Page 1172: ...MSC8113 Reference Manual Rev 0 C 62 Freescale Semiconductor MSC8113 Boot Code ...
Page 1202: ...MSC8113 Reference Manual Rev 0 Index 30 Freescale Semiconductor Index ...