This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF24LE1 Gazzell and RTC

I am working with nRF24LE1 and I use the Gazzell library. But I need a real time base. I have a chance, because I think Gazzell uses that resource. Is there any way I can hang on to Gazzell's timer?

Parents
  • Hi Matias

    The RTC interrupt is defined in gzll_timer_isr.c, and you can add some additional code here to update a timer if you want.

    Please be aware that the reload speed of the RTC is deciced by Gazell through the call to gzll_set_timer_period(uint16_t period), found in gzll_mcu.c

    If you want to use the 32k clock to keep track of time you have to take the reload value into account, as this will determine how often the interrupts will fire.

    Best regards
    Torbjørn

Reply
  • Hi Matias

    The RTC interrupt is defined in gzll_timer_isr.c, and you can add some additional code here to update a timer if you want.

    Please be aware that the reload speed of the RTC is deciced by Gazell through the call to gzll_set_timer_period(uint16_t period), found in gzll_mcu.c

    If you want to use the 32k clock to keep track of time you have to take the reload value into account, as this will determine how often the interrupts will fire.

    Best regards
    Torbjørn

Children