A Glossary ................................................................................................................................................. 7
Related documents ................................................................................................................................... 8
Revision history .......................................................................................................................................... 9
UBX-20009242 - R02 Contents Page 3 of 10
C1-Public
RC oscillator configuration for nRF5 open CPU modules - Application note
1 Introduction
For applications running on the ANNA-B1, BMD-3 and NINA-B40 series modules, there is a choice of
the low-frequency oscillator source. The lowest possible power consumption scenario uses an
external crystal and loading capacitors connected to GPIO pins named P0.00 and P0.01. Using the
crystal also provides a tighter tolerance which is required for certain protocols, for example ANT+ [3].
The NINA-B306-01B module cannot use an external low frequency crystal oscillator (LFXO), and the
application software needs to be configured for the internal RC oscillator clock source.
Certain applications may need to utilize all the GPIO pins, may be size-constrained where the space
required for the crystal and capacitors is not available, or extremely cost conscious. For these
applications, internal RC oscillator may be selected. Links to the LFCLK product specification
sections of the nRF CPUs are in [4], [5], [6], and [7].
Bluetooth® Low Energy applications may use either low-frequency clock source [2].
UBX-20009242 - R02 Introduction Page 4 of 10
C1-Public
RC oscillator configuration for nRF5 open CPU modules - Application note
2 SDK configuration
After making the necessary modifications, recompile the application to apply the changes.
For all of the examples provided by Nordic Semiconductor in the nRF5 SDK, the default is the LFXO.
The external crystal and capacitors are provided on the EVKs, so no modifications are necessary.
2.2 Internal RC low-frequency oscillator (LFRC)
Each nRF5 SDK example project is provided with a header file called sdk_config.h. Within this file,
three sections need minor modification in order to select the LFRC. The
large, and changes with each SDK release, so specific line numbers are not mentioned. A text search
will show the necessary sections.
2.2.1 SoftDevice clock configuration
The first section to modify contains four parameters to configure SoftDevice timing. Locate the
following section in sdk_config.h:
#define NRF_SDH_CLOCK_LF_RC_CTIV 16 // was 0 (ignored)
#endif
2.2.1.3 SoftDevice calibration timer interval under constant temperature
// <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under
// constant temperature.
// <i> How often (in number of calibration intervals) the RC oscillator shall be
// calibrated if the temperature has not changed.
#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2 // was 0 (ignored)
#endif
// <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to
// compute timing.
// <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
// <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
// <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
// <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
UBX-20009242 - R02 SDK configuration Page 5 of 10
C1-Public
RC oscillator configuration for nRF5 open CPU modules - Application note
The nRF5 CPUs also have a synthesized low-frequency clock option. While it provides the tightest
tolerance (<10 ppm), it also uses the most power since the HFCLK must always be enabled. Nordic
Semiconductor does not recommend its use with current SoftDevices
2
.
1
Although the nRF52832 product specification calls out ±250 ppm for LFRC accuracy, SDK v16.0.0 suggests using ±500 ppm.
Other nRF52 CPUs specify ±500 ppm for LFRC.
2
See the Nordic Semiconductor SoftDevice release notes contained within the downloaded zip file
UBX-20009242 - R02 SDK configuration Page 6 of 10
C1-Public
RC oscillator configuration for nRF5 open CPU modules - Application note
Appendix
A Glossary
Abbreviation Definition
ANT+ Low power wireless communication standard
ARM Arm (Advanced RISC Machines) Holdings
CPU Central Processing Unit
LFXO Low-frequency crystal oscillator
LFRC Low-frequency RC oscillator
LFSYNT Synthesized low-frequency oscillator
PPM Parts per million
SDK Software Development Kit
SoftDevice Nordic Semiconductor implementation of the Bluetooth communications stack
Table 1: Explanation of the abbreviations and terms used
UBX-20009242 - R02 Appendix Page 7 of 10
C1-Public
RC oscillator configuration for nRF5 open CPU modules - Application note