ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Read ADC

To:
Subject: Re: [ts-7000] Re: Read ADC
From: Dan Weese <>
Date: Mon, 12 Apr 2010 07:33:16 -0700




On Mon, Apr 12, 2010 at 5:15 AM, rodriguezromain62 <> wrote:
 



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);


For further debugging, try the full exec

$resu_A=exec("/home/PROGRAMMES/testADCbinaire -r 0", $deExec, $retVal);

 


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 ts-7000%40yahoogroups.com, "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 ts-7000%40yahoogroups.com, "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.
> >
>




__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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