One solution comes in the form of a combination of a fast, and a slow clock in the same device. Figure 2 depicts this in a small block diagram. It shows that while the XCXT uses two high frequency crystals, the STU has in addition a 32kHz clock that can be used during sleep time. The trick is that just before going to sleep, the XCXT is used to calibrate the 32kHz clock, such that we can turn off the XCXT, but maintain accurate time while consuming little power during sleep. This recalibration happens independent of the MCU sleep schedule. Figure 3 visualizes this, where at the far left, and right, the MCU is active, and in-between, the XCXT is periodically turned on and off in order to compensate the 32kHz clock for changes in temperature. Note that shortly before the MCU wakes up, the XCXT is turned on in order to exploit the higher granularity of the fast crystals available to the MCU.
At first, it was thought that a slow 32kHz and a fast () clock within the XCXT itself would suffice. However, because of inherent crystal resonance properties, there are no combinations of crystals with frequencies two decades apart such that the vs curve is bijective. This led us to the design choice of implementing the STU with three inexpensive crystals.
|