Hi to everyone!
It's the first time I use and program clocks in a device. I'm very lost with crystals, power management and this stuff.
I have a custom board with two crystals: one is high frecuency and the other is external low frecuency.
I read SoftDevice must use high frecuency to getting working, but the high frecuency uses a lot of energy, so I want to change the crystal depending on if I'm using SoftDevice or not.
Here I find some code to code the crystals.
And in this two posts (one and two) I found some code to change the crystal, but these are for nRF51 and I don't know if will work with my board.
Also, I have some questions I want to ask you:
-
Can I use the development board (I have nRF52832DK) to test my programs (for custom boards) even if it hasn't have the same crystals and the same PPM?
-
Which NRF_CLOCK_LF_XTAL_ACCURACY value should I take If the crystal doesn't fit with anything, the lower or the higher? And should I take the typical or the maximum PPM in the datasheet as value?
-
What is the difference between RC oscilator and crystal oscilator (both internally and externally)?
Thank you in advance!