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

How can I set PCA10001 work with 32MHz?

For PCA10001 have 16MHz crystal, and I use the NOP to test the cycle. And found the device work in 16MHz. How to set this board as 32MHz?

This is my current setting in S120: SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false);

Thanks!

  • Hi

    The PCA10001 only has, as you say, a 16MHz crystal. There is no way to generate 32MHz. Some of our boards use an external 32MHz crystal, but then the nRF51 will divide the frequency by two and still run at 16MHz. So, i.e., there is no way to run the nRF51 at frequencies above 16MHz.

    The code line you show us is a macro for initializing the stack event handler. It tells the softdevice what low frequency clock to use. In your case it is an external 32.768Hz crystal with 20 Parts Per Million accuracy.

Related