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.

TMS320VC5509A RTC INTERRUPT

Other Parts Discussed in Thread: SPRC133

Dear Sir 

i am trying to get an interrupt from RTC module into an ISR but cant succed.

my code is  

RTC_IsrAddr rtc_Isr_addr={
rtc_alarm_ISR,
NULL,
NULL
};

main{


IRQ_setVecs((Uint32)(VECSTART));

rtc_enable();



}
void rtc_enable(void)
{
rtc_EventID = RTC_getEventId();
IRQ_clear(rtc_EventID);
// RTC_setAlarm(&myAlarm);
RTC_setPeriodicInterval(RTC_RATE_500ms);
delay_1ms_onchip(1);
RTC_setCallback(&rtc_Isr_addr);

// IRQ_enable(rtc_EventID);

RTC_start();
RTC_eventEnable(RTC_EVT_PERIODIC);
}

void rtc_alarm_ISR(void)
{
NOP;
rtc_count++;
}

every thing seems o.k . but control is not coming to the break point inside ISR.please help.
Regards
Vikas 
  • Vikas, Please download the Chip Support Library (CSL) for C5000 family of devices from: http://www.ti.com/tool/sprc133 CSL provides examples for all the peripherals including RTC. Please use that as reference, it works perfectly fine. Let me know if that helps.