I am generating two PWM signals (with different frequencies) from Timer 1 and Timer 2. And I am doing direct value assignments to the timer registers (TCCR1A, TCCR1B, etc.).
When I observe the two signals on an oscilloscope, the phase between the two signals is constantly changing. That is, one signal is static on the oscilloscope screen, and the other signal slowly "slides" to the right side of the screen. I would like to ask if there is a way to "lock" the phase between those two signals? And what is the cause for the problem?