Shop OBEX P1 Docs P2 Docs Learn Events
ADC serial question — Parallax Forums

ADC serial question

ArchiverArchiver Posts: 46,084
edited 2002-08-13 01:29 in General Discussion
I have a ADS7841P-ND (four channel ACD 12 bit converter) I want to use, and I
am having trouble designing the serial interface. The datasheet states that
the chip processes the data on the High-to-low transition of the external
clock pulse. I have to send a string of bits to the chip for each reading in
sync with the clock, and the data is transmitted back after a specific # of
clock cycles to an input pin. My main question is, would using two Output
lines and one input work for this chip? My idea is to have on pin act as the
clock, and the others receive the data in sync. Does the clock have to be a
regular stream of pulses? How do I know when to read the Input pin? Thanks.

Sincerely,
Sean


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-08-13 01:29
    You should love this. Have a look at the "shiftin and shiftout" commands.
    They did all the hard work for you..

    If by chance the device you are using is a "I2C device there is also
    built in support for that in the BS2P.

    Mike B.

    Original Message
    From: <sean975@a...>
    To: <basicstamps@yahoogroups.com>
    Sent: Monday, August 12, 2002 11:15 AM
    Subject: [noparse][[/noparse]basicstamps] ADC serial question


    > I have a ADS7841P-ND (four channel ACD 12 bit converter) I want to use,
    and I
    > am having trouble designing the serial interface. The datasheet states
    that
    > the chip processes the data on the High-to-low transition of the external
    > clock pulse. I have to send a string of bits to the chip for each reading
    in
    > sync with the clock, and the data is transmitted back after a specific #
    of
    > clock cycles to an input pin. My main question is, would using two Output
    > lines and one input work for this chip? My idea is to have on pin act as
    the
    > clock, and the others receive the data in sync. Does the clock have to be
    a
    > regular stream of pulses? How do I know when to read the Input pin?
    Thanks.
    >
    > Sincerely,
    > Sean
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
Sign In or Register to comment.