ts-7000
[Top] [All Lists]

[ts-7000] Re: Read ADC

To:
Subject: [ts-7000] Re: Read ADC
From: "rodriguezromain62" <>
Date: Mon, 12 Apr 2010 12:15:18 -0000

Thanks a lot, know i read ADC value to channel 1 and I put the value on my 
website with a refresh of 1,5sec.
But i have an other problem, i need to print the value of the chan 0,1,2 & 3. I 
use AJAX for refresh my value, but only one value is print. My php code looks 
like :

        $resu_A= array() ;
        $resu_A=exec("/home/PROGRAMMES/testADCbinaire -r 0");
        $ANA0=($resu_A);
        

        $resu_b= array() ;
        $resu_b=exec("/home/PROGRAMMES/testADCbinaire -r 1");
        $ANA1=($resu_b);

I've modified the ts7800ctl.c for do just 1 sample and convert the raw value to 
volt value.

Only the first $ANA0 is print... If I delete the first sample, the second 
($ANA1) is print. I dont understand why, if you have any idea for help me. 
thanks




--- In  "Harold" <> wrote:
>
> The values from ts7800ctl -r are the raw binary ADC values, as described in 
> the manual.
> http://www.embeddedarm.com/about/resource.php?item=393#section5.3
> From looking at ts7800ctl.c and twsi.h, it appears that the ADC values start 
> at address 0xE8100004, and there are 4096 bytes containing 2048 ADC samples.
> 
> --- In  "rodriguezromain62" <rodriguezromain62@> 
> wrote:
> >
> > Hello everybody, i'm a student in training. I living in France, and i need 
> > some help about ADC on TS7800.
> > 
> > I try to understand the ts7800ctl programm but i dont :/
> > What is the value I can see when i start programm with -r ?
> > 
> > 
> > I just need to read Value of ADC channel, in the manual it says we can read 
> > ADC with MMAP. I need that but i dont know the register!
> > how ADC works ?
> > 
> > Thanks.
> > I need some help please.
> >
>




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

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