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.

Why this ADC value flickers?

Status
Not open for further replies.
Joined
Dec 4, 2012
Messages
4,280
Helped
822
Reputation
1,654
Reaction score
791
Trophy points
1,393
Location
Bangalore, India
Activity points
0
I am using Analog Comparators as ADC as mentioned in AN700 application note. I am not getting a stable value. Why? I am attaching mikroC PRO PIC files + Proteus Simulation file. I am testing in hardware and also Proteus. Video of hardware attached. In the real hardware power supply is like this.

100 nF Ceramic at I/P and O/P of 7805.
1000 uF 25V at O?P of 7805.
200 nF Ceramic between VDD and Vss pins of PIC.
10 uF 10V between VDd and Vss pins of PIC.
External oscillator of 4 MHz with 2 * 33 pf Ceramic.

How can I improve the stability of readings?
 

Attachments

  • 628A.rar
    37.5 KB · Views: 51
  • 20130813_160404.rar
    2.7 MB · Views: 38

How many ADC sensors did you connected?
And what is the PIC you are using , What else interface's it is doing apart ADC's?

Try these:
- by keeping decoupling resistor's at the Analog source supply, so that noise will reduced....
- you have used the ADC libraries in mikroC Pro, but try writing your own ADCread function(u will get in MPLAB examples) in that change Vref+, Vref- voltage using registers in that particular PIC datasheet
 

I am not using any ADC. I am using Analog Comparator to work as ADC. PIC16F628A doesn't have ADC and I am not using ADC_Read() function of mikroC. I have just used the code from AN700 and used inline assembly in mikroC PRO PIC to do the project.
 

by putting 1k instead of 39, there is a small range of variation, but its still exists......
 

try to keep the decoupling(104) capacitors at the signal and ground of potmeter will reduce some flickering.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top