Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Timer interrupt on the C6748

$
0
0

Hi everyone


I am trying to get an interrupt routine with the timer 0, I have try a lot of things, all bad...

So with the HWI on the HWI_INT5 my interrupt selection number is 4 (the timer) and my function "_TimerIT"

here is my configuration function for the timer ;

void configureTimer()
{
    timer_regs_t* myTimer = TMR0; //define of the evcm6748_timer.h
    myTimer->TGCR = TIMMODE_64BIT;
    myTimer->TGCR |= TIM34RS;            // Remove the timer from reset
    myTimer->TGCR |= TIM12RS;            // (TIM12RS and TIM34RS in TGCR)
    myTimer->PRD12 = 0xFFFFFFFF;        // low 32 bits, compared value
    myTimer->PRD34 = 0xFFFFFFFF;        // high 32 bits, clock rate = ?
    myTimer->TCR |= ENAMODE12_CONT;        // To enable the 64-bit timer for continuous operation


    C64_disableIER(C64_EINT5);    // Turn off interrupt
    C64_enableIER (C64_EINT5);     //HWI it 5 enable
    C64_clearIFR(C64_EINT5);    // Clear flag
}

and my interrupt function is called ;

void TimerIT (void)     //1_023MHz
{

}

I want an interrupt with a freauency of 1,023MHz but the CPU never goes in my interrupt routine

Thank you very much for helping.

Simon.


Viewing all articles
Browse latest Browse all 17527

Trending Articles