Hello guys,
I have a question: In one of my patches I am setting the clocks to higher speed because I need a fast PWM output. I use the code proposed on the Arduino page itself:
TCCR0B = TCCR0B & 0b11111000 | 0x01; //Clockdivider Clock0 = 1 -> Clockspeed = 62,5KHz
TCCR1B = TCCR1B & 0b11111000 | 0x01; //Clockdivider Clock1 = 1 -> Clockspeed = 31,25KHz
I am working with an Attiny44PU-A and everything runs without problems but I always have to install the bootloader before the Attiny will take the clock changes. Otherwise the PWM outputs are normal speed.
I need to do 250 of those Attinys and I'm looking for a way to avoid burning the bootloader to all of them before I can upload the (fully working) code.
What am I missing here?