Help with analog raster scanning

Hmm, why would you need timers for this?

Why not just
while (not_yet_finished) {sample, proceed to next sawtooth step, delay}

This would keep the sawtooth and the sampling automatically in sync.

The two biggest performance killers will be the analog sampling and the output of the sampled values through the serial interface.