Shop OBEX P1 Docs P2 Docs Learn Events
How to get the correct data from ADC ? — Parallax Forums

How to get the correct data from ADC ?

jimltleejimltlee Posts: 6
edited 2007-07-12 16:01 in BASIC Stamp
Hi,there are some issue that I can't understand, and need some suggestion -->
well,I am trying to utilize the ADC10464(10 bit) as the ADC converter, but ,in·IC’s datasheet,
it outputs data by 10 pins,so,it means I have to use 10 basic stamp I/O pin to grap the data at 1 time ??
Is there any method to reduce the needed I/O pin to grap the data ?···
By the way, should I use the command “SHIFTIN” to read the 0/1data from the BASIC’s I/O pin ??···

rgs
Jim

Comments

  • stamptrolstamptrol Posts: 1,731
    edited 2007-07-12 14:02
    Jim,

    That ADC is designed for parallel output, as you have found.

    One solution is to use a serial ADC like the LTC1298 which can send data to the stamp on a serial link.

    Second, keep your existing converter and use a multiplexer between it and the stamp to allow you to let one stamp pin sense the parallel bits one at a time. You will still tie up 3 or 4 other bits for addressing and chip-select.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • jimltleejimltlee Posts: 6
    edited 2007-07-12 15:46
    Tom,

    thanks so much,it seems that I choose the in-correct ADC,

    well, I need to proceed 3 channel ADC,·so,·maybe,I can also try to use

    3 piece IC:ADC0831 (1 I/O port)·, or (1 ADC0831 + 1 LTC1298.)

    multiplexer is also a good method~ thanks again

    rgs

    Jim··
  • NewzedNewzed Posts: 2,503
    edited 2007-07-12 16:00
    I would suggest that yiu switch to a TLC2543.· It is 11-channel 12-bit ADC but you can use just the inputs you need.· I think you will find that the chips with fewer inputs are a bit high in price,· The TLC is the lowest cost per channel ADC that I know of, and is very easy to communicate with.· I have used it for a long time.

    Sid

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Yesterday is history, tomorrow is a mystery, and today is a gift.

    That is why they call it the present.

    Don't have VGA?
    Newzed@aol.com
    ·
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-12 16:01
    Hello,

    The MAX1270 has 8 channels at 12-bits each on one chip. It may cost a little more but would simplify code and reduce I/O pin consumption. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.