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

nRF52832 / changing clock source dynamically in the FW

Hello,

We've a Custom board based on nRF52832, it works fine in beacon mode using the Synth Clock (else it doesn't work):

// <o> CLOCK_CONFIG_LF_SRC  - LF Clock Source
// <0=> RC
// <1=> XTAL
// <2=> Synth

#ifndef CLOCK_CONFIG_LF_SRC
#define CLOCK_CONFIG_LF_SRC  2
#endif

But is it possible to change the source dynamically in the FW?  (like using RC oscillator in sleep mode and back to Synth in Active mode)

Thanks,

John.

Parents
  • Hi John

    To answer your question, yes, you can change the LF clock source dynamically if you like. That said it shouldn't be necessary, will complicate your firmware and increase the overall current consumption. 

    What happens if you try to use the RC source all the time?

    Have you made sure to request external HF clock before enabling the radio?

    Are you using a SoftDevice for the beaconing, or are you using custom code?

    Best regards
    Torbjørn

     

Reply
  • Hi John

    To answer your question, yes, you can change the LF clock source dynamically if you like. That said it shouldn't be necessary, will complicate your firmware and increase the overall current consumption. 

    What happens if you try to use the RC source all the time?

    Have you made sure to request external HF clock before enabling the radio?

    Are you using a SoftDevice for the beaconing, or are you using custom code?

    Best regards
    Torbjørn

     

Children
No Data
Related