Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

output voltage from RC1/T1OSI/CCP2

Status
Not open for further replies.

garg29

Advanced Member level 1
Joined
Nov 17, 2004
Messages
443
Helped
25
Reputation
50
Reaction score
10
Trophy points
1,298
Activity points
3,593
Hi,
This might be a out of way question, but still...... Actually few days back I saw a project which was a "Variable Constant Current Source" & the designer had controlled the Output Current value through PIC16F877A. The analog circuit is connected with uC through three pins AN0, AN1 & RC1/T1OSI/CCP2. The system also detects shortciruiting of the output, for this i think he has used AN0 & AN1. And for controlling Output Current value he has produced analog voltage from RC1/T1OSI/CCP2. Is this possible? is it possible to generate a analog output voltage from RC1/T1OSI/CCP2 proportional to internal digital value.

Thanks a lot.
regards,
Garg
 

I believe they have used a PWM output on RC1/CCP2..
it's a sort of "DAC" (digital-to-analog conversion) for pic..
the output is still digital, but you can still get an analog voltage by "averaging" the output of the PWM.
the analog output level will be proportional to the PWM duty cycle.
 

On the PWM output use a RC network to get analog. The values of RC will depend on the PWM frequency. Use one more RC network to filter out the PWM frequency ripple.

Cheers

Ravi
 

Yes you can generate analog voltages with PWM
consult this Application Note
I hope this can help you
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top