--- In Eddie Dawydiuk <> wrote:
>
> Hello,
>
> > To my experience, there is conflicting information on the data mask
> > between what Cirius provides in it's manual.
> >
> > Page 519 - EP9301 User Manual
> > AD : Converter output at 12 bit resolution.
> >
> > Page 28 - TS-7250 Hardware Manual
> > The reference point are stored in a 16 bit value.
>
> Take a look at the EP9301 datasheet, specifically page 33. You'll find a
> 16 bit signed value is returned. The value ranges from 0x9E58 to
> 0x61A8.
>
> http://www.cirrus.com/en/pubs/proDatasheet/EP9301_PP5.pdf
>
> > Please advise is this work with your code because I had lots of
> > problems recently. Using the sample code from the Devkit CD, I made a
> > function called inside a service (looping)... after 1-2 hours, the
> > services crash because of "too many files open (VFS error from
Linux)".
>
> The only file opened by the sample code is /dev/mem, and it is being
> closed at the end of main... Could you provide more information about
> the modifications you made? Are you opening /dev/mem on every loop?
>
> //Eddie
I removed the calibration data. And move everything in a single
function (opening / average 10 samples / closing / return avg). That
with some other function (9700 / IO / ACMAX) goes into a lib for
TS-linux I then used in other services. So yeah the /dev/mem is
opened and closed every time the state machine loops.
Good news is the code provided in this question helped me work around
it and after a night of intensive running, no sign of errors are on
the horizon.
Thanks for the pdf, it does answer some of the question I had about
how it does work.
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/
|