Hi, look at the following post, perhaps it can help you.
With this code now the interrupt is running in MQX but I have to set the DTIM3 manually ... can I do it or should I use MQX routines?
static void (_CODE_PTR_ old_isr_dtim3)(pointer);
MCF_DTIM3_DTMR = BASE_TIMER_CLK_BUS_1 | BASE_TIMER_PRESCALER_1 | BASE_TIMER_RESET_AFTER_MATCH | BASE_TIMER_INT_ENABLED | BASE_TIMER_DISABLED;
MCF_DTIM3_DTXMR = BASE_TIMER_STEP_1 | BASE_TIMER_CONTINUE_HALTED | BASE_TIMER_DMA_REQUEST_DISABLED;
MCF_DTIM3_DTRR = BASE_TIMER_REFERENCE_VALUE;
MCF_DTIM3_DTER |= (uint_8)0x03; //Clear reference flag
old_isr_dtim3=_int_install_isr(MCF5225_INT_DTIM3, (void (_CODE_PTR_)(pointer))isrINT_DTIM3, NULL);
MCF_INTC0_ICR22 = (uint_8)((DTIM3_INTERRUPT_LEVEL << 3) | DTIM3_INTERRUPT_PRIORITY);
MCF_INTC0_IMRL &= ~IMRL3_TBASE_MASK;
if (NULL == old_isr_dtim3)
return IO_ERROR; /* could not install new interrupt routine */
MCF_DTIM3_DTMR |= (uint_16)0x0001; //Timer start
Hi, look at the following post, perhaps it can help you.