PWM more than 8 bits

Colleagues, please tell me whether can with using the Arduino's hardware get PWM more than 8 bits?

ogogon.

Yes, Timer 1 is 16 bits.

On the Uno. It would help to say which Arduino you have, there are a few dozen of them.

What Nick Gammon explained sounds interesting, something that I will check.

If the intention is to use it for analog output a option that I used before is driving a shift register with the outputs tied to a R 2R ladder : http://en.wikipedia.org/wiki/Resistor_ladder
You can do it using resistors or a specialized chip. The resistor version may not be accurate depending of your need. At least in here it fitted just nice for what I needed. For more accuracy and control you can use a external DAC chip. One of the advantages of using external hardware is that you save Arduino code space and processing time.

Hope it helps.

Good evening!

I want to do a little educational work.

Specifically, make on-chip Atmel Mega 328 stepper motor controller with support for microstep. And use, in this case, the Arduino environment as comfortable environment development and prototyping. (Specifically, the Duemilanove in prototyping stage)

I want to get a 64 microstep and PWM 8 bit for this is small, but the 16 bit - well suited.

Ogogon.

DanDare:
If the intention is to use it for analog output a option that I used before is driving a shift register with the outputs tied to a R 2R ladder : Resistor ladder - Wikipedia
You can do it using resistors or a specialized chip. The resistor version may not be accurate depending of your need. At least in here it fitted just nice for what I needed. For more accuracy and control you can use a external DAC chip. One of the advantages of using external hardware is that you save Arduino code space and processing time.

Thank you, but I need it to output the PWM signal, but with a good resolution.

Ogogon.

PWM generated in software and not hardware will allow you more than 8 bits (or less if you want).

Mark

Timer 1 gives you 16 bits to play with. There is a trade-off between frequency and resolution, but you should be able to find a frequency that suits you.