I can't seem to make my Mega8 work in fast PWM mode /w Timer1
Just to be sure, I set all bits in the compare registers to 1 before anything else.
Then I set the apropriate bits for Mode 7 - 10bit fast PWM:
Mode WGM13 WGM12(CTC1) WGM11(PWM11) WGM10(PWM10) 7 0 1 1 1
When running the code in latest AStudio, the counter bounces at $03FF and counts backwards down to $0000 and then fires the interrupt.
That looks more like mode 3 - PWM, Phase Correct, 10-bit.
To me, this looks like it might be a bug in AVRStudio, and it's ignoring the WGM12 bit, but I'm not sure...