ts-7000
[Top] [All Lists]

[ts-7000] Re: ADC24 C source code?

To:
Subject: [ts-7000] Re: ADC24 C source code?
From: "bburtan" <>
Date: Thu, 30 Apr 2009 15:10:45 -0000
> 
> I don't see where the datafile has *any* channel info.  Why do you 
> think it should?

The ADC24 has to read blocks of 4 channels and you can't tell it to read only 
one channel or a specific channel so the data must have the channel source ID 
available.  Even if you set the ADCCFG NUMCHAN to 0, you're always getting 4 
channels in the FIFO (two from Chip 0 and two from Chip 1).

But, I finally figured it out by decyphering the tsadc.lib file.  I had been 
looking at bits 14-12 of ADCFIFO (BASE+0A) because the description says 
"CURNUMCHAN current number of channel for the data read".  Apparently that's 
not the specific channel.  Bit 15 is indeed ADCCHIP.  So I'm guessing that bits 
14-12 are really which block of channels the data belongs to.  Kinda useless, 
IMHO.

Ultimately, looking at bits 5-1 of ADCSTAT (BASE+08) will give you the actual 
channel in the current head of the FIFO.  Of course you need to look at this 
value before you look at ADCFIFO (BASE+0A) because as soon as you look at 
ADCFIFO, it clicks to the next sample.

Also, the ADC data is in 2's compliment format even if you've told the ADCCFG 
range to be 0-5 volts so you need to convert the data to get a real voltage 
value out of it.

Now my next issue is determining what the actual timing is.  The docs say that 
the conversion time is 1 usec.  Is that per channel?  Per chip i.e. per two 
channels? Per block of four channels?



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

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