I have build my own driver, running my FW for the OL/BLF challenge.
Unfortunately the main LED, connected to 8 AMC7135 current regulators and controlled by PWM from pin 5 is not behave as expected: It is illuminates constantly in low brightness and does not change level when I increase the PWM period. Connecting a simple 3mm LED directly to pin 5 behaves as expected.
I have already replaced all regulators with new chips and tested the circuit for short circuits.
Not sure if it is a HW or FW problem.
Any help would be appreciated since I have tried everything I can think of and was not able to solve this.
MCU is ATtiny13a
Code related to PWN is:
DDRB |= (1 << DDB0);
PRR &= ~(1<<PRTIM0);
TCCR0A = 0b10000001;
TCCR0B = 0b00000001;
OCR0A = 0;
OCR0A = 125;