Trace a Scheduled Read Into a Ring Buffer

Trace a Scheduled Read Into a Ring Buffer

Try Press Step once to follow reading A from the bearing sensor to the peripheral result register before it enters the ring.

Trace a Scheduled Read Into a Ring Buffer

Bounded storage
Sampling Timer Interrupt Sensor read Bearing sensor Ring buffer Fixed · schematic Empty Next write Empty Empty … Forwarding Scheduled upload not yet due

Separate sampling and forwarding schedules

The sample schedule determines when the device takes a reading. The forwarding schedule determines when it sends data.

Observe In Frame 4, Next write points to A in the full ring. By Frame 5, New has replaced A and the marker points to B, now the oldest reading.
Explain The full ring wraps its write marker to the oldest occupied slot, so the next completed write replaces A. When forwarding becomes due in Frame 6, only the newer retained window is available.

Technical boundaries. The fixed ring diagram skips the middle slots and gives no sampling or upload interval. The direct transfer assumes a peripheral with DMA support and DMA configured. Copying A before overwrite is shown as a design option.

Back to the chapter