Sleepwalking

Some peripherals have the ability to process incoming data without waking the CPU. Depending on the incoming data, the peripherals can decide if the CPU should be woken up, or if there is no further action to take. On the Relevant Devices, there are two such peripherals. The TWI supports Wake on Address Match, where it examines the start of an incoming data frame, and only wakes the CPU if the address of the incoming frame matches its own address. The ADC supports Window mode, where each sample is compared with two values, representing a window. Based on configuration, the ADC can wake the CPU if the sample is below, above, inside, or outside the window.