CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

MCP3204 ADC output fluctuation

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
paddy



Joined: 04 Nov 2012
Posts: 15

View user's profile Send private message

MCP3204 ADC output fluctuation
PostPosted: Tue Nov 24, 2015 6:58 am     Reply with quote

Hi,

Greetings of the day!!

I am using MCP3204 ADC interfaced with PIC18F4520. The reference voltage of MCP3204 is from voltage divider network of resistor and set to 500mV. Potentiometer value is 1K and resistor of 1.2K.
Input signal range is 0-500mV. I have used mcp3204.c driver file in code.

Even though the input signal and reference signal is stable, there is fluctuation in output of MCP3204. The fluctuation is approximately +/- 30 counts than expected.

I do not have oscilloscope to check the noise, but I have measured voltages and that are stable.

Please find attached schematic and suggest.

Thanks,
Paddy
https://www.dropbox.com/s/f4d3jcegzanmisl/Test.pdf?dl=0[/url]
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Tue Nov 24, 2015 8:36 am     Reply with quote

Noise.

If you are using a standard DVM, this uses _integration_ to measure the voltage (hence 'dual slope integrating', in the 'title' of most simple DVMs). This gives good accuracy at low cost, but will completely miss noise signals that an ADC _will_ record.....

Unless you are building the design _really_ carefully, with well designed ground planes and a super stable reference (what is your reference voltage divided 'from'?. If this is the PIC supply, you can pretty much guarantee that this will have 10's of mV of noise already on it), the circuit will record large amounts of noise.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Tue Nov 24, 2015 10:45 am     Reply with quote

two things:

put a 100nF capacitor from the wiper of the ref-cal pot to ground.
metal film is ideal but even a ceramic cap will do.

this lowers the reference input impedance in AC terms and has been shown to improve noise .

this post may also help you :

http://www.ccsinfo.com/forum/viewtopic.php?t=50320&highlight=olympic

it is very easy to adapt......
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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