Hi Charles O. But I am using driver library example code. Here is the ISR of RTC in my code.. //RTC interrupt #pragma vector=RTC_VECTOR __interrupt void RTC_A_ISR (void) { switch (__even_in_range(RTCIV,16)){ case 0: break; //No interrupts case 2: //RTCRDYIFG break; case 4: //RTCEVIFG //Interrupts every minute __no_operation(); break; case 6: //RTCAIFG //INTERRUPT ON EVERRY DAY MORNING AT 6 O'CLOCK if( RTCHOUR >= 0x06 ) //0x18 { //Switch OFF //P6OUT &= ~(BIT6); } // ON else if(RTCHOUR == 0x18) { //P6OUT |= BIT6; } break; case 8: break; //RT0PSIFG case 10: break; //RT1PSIFG case 12: break; //Reserved case 14: break; //Reserved case 16: break; //Reserved default: break; } } Earlier I tried with example code As Per your given link. In that i have confusion to set AE bit or not for alarm interrupt. The RTC register given is RTCAHOUR = 0x10; but as per datasheet it should be RTCAHOUR = 0x90; if AE bit set Regards , Sanjay
↧