AnsweredAssumed Answered

LPC1768 RTC interrupt per minutes issues

Question asked by Krishna H on Nov 20, 2018
Latest reply on Nov 27, 2018 by Victor Jimenez

Hi team,

i tried to generate an interrupt in LPC1768 RTC interrupt per minutes, but it is not generate the interrupt per minutes, it generates the per second. 

 

so please check the below code.

int rtc_initialize()

{

__set_PCONP(PCRTC, 1);     

RTC_CCR = ((1 << SBIT_CTRST) | (1 << SBIT_CCALEN));

RTC_CALIBRATION = 0x00;

RTC_CIIR = 0x0002;    // minutes interrupt

RTC_CCR = (1<<SBOIT_CLKEN);   // Enable clock

RTC_ILR |= (1<<RTCALF);     // enable counter interrupt

__set_irqn_priority(RTC_TRQn,22);

}

 

let me know for any clarification

 

Thanks

Krishna

Outcomes