Consecutive PWM signals with different prescaler settings
Clear the count in the prescaler each time you change the prescaler setting. For prescaler 0 the reset bit is the low bit bit of GTCCR. Set, then clear the prescaler reset bit with :

GTCCR=GTCCR | 1; 
GTCCR=GTCCR &amp; 0xfe;