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

nRF51822 use without external oscillator

Hello,

i found a few articels about it but none of them where helpfull for me.

I just want to use my nRF51822 Module from Raytac without an external 32khz oszillator.
I tried a few examples without success.

I use SDK 12.3, my application is build up from the ble_app_template.

Is there any good documentation about that? I just want a solution to change my code to get it running without an external quarz.

Thanks a lot

Best regards

Max

Parents
  • HI Max, 

    you need to set the NRF_CLOCK_LFCLKSRC configuration , defined in pca10028.h, to use the NRF_CLOCK_LF_SRC_RC and not the NRF_CLOCK_LF_SRC_XTAL, i.e 

    Fullscreen
    1
    2
    3
    4
    #define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC, \
    .rc_ctiv = 16 \
    .rc_temp_ctiv = 2, \
    .xtal_accuracy = 0}
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Best regards
    Bjørn

  • Hello,

    it works well, thank you so much.
    by the way where can i find informations like these? it is for a nrf beginner not easy to get started whith basics like that.

Reply
  • Hello,

    it works well, thank you so much.
    by the way where can i find informations like these? it is for a nrf beginner not easy to get started whith basics like that.

Children
No Data