Hey!
I'm trying to get the maximum frequency pwm from my attiny85. I am programming it using an arduino uno.
I have tried changing the prescalers, but the max i can get is about 4 kHz.
The 85 that i have has a clock of 20 MHz.
Here is the code I have so far
void setup() {
// put your setup code here, to run once:
TCCR0B = TCCR0B & 0b11111000 | 0b001 ;
}
void loop() {
// put your main code here, to run repeatedly:
analogWrite(0,127);
}
The programmer is "Arduino as ISP"
Board: ATtiny25/45/85
Processor: ATtiny85
Clock: external 20Mhz (there is no option for internal 20MHz)
thanks