The analog input is fed by a simple resistive divider (2-1Kohm around). The variable holding the read is "long", the ADC is set to 10 bit, timings and clock division should be correct... but the output isn't working as expected. From 1V to 3V the PWM works fine following the ADC value. After 3V the output fall back to 0V and starts increasing again... i've read previous post in the forum but i didn't find anything usefull. I think it's a stupid thing... but i can't find it ! :(
Ttelmah Guest
Posted: Sun Mar 04, 2007 5:39 am
What is the biggest value that can be held in a 'long'?. What does 100*1023 equal....
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum