I’m trying to set up a timer like described on the title but the output is always high (5V all the time).
The code is this:
DDRD = (1 << DDD6) | (1 << DDD5);
TCCR0A = 1 << COM0A1 | 0 << COM0A0 | 1 << COM0B1 | 0 << COM0B0 | 0 << WGM01 | 1 << WGM00;
TCCR0B = 1 << WGM02 | 1 << CS02 | 0 << CS01 | 0 << CS00;
OCR0A = 44; //neutral
OCR0B = 44; //neutral
It will be a error on the code or it’s some bug of the chip?