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.

335x rtc error

Other Parts Discussed in Thread: SYSBIOS

Hi all,

when setting "Every second " interrupt, but it may happen about 10 times, which is up to time delay of isr.

How to clear this  RTC period interrupt? I can not find any key words.

Is it a chip bug?

Regards,

Lusheng

  • Hi Lusheng,
     
    Can you explain in more detail what is the problem? What software are you using?
  • Hi quote,

    Sysbios.

    setting "RTC Every second " interrupt, it always happened several times when 1 second interrupt event has came. The repeated times is not sure, it is related with isr service time.

    Regards,

    Lusheng 

  • There is a dedicated SYSBIOS forum. I'm going to move this thread there.
  • Hi Quate,

    This is not related with sysbios.

    I happened in startware envioronment.

    I think there is something wrong with chip configuration such as rtc, clock, debounce logic or interrupt controller.

    Maybe it is a bug of TI's chip.

    I donot know why and need your help.

    Regards,

    Lusheng

  • Hi Lusheng,

    Sorry for the delayed response.

    setting "RTC Every second " interrupt, it always happened several times when 1 second interrupt event has came.
    The repeated times is not sure, it is related with isr service time.

    What i understand from the above statement is that you are setting a 1s periodic interrupt and are not getting this
    interrupt repeatedly or the time interval of this is not accurate.
    Correct me if am wrong about this.

    Meanwhile, have you tried running the RTC clock example from Starterware release package? It provides a good example reference for periodic interrupts.

    Regards,
    Anant Pai

  • Anant Pai,

    I think you are wrong.

    I have tried Starterware release package rtcClock example. In startware rtc case, isr will print ticks every second, but if you remove the print code, just add code such as i++, and then print the value i in while loop, you will find that the value of i will increase about 50 times every second. If isr service time is longer, times will be less. If isr service time is longer than 30us, the value just increase once every second.

    I think there is something wrong with TI's RTC module or interrupt controller about RTC, The interrupt is level-sensitive, and the clock is 32K(one cycle is 31us ). The interrupt controller cannot clear the rtc interrupt during one rtc clock cycle. 


  • Hi Lusheng,

    We are investigating this issue of getting correct interrupt at intervals of every 1 second. The RTC example released with the package does work correctly though.

     Meanwhile can you try to change the clock source to external Clock and check if you are still getting the same behavior?

    The change required can be affected using the below line.

    RTC32KClkSourceSelect(SOC_RTC_0_REGS, RTC_EXTERNAL_CLK_SRC_SELECT);

    Regards

    Anant Pai