I just finished my own check, and you were right Nick. In Phase Correct PWM with Compare Output mode, as in our case, the pin sets and clears when the counter TCNT0 matches OCR0x on the way up and on the way down. Now, in mode 5, TCNT0 only goes up to OCR0A, so the pin never clears (or, in inverted mode, never sets).
Your corrected code works for the OC0B pin (PD5) because its target (22) is lower than OCR0A (44). If the OP wishes to get a PWM on two separate pins, it will require working in mode 1 (where TCNT0 goes all the way to 255), or setting pins "manually" in interrupt functions.
Well, that was a nice exercise in figuring out the datasheet
Thanks all for the answers.
Sorry about my time to response, i was out for a days.
Yes, i want to work with 2 outputs. My first code was with timer1 and worked well.
I was trying to do it with timer0 or 2 because i had a limitation at the hardware.
I have just solved my problem with the hardware. Now, i can use it (timer1).
One more time, thanks all for the answers.
At the end of the year maybe i can show you my project.
Best regards