Not sure of a solution yet, but from watching the posted video, I am guessing the problem is some kind of timing issue. I don't think you have things configured wrong as the output looks great most of the time. Rather I think there are some times when a counter gets reset of an interrupt gets interrupted. It glitches then goes right back to perfect wave.
If you watch it and don't alter the frequency, does the glitch happen at regular intervals, or is it random in nature?
Bookmarks