Trace a FIFO Watermark Wake and Delayed Read

Trace a FIFO Watermark Wake and Delayed Read

Try Select Step from the empty FIFO to see where samples A and B sit while the MCU remains asleep.

What happens before the host can read?

Accelerometer FIFO

Sampling while asleep

Illustrative ADXL345 FIFO mode
Preserve stored samples. Watermark enabled and routed to a wake-capable MCU pin. Timeline and occupancy spacing are schematic.
Track Before sample arrival
Sample arrivals Sensor running
FIFO occupancy Empty · below watermark
Mapped interrupt pin Inactive
MCU sleep and wake Asleep
Bus transactions Idle
Oldest · read endEmptyNewest end

In this configuration the sensor keeps sampling while the MCU sleeps.

Observe In frame 3, sample C reaches the watermark, the mapped pin changes from Inactive to Asserted, and the MCU changes from Asleep to Waking while the bus stays Idle.
Explain In frame 4, the mapped watermark interrupt has signaled that a batch is ready, but the MCU takes time to wake, so sample D can arrive before the first read.

Technical boundaries. The ADXL345 example assumes FIFO mode with the watermark routed to a wake-capable MCU pin. The timeline and spacing for queue occupancy are schematic. Sample letters are animation aids. Bench evidence of which samples were expected comes from independent stimulus or timing measurements.

Back to the chapter