sawtooth output; calculated by timer interrupt, output by main