Initialization and Reset
MSC8113 Reference Manual, Rev. 0
Freescale Semiconductor
25-47
After the registers are initialized, you must execute the following steps in the order described to
bring the Ethernet controller into a functional state out of reset:
1.
To transmit Ethernet frames, build the TxBDs in memory, link them together as a ring,
and point to the ring. A minimum of two TxBDs per ring is required. Use one of the
following two methods to handle the transmit buffers:
a.
Method one:
•
Set the DMACTRL[WOP] bit (see page 25-59).
•
Before setting the TxBD[R] bit, clear the TSTAT[THLT] bit if set by writing to the
TSTAT[THLT] bit (see page 25-70 and page 25-137).
b.
Method two:
•
Clear the DMACTRL[WOP] bit (see page 25-59).
•
Before setting the TxBD[R] bit, set the DMACTRL[GTS] bit (see page 25-59 and
page 25-137).
•
Set the TxBD[R] bit (see page 25-137).
•
Clear the DMACTRL[GTS] bit (see page 25-59).
For both methods, ensure that the top (first) TxBD in the transmitter ring is the last to
have its ready bit set. For example, if the frame is described by three TxBDs, set
TxBD[R] in the last TxBD first, then the middle TxBD, perform either method one or
8.
Select RMII or SMII speed (10Mbps/100Mbps).
MIIGSK Configuration Register (MIIGSK_CFGR)
9.
Clear interrupts to prepare for interrupt events.
Interrupt Event Register (IEVENT).
10. Initialize the interrupt mask to prepare for
interrupt events.
Interrupt Mask Register (IMASK).
11. Set the DMACTRL[30] bit.
DMA Control Register (DMACTRL).
12. Initialize the DMA Maintenance Register by
writing a 1 to DMAMR[9].
DMA Maintenance Register (DMAMR).
13. Initialize the FIFO Receive Control Register by
writing a 1 to FRXCTRLR[30].
FIFO Receive Control Register (FRXCTRLR).
14. Initialize the Pattern Match registers.
Note:
When the Ethernet controller is configured
to accept frames based on destination
address recognition flow (see page 25-25),
you must initialize the individual address
hash table entries registers (see
page 25-132) and the group address hash
table entries (see page 25-132).
PMDn
PMASKn
PCNTRLn
PATTRBn
page 25-133
page 25-133
page 25-134
page 25-135
15. Initialize control of the receive block operating
mode.
Receive Control Register (RCTRL).
16. Initialize the DMA controller.
DMA Control Register (DMACTRL).
Table 25-17. Minimum Register Initialization (Continued)
Initialization Step
Register(s)
Page
Содержание MSC8113
Страница 1: ...MSC8113 Reference Manual Tri Core 16 Bit Digital Signal Processor MSC8113RM Rev 0 May 2008 ...
Страница 20: ...MSC8113 Reference Manual Rev 0 xx Freescale Semiconductor Contents ...
Страница 28: ...MSC8113 Reference Manual Rev 0 xxviii Freescale Semiconductor ...
Страница 56: ...MSC8113 Reference Manual Rev 0 1 28 Freescale Semiconductor MSC8113 Overview ...
Страница 76: ...MSC8113 Reference Manual Rev 0 2 20 Freescale Semiconductor SC140 Core Overview ...
Страница 134: ...MSC8113 Reference Manual Rev 0 4 30 Freescale Semiconductor System Interface Unit SIU ...
Страница 168: ...MSC8113 Reference Manual Rev 0 6 18 Freescale Semiconductor Boot Program ...
Страница 180: ...MSC8113 Reference Manual Rev 0 7 12 Freescale Semiconductor Clocks ...
Страница 260: ...MSC8113 Reference Manual Rev 0 8 80 Freescale Semiconductor Memory Map ...
Страница 300: ...MSC8113 Reference Manual Rev 0 9 40 Freescale Semiconductor Extended Core ...
Страница 304: ...MSC8113 Reference Manual Rev 0 10 4 Freescale Semiconductor MQBus and M2 Memory ...
Страница 308: ...MSC8113 Reference Manual Rev 0 11 4 Freescale Semiconductor SQBus ...
Страница 544: ...MSC8113 Reference Manual Rev 0 16 46 Freescale Semiconductor Direct Memory Access DMA Controller ...
Страница 590: ...MSC8113 Reference Manual Rev 0 17 46 Freescale Semiconductor Interrupt Processing ...
Страница 614: ...MSC8113 Reference Manual Rev 0 18 24 Freescale Semiconductor Debugging ...
Страница 622: ...MSC8113 Reference Manual Rev 0 19 8 Freescale Semiconductor Internal Peripheral Bus IPBus ...
Страница 724: ...MSC8113 Reference Manual Rev 0 21 32 Freescale Semiconductor UART ...
Страница 920: ...MSC8113 Reference Manual Rev 0 25 150 Freescale Semiconductor Ethernet Controller ...
Страница 1171: ...MSC8113 Reference Manual Rev 0 Freescale Semiconductor C 61 EF wait_rts P 01077FFC 9F rts 71 ...
Страница 1172: ...MSC8113 Reference Manual Rev 0 C 62 Freescale Semiconductor MSC8113 Boot Code ...
Страница 1202: ...MSC8113 Reference Manual Rev 0 Index 30 Freescale Semiconductor Index ...