Timer programming

I repeat that to get jitter-free timer output you have to use the hardware timer output. Not an ISR.