Inceasing PWM frequency

Hi,

I certainly have seen similar topics, for I can't make it work..
I put in the setup():

TCCR0B = TCCR0B & B11111000 | B00000010;
  // or TCCR0B = TCCR0B & 0b11111000 | 0x02;

but my DC motor makes the same noise, and the oscilloscope shows same output frequency.
I have an arduino micro.

Did you already have experienced this issue?

Thanks.

Suspect you're modifying the wrong timer.

But T0 is the timer for outputs 5 and 6 of arduino micro, is'nt it?

See THIS: on the ArduinoInfo.Info wiki.

Anduriel:
But T0 is the timer for outputs 5 and 6 of arduino micro, is'nt it?

http://arduino.cc/en/Hacking/PinMapping32u4

Pin 5 is labeled PC6, OC3A so it is channel A on timer 3. The answer to your question for pin 5 is "no".

Pin 6 is labeled PD7, OC4D so it is channel D on timer 4. The answer to your question for pin 6 is "no".

Thanks, it was timer 3 ... :grin: