I wrote an asm program for Atmega328P, so the OCR0A is connected to PD6, and OCR0B to PD5.
In attachment is my code, the first one: code-10-27-good goes well.
Second one: code-10-28-test1 is to create a pwm effect on led connected to PD6, it doesn't work, seemingly the timer0 Overflow Interrupt not work properly.
To find out what's going wrong, I tried the third one: code-10-28-test3, to toggle a led connected into PB0, it not work either.
The timer0 Overflow interrupt not work as desired.
Anyone know what's wrong with it?