Geoffrey Lewis

5213 DTIM3 - Having issues with creating/Start interrupt

Discussion created by Geoffrey Lewis on Jan 17, 2007
Latest reply on Jan 25, 2007 by Mark Butcher
Hello !  I have been working a project that requires and isr for dtim3.  I'm trying to setup an interrput for dtim3. I have added my isr to vector 22 in the vector.s file. Here's the code :
 
    MCF_INTC_ICR22 |= MCF_INTC_ICR_IL(3) | MCF_INTC_ICR_IP(3);
    MCF_DTIM3_DTRR = ( SYS_CLK_KHZ / PRESCALER / TIMER_RATE ) - 1;
    MCF_DTIM3_DTMR = ( (uint16) ( PRESCALER - 1 ) << 8 ) + 0x001b;
    MCF_INTC_IMRH = 0xfff7fffe;

I'm lost on this. Code someone please look at this and tell me what I'm doing wrong.

 

Thanks

Geoffrey


:
 
 

Outcomes