I don't known the TS7KV but i use this code to read
the internal adc of the ep9302.
I've adapting ADCpoll.c, which can be found in
sources/busybox- 1.00-rc2/ coreutils/ ADCpoll.c on the
linux CD.
There is a function there called EP93XX_ADC_microvol
ts, which does a
conversion from the raw ADC register value to
something approaching
the right number of microvolts.
Its not absolutely accurate - you still have to
determine the 0-
offset and slope empirically and do a linear
correction. But its in
the right ballpark even if you don't.
bye
--- "aju.mathew" <> escribió:
> Hello,
>
> I am using TS7260 with TS7KV Board with ADC. I need
> assistance to read
> the signal through ADC. It will be a great help for
> me if someone can
> send a sample code to read the ADC on TS7KV.
>
> Thanks & Regards
>
> Aju
>
>
Yahoo! Encuentros.
Ahora encontrar pareja es mucho más fácil, probá el nuevo Yahoo! Encuentros
http://yahoo.cupidovirtual.com/servlet/NewRegistration
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/
|