Help on parallel ADC
Archiver
Posts: 46,084
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.
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
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.
<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