Keil Logo Arm Logo

Discussion Forum

RTC INTERRUPT ENABLE

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
pranam gharat
Posted
20-Feb-2009 09:37 GMT
Toolset
ARM
New! 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.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.