This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C5507 RTC

Hi,We are using the C5507 in our application.  I am trying to use the RTC to generate a periodic alarm every 2 to 3 seconds, but I am having difficulty getting it to work.  I have managed to a get an alarm every minute, however.  Is there any advice for configuring the RTC registers for generating an alarm very few seconds?

 

Thanks,

Mike

  • (this is for C5515 but should be applicable to C5507 too.)

    Try seting up the alarm using this register directly: CSL_RTC_REGS->RTCINTREG = 0x0021; 

    0x0021 is for wakeup and periodic millisecond interrupt enabled and the rest disabled.I believe you should set it to 0x0024 to have the wakeup interrupt and the periodic minute interrupt enabled. and 0x0022 for wakeup and second interrupt. I do not remember which bit to set to get an alarm interrupt (for which you set an alarm time) but it is in the same register and you can easily find it from the datasheet.

    I hope it helps...

  • Thanks for the reply!  As a far as I know, the C5515 RTC register configuration looks different than the C5507.  The C5507 does not have a wakeup interrupt and the bit mapping looks different, at least in the Interrupt enable register.  I did manage to get a seconds alarm working in the C5507 by stopping the RTC, resetting it, configuring the alarm and starting the RTC.