This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

RTC INTERRUPT ENABLE

my code hangs in following statement while lcd initialization.

void RTC_INIT (void)
{

PREINT=(int)(PCLK / 32768)-1; PREFRAC=PCLK - ((PREINT+1)* 32768); CIIR=0X00000002; //min counter register interrupt CCR=0X12; //ENABLED RTC & RESET COUNTERS VICVectAddr14 =(unsigned long)RTC_ISR; VICVectCntl14 = 0x20 | 13 ;
VICIntEnable = 1 << 13; //hangs here CCR=0X11; //ENABLED RTC

}

please suggest me why this is happening ,

because same routine is working fine in my old board.