Hi felix,

Thank you very much, I will use it.

Would you be so kind and give me the source for it?

Greets and thanks,

ernst mayerhofer

2006/12/18, fhormuth <[EMAIL PROTECTED]>:

  Hi,

> did anyone ever use an ADC with the foxboard / write a driver for it?

I am currently using a 12bit MAX1270 with the FoxBoard, accessing it via
three lines on
Port B. It is basically just I2C-protocol, and so far I was using the
crude user-space
bit-banging method. That was straightforward and proved to be
simple&stable.
With the new gpio-routines in the patched SDK I would expect it to run
much faster,
of course.
At some time I started to write a char device module for the ADC, which
simply
received one byte with the desired channel number/polarity/range and
returned
two bytes with the value. I never finished this actually, since I have to
access the
ADC from within a program that runs with maximum scheduler priority
anyway, so
there is no point in using a device driver in this case.

But to come back to the MAX1270 (or the similar MAX1271): easy to handle,
fast,
I2C-compatible, 12 Bit resolution, and: you can get it for 0.00 Euro just
by requesting
a sample (or better: two) through the Maxim webpages.

Regards:
Felix




--
MfG
Ernst Mayerhofer

Reply via email to