Shop OBEX P1 Docs P2 Docs Learn Events
Help on parallel ADC — Parallax Forums

Help on parallel ADC

ArchiverArchiver Posts: 46,084
edited 2003-02-21 10:35 in General Discussion
Does anyone have any suggestions on how to (better or more
accurately) input to the stamp (BS2p40) 8 bits of parallel data. I
would like to be able to manipulate this data like a decimal
number. Is this what I should do?

X VAR BYTE
X = INL 'the 8 ADC output pins are connected to I/O pins 0-7

Any help would be appreciated.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-02-21 05:18
    Does anyone have any suggestions on how to (better or more
    accurately) input to the stamp (BS2p40) 8 bits of parallel data. I
    would like to be able to manipulate this data like a decimal
    number. Is this what I should do?

    X VAR BYTE
    X = INL 'the 8 ADC output pins are connected to I/O pins 0-7

    Any help would be appreciated.
  • ArchiverArchiver Posts: 46,084
    edited 2003-02-21 10:35
    --- In basicstamps@yahoogroups.com, "mellwhead <mellwhead@y...>"
    <mellwhead@y...> wrote:
    > Does anyone have any suggestions on how to (better or more
    > accurately) input to the stamp (BS2p40) 8 bits of parallel data. I
    > would like to be able to manipulate this data like a decimal
    > number. Is this what I should do?
    >
    > X VAR BYTE
    > X = INL 'the 8 ADC output pins are connected to I/O pins 0-7
    >
    > Any help would be appreciated.

    I don't see a way to do that better. Of course you can average over
    multiple values to get a more stable result. However the accuracy of
    the result is limited by the ADC itself, the figures are usually in
    the spec sheet.
    Beside that, there is sometimes a signal on the ADC which states
    whether the (8bit) result is considered stable or not. If your ADC
    has such a signal, you probably should wait for it before reading the
    result.

    Regards
    Adrian
Sign In or Register to comment.