SWRA640H December 2018 – May 2024 CC1310 , CC1312R , CC1314R10 , CC1350 , CC1352P , CC1352R , CC1354P10 , CC1354R10 , CC2620 , CC2630 , CC2640 , CC2640R2F , CC2640R2F-Q1 , CC2642R , CC2642R-Q1 , CC2650 , CC2652P , CC2652R , CC2652R7 , CC2652RB , CC2652RSIP , CC2674P10 , CC2674R10
The frequency of the 32kHz crystal oscillator is set by properly dimensioning the load capacitors relative to the crystal´s wanted load capacitance, CL. From the crystal´s point of view, the two capacitors are placed in series, which means that the “resistor parallel” equation to calculate the resulting total capacitance must be used. Also keep in mind that the PCB traces and the pads add some parasitic capacitance. Equation 2 shows how to calculate the right load capacitance value.
The last simplification requires that C1 and C2 are equal.
The best way to measure the frequency accuracy of the oscillator is to output the clock signal on an I/O pin. This way the frequency can be measured using a frequency counter without affecting the oscillator. The following Driverlib calls can output the selected 32kHz clock source in all power states except Shutdown:
#include <driverlib/aon_ioc.h>
IOCPortConfigureSet(IOIDn, IOC_PORT_AON_CLK32K, IOC_STD_OUTPUT);
AONIOC32kHzOutputEnable();