 |
 |
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
|
Posted: Wed Jul 14, 2004 5:53 am |
|
|
| Thank you fro you suggestion. I am currently using DC power, as how to chop the power, I have no idea yet. |
|
 |
ttelmah Guest
|
|
Posted: Wed Jul 14, 2004 7:02 am |
|
|
| Anonymous wrote: | | Thank you fro you suggestion. I am currently using DC power, as how to chop the power, I have no idea yet. |
Read the application notes allready mentioned. The 'point' is that the chip has a PWM output available. This provides a rectanglar 'chopped' waveform for you (you don't touch the DC supply). For low accuracy, the circuit described in the Microchip AN, integrates this to produce a variable DC voltage. The accuracy though will depend on a whole 'mass' of variables (the accuracy of the DC supply, the load involved etc.). The same waveform, can however be fed to the frequency to voltage converter also mentioned, which improves the accuracy significantly.
Alternatively 'coming at' the requirement from a different direction, consider something like the MAX536x/538x. These offer a complete D-A converter, in a small package, with an I2C interface. The big advantage of any of the approaches using the converter in an external package, is that it allows you to move the analog circuitry away from the relatively 'noisy' digital circuitry. Some versions of these offer 12bit resolution, and for these, noise would become very important.
Best Wishes |
|
 |
Guest
|
|
Posted: Wed Jul 14, 2004 8:47 am |
|
|
Thank you guys:
I already built a D/A circuit and tested successfully by using a resistor and a capacitor connected as a low past filter it is now able to output 0-5v at a resultion of 0.05 and I am still testing the effect of frequency and timer setting.
I have ordered a frequency to voltage convertor and waiting eagerly for the arrival of it and learn how to operate it.
And I will order a DAC convertor letter also to learn how to operator it.
Thank you all again! |
|
 |
Guest
|
|
Posted: Wed Jul 14, 2004 9:12 am |
|
|
another question:
By using the resistor and capacitor, I always get high resolution at low valtage nad low resolution at high voltage, which means when I set the duty circle using set_pwm1_duty(value); the smaller the value the higher the resolutin and the larger the value, the lower the resolution, why is like that? does the frequency have the same problem? which is the resolution is not uniform?
Thanks |
|
 |
sonicdeejay
Joined: 20 Dec 2005 Posts: 112
|
|
Posted: Sun Feb 19, 2006 11:03 am |
|
|
| valemike wrote: | I can't believe i looked for this!
Look at National Semiconductor's LM331.
It is a frequency to voltage converter. Shoot out any PWM frequency, and you'll see the voltage output go up and down from 0 to Vcc. No ripple either.
Doesn't cost too much to buy the components at Digikey.
-Mike |
if i am not wrong LM331 is voltage to freq converter... |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|