i read some forum threads about atmega's pwm. they mentioned some ways to define a certain frequency via the timer's prescaler. does anyone know how to get a certain frequency spectrum from the pwm?
i tried this code:
timer1SetPrescaler(64);
timer1PWMInit(9);
pinMode(9, OUTPUT);
timer1PWMAOn();
timer1PWMASet(128);
it seems to work, but i do not know how to calculate the right values.