Page 1 of 1

Generate 0 to 5 DC volt

Posted: Mon Jun 25, 2012 9:35 pm
by bonjovi_ly
my project how to use pic16f877 to get 0-5V dc volt output.any can help me or good idea?

Re: Generate 0 to 5 DC volt

Posted: Mon Jun 25, 2012 10:41 pm
by medelec35
One method is to generate a PWM signal, then feed PWM into a low pass RC filter. If time constant of filter is too high, then there will be a pure DC voltage but response time will be too slow.

If time constant is too low then waveform will be a triangular.

PWM frequency will not be to critical perhaps 5KHz to10 KHz

If you require any further help then can you please state what version of Flowcode your using including free, student or professional?
Since you have posted in Flowcode V2 & V3 and just joined?

Martin

Re: Generate 0 to 5 DC volt

Posted: Wed Jun 27, 2012 11:35 am
by bonjovi_ly
Hello

its work thank you.

I attached the program.

Regards