HEIN.. have you some schematic and/or more details of your stuff ???
I really try to understand but... not sure enough to provide a good answer to that.
Try to tell us what you really expected as output swing... can i understand you want from 0 - 1 Volt or a 0.1 volt steps with a 7.2V battery as power source???
if i'm right... if not please somebody slap me
7.2 / 256 = 0,028125 volts by 8 bit PWM definition duty step
to get 0.1 volt: duty = 0.1/0.02823529 = 3.55555 = 3 or 4 test it
to get 1 volt : duty = 1/0.02823529 = 35.5555 = 35 or 36 test it
to get 1.1 volt: duty = 1.1/0.02823529 = 39.1111 = 39
Last edited by mister_e; - 20th February 2005 at 00:53.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks