ts-7000
[Top] [All Lists]

Re: [ts-7000] ep9302 ADC data type

To:
Subject: Re: [ts-7000] ep9302 ADC data type
From: "Breton M. Saunders" <>
Date: Wed, 18 Aug 2010 17:11:34 +0100
On 08/18/2010 04:53 PM, Joel Morgan wrote:
> Hello Everyone,
> I am using the 2 externally available ADC channels on my 7260s with a
> modified version of technologics sample code (adc_7250). I am confused
> about a conflict with what I think should come out of a 12 bit ADC and
> what really happens.
>
> Page 519 in the ep9301 UG says the ADCResult register (0x8090_0008) contains:
> bits 0-11      -        12 bit adc output
> bits 12-30    -        reserved. unknown during read
> bit 31           -         synchronous data ready
>
> TS says after reading this register, mask off the upper 16 bits.
> reading their code I see they are expecting between 0x7000 and
> 0x17000:
> if (result<  0x7000)
>      result = result + 0x10000
>
> My question is: why does this work? using 4 extra reserved bits and if
> its too low assume an overflow? I must be missing something simple.
>    
I'm pretty sure that it is a 16 bit ADC; its just that you're likely to 
find a lot of noise in the lower 4 bits.

Also, get the data sheet (the short one) off of Cirrus' web site.  It 
explains the transfer function for the ADC; TS's code is just the 
inverse of this; creating an unsigned output.

I think that there are some bits you can hack to make this thing 
unsigned.  You can also measure the zero offset and +3.3V offset by 
writing the appropriate (undocumented) bits to the matrix switch - if 
you look at the ep9315 manual and use its figures for the matrix 
controller you can work out which bits to set.

     -Brett


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

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