Texas Instruments TMS320C6A816 Series Technical Reference Manual page 447

C6-integra dsp+arm processors
Table of Contents

Advertisement

www.ti.com
Example 3-4. EMAC Control Module Initialization Code
Uint32 tmpval ;
/* Disable all the EMAC/MDIO interrupts in the control module */
EmacControlRegs->CONTROL.CMRXINTEN
EmacControlRegs->CONTROL.C_TX_EN
EmacControlRegs->CONTROL.CMRXTHRESHINTEN = 0;
EmacControlRegs->CONTROL.C_MISC_EN
/* Wait about 100 cycles */
for( I=0; i<5; I++ )
tmpval = ECTL_REGS->EWCTL ;
#ifdef INTT_PACING
/* Set the control related to pacing of TX and RX interrupts */
EmacControlRegs->INTR_COUNT->C_RX_IMAX = 0x4; // 4 RX intt/ms
EmacControlRegs->INTR_COUNT->C_TX_IMAX = 0x4; // 4 TX intt/ms
EmacControlRegs->CMINTCTRL = 0x30000; //bit16,bit17 for enabling TX and Rx intt pacing.
EmacControlRegs->CMINTCTRL |= 0x258; // 600 clocks of 150MHz in 4us time
#endif
/* Initialize MDIO and EMAC Module */
[Discussed later in this document]
/* Enable all the EMAC/MDIO interrupts in the control module */
EmacControlRegs->CONTROL.CMRXINTEN
EmacControlRegs->CONTROL.C_TX_EN
EmacControlRegs->CONTROL.CMRXTHRESHINTEN = 0xff;
EmacControlRegs->CONTROL.C_MISC_EN
SPRUGX9 – 15 April 2011
Submit Documentation Feedback
Preliminary
= 0;
= 0;
= 0;
= 0xff;
= 0xff;
= 0xf;
© 2011, Texas Instruments Incorporated
Architecture
447
EMAC/MDIO Module

Advertisement

Table of Contents
loading

Table of Contents