This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL2-RM57L: RTI Timer Interrupt

Part Number: LAUNCHXL2-RM57L
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

Hi!

I am unable to find out why the RTI Interrupt is not occuring. I basically want a 1ms timer in my code which I can use for timing events. My code is simply:

int main(void)
{
/* USER CODE BEGIN (3) */
    systemInit();

    /* Vector Interrupt Module Initialization */
    vimInit();

    /* Timer Initialization */
    rtiInit();
    rtiStartCounter(rtiREG1, rtiCOUNTER_BLOCK0);

    rtiEnableNotification(rtiREG1, rtiNOTIFICATION_COMPARE0);
    while(!(rtiREG1->INTFLAG & rtiNOTIFICATION_COMPARE0));

    /* Serial Communication Initialization */
    sciInit();

    /* Forever Loop */
    while(1)
    {
        /* Dummy code to transmit SCI data */

        /* Buffer formation for data transfer */
        Mucaa_data_ptr[0] = 0xAA;
        Mucaa_data_ptr[1] = 0x01;
        Mucaa_data_ptr[2] = 0x02;
        Mucaa_data_ptr[3] = 0x03;
        Mucaa_data_ptr[4] = 0x04;
        Mucaa_data_ptr[5] = 0x05;
        Mucaa_data_ptr[6] = 0x06;
        Mucaa_data_ptr[7] = 0x55;

        if((uint16)(Rti_ui_1ms_tmr - Mui_tx_cntr) > 2000)
        {
            Mui_tx_cntr = Rti_ui_1ms_tmr;
            /* Enable the SCI transmit interrupt for SCI3 module */
            sciEnableNotification(sciREG3, SCI_TX_INT);

            /* Transmit data */
            sciSend(sciREG3, 8, &Mucaa_data_ptr[0]);
        }
    }


/* USER CODE END */

    return 0;
}

I just intend to transmit SCI data every 2 seconds, for which, I need RTI timer. Unfortunately, I am unable to attach my halcogen file for reference and therefore put the images. The variable "Rti_ui_1ms_tmr" is configured to increment in the function "rtiNotification" as follows:

void rtiNotification(rtiBASE_t *rtiREG, uint32 notification)
{
/*  enter user code between the USER CODE BEGIN and USER CODE END. */
/* USER CODE BEGIN (12) */
    Rti_ui_1ms_tmr++;
/* USER CODE END */
}

Regards,

Chetan.