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

AD7705 Conversion time (sigma-delta ADC)

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



Joined: 14 Dec 2009
Posts: 33
Location: Wales

View user's profile Send private message

AD7705 Conversion time (sigma-delta ADC)
PostPosted: Thu Mar 11, 2010 12:24 pm     Reply with quote

I've been testing a design with an AD7705 ADC using the standard bit banged CCS driver code.

I noticed that as the DC voltage to the ADC goes up the conversion speed
drops dramatically by a factor of four. These devices have some on-chip buffer but this is disabled in software.

Anyone know what the issue is and a reasonable work around. The input
to the ADC is a diode clamped circuit with 200R to the ADC and a further 600R prior to the diodes. The diodes are fixed to the 2.5V reference from an AD780.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Thu Mar 11, 2010 12:38 pm     Reply with quote

Quote:
I noticed that as the DC voltage to the ADC goes up the conversion speed drops dramatically by a factor of four.
Unfortunately, these words makes no sense at all. What goes up and what drops down?
ac34856



Joined: 14 Dec 2009
Posts: 33
Location: Wales

View user's profile Send private message

PostPosted: Fri Mar 12, 2010 5:32 am     Reply with quote

It gets slower as the input voltage increases ... very annoying.
It also locks up and the frequency with which it locks up depends
on the level of the input voltage.

At present my code forces a reset when there is a lock up but
thats slow and if something is wrong I'd like a fix.

The CCS drivers for this work "OK" but it sounds like some hardware
issue - in other words the input impedance has an effect on some internal
capacitors and the higher the voltage the slower this internal capacitance
changes .... thats my hypothesis.
Ttelmah



Joined: 11 Mar 2010
Posts: 19553

View user's profile Send private message

Ttelmah
PostPosted: Fri Mar 12, 2010 11:13 am     Reply with quote

I think it would help if you actually told us what you are doing.
There is nothing in the CCS code, that will change in performance with voltage. It clocks the same number of bits whatever the reading, at the same rate.
The rate _is_ changed, if you alter the gain setting, so if you are performing some degree of auto-ranging, and reducing the gain as the voltage rises, this would give the effect you are seeing. However it really does sound as if there may be an issue with the circuit.
So, post a simplified code, just doing the minimum of taking a reading the way you are doing it, using the standard library. Post the connections to the chip, how supplies are generated, how the PIC is clocked, what smoothing is present, where the protection actually connects, what voltage is involved, etc. etc..

Best Wishes
ac34856



Joined: 14 Dec 2009
Posts: 33
Location: Wales

View user's profile Send private message

PostPosted: Fri Mar 12, 2010 11:24 am     Reply with quote

Yes but I was wondering whether there is some buffering setting or combination that would improve things. As per usual the gremlins have gone away and its working (mostly) correctly now.
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