I have implemented RTC and I used controller LPC2148.I'm having an issue while generating code rtc interrupt, it stuck into the rtc interrupt.so can anyone suggest me. `
below is my code, This is my rtc interrupt:
void RTChandler(void)__irq
{
if(ILR&01)
//set the flag
ILR = 0x01;
VICVectAddr = 0x00000000; // clear this interrupt from the VIC
//
}
And this is my rtc initialization:
ILR = 0x00;
CCR = 0x11;
CIIR = 0x00;
VICVectAddr13 = (unsigned)RTChandler;
VICVectCntl13 = 0x20 | 13;
VICIntEnable |= (1<<13); // Enable RTC Interrupt
return 1;
User contributions licensed under CC BY-SA 3.0