Hi,
I have an application with LWIP running under SYS/BIOS. I need a timer with an overflow interrupt available for my use. I have tried DMTimer3 but when I do LWIP just stops communicating after about a minute also SYS/BIOS seems to stop running tasks. Also Timer3 gets reprogrammed somewhere in this process.
This is my setup for Timer3
#define MY_TIMER SOC_DMTIMER_3_REGS
#define PRE_SCALER DMTIMER_PRESCALER_CLK_DIV_BY_2
// Init timer
DMTimer3ModuleClkConfig(); // NOTE: This # Must match the chosen value for MY_TIMER
DMTimerReset(MY_TIMER);
// Use at 12.5 Mhz
DMTimerPreScalerClkEnable(MY_TIMER,PRE_SCALER);
DMTimerModeConfigure(MY_TIMER,DMTIMER_ONESHOT_NOCMP_ENABLE);
DMTimerCounterSet(MY_TIMER,0);
// Enable the interrupt on overflow
DMTimerIntEnable(MY_TIMER,DMTIMER_INT_OVF_EN_FLAG);
// Kick it off...
DMTimerEnable(MY_TIMER);
ready = 1; // Up and running
Should I use another timer or what ?
Thanks very much for the help.
--jim schimpf