Applying Sleepwalking to Example Application

Implementing ADC window mode in the example application could potentially allow the CPU to extend standby sleep. The ADC itself can compare the converted value, and check if it is below the window (if the heater is OFF) or above the window (if the heater is ON). The CPU will only wake up when it needs to turn the heater ON or OFF. In a perfectly stable environment, the CPU would never wake up, causing the total power consumption to be equal to the sleep mode consumption. In a constantly fluctuating environment, where the temperature alternates between below and above the thresholds for every sample (i.e. every second), the power consumption will be the same as when the CPU wakes up to do the comparison for every converted ADC sample.