ADC to 8KEEPROM program
Archiver
Posts: 46,084
Hi,
I'm trying to use the BS2 as an analog-to-digital convertor and
transmission/storage device and am having some problems. I want to
convert analog strain gage data into a digital format using the
LTC1298 12-bit A/D converter, and then save that data on either the
onboard EEPROM or the 8KEEPROM (X25650P) which I can then retrieve
by the serial port.
I'm not a very experienced programmer and am having problems with
even the sample demo programs that come with both chips. When I run
the program that comes in the manual for the LTC1298 and apply a
slight voltage to the converter, I get an instant jump from 0 to 4095
(the maximum) which shouldn't occur until I get to 5 volts. When I
then remove the voltage completely, the values "debug'd" on my
interface jump all over the place and never return to 0.
I'm having about the same luck using the demo program for the
8KEEPROM chip.
Any help in pointing to some programs that I could modify or combine
for my application would be very, very appreciated.
Also, this is not for commercial purposes at all, strictly
educational! Thanks!
I'm trying to use the BS2 as an analog-to-digital convertor and
transmission/storage device and am having some problems. I want to
convert analog strain gage data into a digital format using the
LTC1298 12-bit A/D converter, and then save that data on either the
onboard EEPROM or the 8KEEPROM (X25650P) which I can then retrieve
by the serial port.
I'm not a very experienced programmer and am having problems with
even the sample demo programs that come with both chips. When I run
the program that comes in the manual for the LTC1298 and apply a
slight voltage to the converter, I get an instant jump from 0 to 4095
(the maximum) which shouldn't occur until I get to 5 volts. When I
then remove the voltage completely, the values "debug'd" on my
interface jump all over the place and never return to 0.
I'm having about the same luck using the demo program for the
8KEEPROM chip.
Any help in pointing to some programs that I could modify or combine
for my application would be very, very appreciated.
Also, this is not for commercial purposes at all, strictly
educational! Thanks!
Comments
<jlindeberg2003@y...> wrote:
> Hi,
> I'm trying to use the BS2 as an analog-to-digital convertor and
> transmission/storage device and am having some problems. I want to
> convert analog strain gage data into a digital format using the
> LTC1298 12-bit A/D converter, and then save that data on either the
> onboard EEPROM or the 8KEEPROM (X25650P) which I can then retrieve
> by the serial port.
> I'm not a very experienced programmer and am having problems with
> even the sample demo programs that come with both chips. When I run
> the program that comes in the manual for the LTC1298 and apply a
> slight voltage to the converter, I get an instant jump from 0 to
4095
> (the maximum) which shouldn't occur until I get to 5 volts. When I
> then remove the voltage completely, the values "debug'd" on my
> interface jump all over the place and never return to 0.
> I'm having about the same luck using the demo program for the
> 8KEEPROM chip.
> Any help in pointing to some programs that I could modify or
combine
> for my application would be very, very appreciated.
> Also, this is not for commercial purposes at all, strictly
> educational! Thanks!
If you are getting a full span shift with a small input, you have
something set wrong.
Is there an internal value that the ADC uses to compare the process
value ?
Some chips allow you to compare line 1 to line 2 and then report the
difference. others compare line 1 to Vcc and report the difference.
I think you can even program a value to use.
This way, you can use a o-5V input and output 0 to 4096 as being 0 to
5 V
Or, if you put 1v on the reference input, your process value is then
0-1V and the output is 0 to 4096 over the 1V range.
Dave