ts-7000
[Top] [All Lists]

[ts-7000] ep9302 ADC data type

To: ts-7000 <>
Subject: [ts-7000] ep9302 ADC data type
From: Joel Morgan <>
Date: Wed, 18 Aug 2010 10:53:04 -0500
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.

Thanks
-- 
Joel R. Morgan
Morgan Millwright Services, Inc.
Linux User #504110   http://counter.li.org/


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

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