Bruno Richard schrieb:
> I am working on a project where I need some 16 bits ADC to retrieve
> information from a sensor. I also need a small microcontroller such as
> a PIC, AVR or 8051, and I got surprising quotes for the ADC: Around $5
> (qty 1000), which is 5 times more expensive than the controller!
>
> Does anyone have an idea about how I can get some low cost ADC-
> Controller solution? I need only few dozens of samples per second, so
> some of you may have nice tricks to do that (op-amps, capacitor charge
> time stuff and the like).
You can build a cheap & simple dual slope converter with an external
reference (like TL431), MUX (4051), integrator and comparator (standard
OP). With an 8051, you can generate the fixed integration time and
measure the variable deintegration time with only one of the internal
timers, while the signal from the comparator provides the timer gate
signal and the EOC interrupt at the same time.
(I don't know if other micros also have 16 bit timers with external gate
signal that also can generate edge triggered interrupts without
additional pin.)
With very cheap standard parts, we have made 15 bit ADCs this way. You
also get line frequency suppression by proper selection of the
integration time (we tend to use 100 ms to suppress both 50 Hz and 60
Hz, which gives a total conversion time of 200 ms - or sync it to the
mains and integrate 16.7 resp. 20 ms), which is often needed for sensor
signals.
You can use the other 4051 inputs (or even two or more 4051s) for more
input channels, which can be converted sequentially. Slow, but reliable.
Tilmann
--
http://www.autometer.de - Elektronik nach Maß.