I have a running pwm on timer0 at a tiny 45.
Now at the minimum pwm, the output still gives a pulse with a very low duty cycle. I would like to have the pin constant low instead of this pulsating pin.
I'm using mode 7 (fast pwm with TOP=OCRA).
I 'solved' it by using
TCCR0B = 0; // Stop clock. i.e. output is then low PORTB |= (0<<PB1); // force low
but sometimes it does not work and the output is latched to high. Clearly it is not a real solution.
Anyone an idea?