I do not use ts7800ctl.c, so I can not tell you why it freezes after a few
minutes. I can tell you that I found that sending a TWSI command to the AVR
while it is taking ADC samples would cause the AVR to crash, and the only way I
could get the AVR to start working again was to cycle the power to the whole
board. So my guess would be that the problem with ts7800ctl.c has something to
do with the TWSI communication. But if I wait until the AVR is done taking ADC
samples before I send it a TWSI command, it does not freeze, and I can take
samples for many hours.
--- In Jerome Leboeuf <> wrote:
>
> Thanks Harold,
> I rode several threads giving this information and I also program
> successfully the ADC-24. Moreover my test programs on onboard ADC perform
> several sampling (I effectively send another "start command") but all
> programs including the ts7800ctl.c provided by TS freeze after a few minutes.
> Why ?
> And why cannot we get a simple library that includes the two basic functions
> twi_init() and twi_getData() ?
>
>
>
> --- On Tue, 6/14/11, Harold <> wrote:
>
> From: Harold <>
> Subject: [ts-7000] Re: TS-7800 ADC as far as I could go...
> To:
> Date: Tuesday, June 14, 2011, 12:19 PM
>
>
>
>
>
>
>
> Â
>
>
>
>
>
>
>
>
>
> When the command to take ADC samples is sent to the AVR, it captures
> 2048 samples at 2 KHz. Thus it samples for 1.024 seconds, then stops. You
> must then send it another start command to get another 2048 samples. I have
> had boards take samples for several hours in this way.
>
>
>
> You would have to do something similar with the TS-ADC24. That is, you would
> tell it to start taking ADC samples, it would take 512 samples, then stop,
> and then you would tell it to take more samples.
>
>
>
> --- In Jerome Leboeuf <jeromelp@> wrote:
>
> >
>
> > Thanks Harold.
>
> > Thus even when ADC sampling starts properly there is no way to keep it
> > running for more than a few minutes ? (My test program seems to confirm
> > this odd behaviour,)
>
> > Then, the only solution is to perform analogical sampling using a TS-ADC24 ?
>
> > Regards.
>
> >
>
> >
>
> >
>
> >
>
> > --- On Mon, 6/13/11, Harold <HDewar@> wrote:
>
> >
>
> > From: Harold <HDewar@>
>
> > Subject: [ts-7000] Re: TS-7800 ADC as far as I could go...
>
> > To:
>
> > Date: Monday, June 13, 2011, 12:39 PM
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Ã?Â
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > This has been discussed before. See the thread that starts with
> > message #18895.
>
> >
>
> > http://tech.groups.yahoo.com/group/ts-7000/message/18895
>
> >
>
> >
>
> >
>
> > I have used the TS-7800 ADC without any problems. As long as I do not send
> > a TWSI command to the AVR microcontroller while it is sampling, it works
> > fine.
>
> >
>
> >
>
> >
>
> > --- In "Jerome" <jeromelp@> wrote:
>
> >
>
> > >
>
> >
>
> > > Hi everybody,
>
> >
>
> > >
>
> >
>
> > > Concerning ADC sampling, it appears to me that ts7800ctl.c works quite
> > > fine though nobody has been able to convert this code to build a ADC
> > > class. At least, strangely, no other code has been published to perform
> > > ADC sampling...
>
> >
>
> > >
>
> >
>
> > > Hi,
>
> >
>
> > >
>
> >
>
> > > I also failed in that attempt but cannot explain why : my ts7800ctl-V4.c
> > > version works (when it doesn't stuck at starting) but next version
> > > ts7800ctl-V5.c does not. Both versions are closed between them and also
> > > to ts7800ctl.c ;then I can't explain their respective behaviors.
>
> >
>
> > >
>
> >
>
> > > Moreover, when the ADC cycle fails, a cold reboot appears to be the only
> > > solution...
>
> >
>
> > >
>
> >
>
> > > So :
>
> >
>
> > >
>
> >
>
> > > 1) I'd liked to know if someone succeeded in performing ADC sampling, at
> > > least I would spend more time in this quest !
>
> >
>
> > >
>
> >
>
> > > 2) if you want to investigate further, email me and I'll send you my code.
>
> >
>
> > >
>
> >
>
> > > 3) Some information from Technologic Systems would be appreciated.
>
> >
>
> > >
>
> >
>
> > > Thanks
>
> >
>
> > >
>
> >
>
> > > Jerome
>
> >
>
> > >
>
> >
>
------------------------------------
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/
|