High speed clock using external 32mHz crystal

Hi,

I have a custom board with an external crystal at 32 MHz. How should I configure the clock using nRF Connect SDK 2.5.0, so it can use external crystal?

Thank you

Parents
  • Hi,

    If you are using one of the protocol stacks from Nordic that uses the radio (Bluetooth, Thread, Zigbee, etc), the protocol stack will automatically start the external 32 MHz crystal when it is needed, as this clock source is required for reliable operation of the radio.

    If you want to have the clock running in the application, you can request it as suggested by  or through the function mpsl_clock_hfclk_request() if you have a protocol stack enabled. Note that HFXO will increase the current consumption of the chip quite a bit when it is running, so it is normally only recommended to run it when you require the increased accuracy of the HFCLK compared to using the HFINT source (which is used by default whenever the HFXO is not explicitly started).

    Best regards,
    Jørgen

Reply
  • Hi,

    If you are using one of the protocol stacks from Nordic that uses the radio (Bluetooth, Thread, Zigbee, etc), the protocol stack will automatically start the external 32 MHz crystal when it is needed, as this clock source is required for reliable operation of the radio.

    If you want to have the clock running in the application, you can request it as suggested by  or through the function mpsl_clock_hfclk_request() if you have a protocol stack enabled. Note that HFXO will increase the current consumption of the chip quite a bit when it is running, so it is normally only recommended to run it when you require the increased accuracy of the HFCLK compared to using the HFINT source (which is used by default whenever the HFXO is not explicitly started).

    Best regards,
    Jørgen

Children
Related