A CC2652R logger replaces its watch crystal with a low-frequency clock from a nearby module. Both schematics say “32 kHz”, yet the old design used 32.768 kHz and the new input is 32.000 kHz. The build and programming succeed while the clock loses tens of seconds an hour. Measure the exact input frequency and check how much time the RTC adds on each edge. A stable input can still produce a steady error when the increment represents a different frequency.
Configure how much time an edge represents
TI lists several SCLK_LF sources for the CC2652R, including the LF RC oscillator, a 32.768 kHz crystal and an external clock on digital I/O. Section 9.7 says the RTC tick speed can compensate for an external frequency other than 32.768 kHz. Using an external DIO path thus involves the pin selection and the time represented by each edge. That describes the adjustment capability. Check frequency, logic levels, power, firmware stack and standby operation for the application. TI CC2652R datasheet, sections 9.7 and 9.13
The CCFG register reference puts the external source details in EXT_LF_CLK. Select the external low-frequency option with SCLK_LF_OPTION and specify the DIO in that field. RTC_INCREMENT is 2 to the power of 38 divided by the input frequency in hertz. The technical reference manual treats the CCFG field and RTC subsecond increment as different registers, so verify both the source setting and the running SUBSECINC. TI's public startup code shows the external-source branch reading the increment, routing the DIO and enabling digital bypass. TI SWCU185G technical reference, CCFG and AON RTC TI CCFG EXT_LF_CLK fields TI DriverLib external LF startup path
Two nominal 32 kHz sources need different increments
At 32768 Hz, 2 to the power of 38 divided by 32768 equals 8388608, or 0x800000. With an exact 32000 Hz input and this same increment, the RTC advances by 32000 ÷ 32768 per actual second, or 0.9765625 seconds. The loss per hour is 3600 × (1 − 0.9765625), or 84.375 seconds. In a day it loses 2025 seconds, equal to 33 minutes and 45 seconds. This assumes the same external-clock mode throughout and no correction. A proportional error of this size warrants checking the nominal frequency and increment first.
At 32000 Hz, the ideal increment is 274877906944 ÷ 32000, or 8589934.592. Rounding to the nearest integer gives 8589935, or 0x83126F. Rounding alone is equivalent to about +0.0475 ppm, or 4.1 ms per day. An assumed input running +20 ppm high all day would add about 1.728 s. In sourcing, specify the precise nominal frequency and stability over temperature, age, voltage and operating conditions. The increment fixes the amount of time assigned to each nominal input period. Source error still accumulates.
A public CC2652R firmware build example shows 0x800000 and the external clock DIO as separate settings. It helps locate the fields, after which the actual assembly determines the values. The right device model at application level does not prove the flashed image enables the correct LF path. Record whether a debugger paused the device. TI notes that the RTC can halt when the debugger halts the chip by default, so a one-hour measurement containing a breakpoint needs to be interpreted in that context. Public CC2652R firmware build record TI CC2652R timer and debug behaviour
Verify both the waveform and time scale
Use one board and a fixed external source. Measure the frequency at the DIO with an independent counter, then run firmware that toggles a diagnostic pin at RTC intervals without debugger stops. Capture an independent PPS on a second channel and measure elapsed-time error. Compare the original and revised builds against the same reference to see whether the proportional drift goes away. If the timeline still jumps, look for missing clock pulses, a source that stops when the host sleeps or an application-level network time adjustment. A final seconds difference alone cannot reconstruct interruptions.
A short run can expose the predicted scale error. With the old increment, 300 real seconds appear as about 292.969 seconds, a loss of about 7.031 seconds. Use that as a comparison slope. A pin toggled once per RTC second has a complete high-low period of two seconds. Count adjacent transitions or use same-polarity edges with the appropriate factor of two. Recompute with the actual DIO frequency from the counter to distinguish nominal mismatch from source error.
Test the relevant power states independently. An external module that supplies the low-frequency clock must remain available through the host's required standby periods. At host reset, verify that the external source is ready and the firmware applies the same DIO and increment. The datasheet also describes the RTC as the TI-RTOS system time base and gives a separate relationship to the radio timer. Use supported clock interfaces when running the RTOS and verify network behaviour alongside time accuracy. One accurate application-level interval does not qualify the radio path. TI CC2652R RTC and Radio Timer information
Production also needs a cross-check when both frequencies ship under one product name. Select the image by hardware revision or explicit configuration and verify the low-frequency fields on the fixture. A manually copied constant for the first prototype is insufficient for updates. If the module produces its clock by division, record the frequency actually delivered at its pin and retain the relationship among its parent source, division and measured LF output. The same oscillator part can then be traced through different boards to the time scale of each RTC.
Share one change record across purchasing and production. Include the full reference order code, exact nominal frequency, DIO, hexadecimal increment, verified build and measurements in run and standby. If several modules use the reference, record who powers it and whether an upstream module can turn it off. A future quote that only says 32 kHz can then be resolved to 32.000 or 32.768 before testing, instead of appearing as a frequency-tolerance problem afterwards.
