ts-7000
[Top] [All Lists]

[ts-7000] ADC questions

To:
Subject: [ts-7000] ADC questions
From: Christopher Friedt <>
Date: Thu, 17 Apr 2008 14:15:22 -0400
Hi everyone,

I'm writing a really simple app for the 7260 analog to digital converter 
based on the sample code provided here:

ftp://oz.embeddedarm.com/ts-arm-sbc/ts-7260-linux/samples/adc_72xx.tar.gz

and I have a couple of questions that some of you may have already answered.

In the file adc_7250.c, there are a couple of numbers that I would 
imagine to be slightly irrelevant for a 12-bit ADC in the following 
operations:

                if(avg < 0x7000)
                        avg = avg + 0x10000;

Why are they present?


Similarly, I don't really follow where the 'magic numbers' below come from:

                        avg = avg - 0x9E58;
                        val = ((double)avg * 3.3) / 0xC350;

The code is taken from lines 177 to 199.

I guess the last question that I have is:

Assuming that the source impedence of whatever signal is being measured 
is < 10 Ohms, is the transfer characteristic of the ADC linear? For some 
reason, I find it very hard to believe, because the 'steps' for a 5.15V 
POWER_IN signal are 420, while for a 12.4 V signal are in the range of 
3200 steps.

Has anyone analyzed this characteristic with a reliable variable power 
supply?

Cheers,

Chris

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU