![Diamond Systems Poseidon User Manual Download Page 83](http://html1.mh-extra.com/html/diamond-systems/poseidon/poseidon_user-manual_2494418083.webp)
Data = inpw(base); // Where the MSB and LSB are read in one access
The final data ranges from 0 to 65535 (0 to 256 - 1) as an unsigned integer. This value must be interpreted as a
signed integer ranging from -32768 to +32767.
As noted above, all A/D conversions are stored in an on-board FIFO, which can hold up to 1024 samples in
enhanced mode or 512 samples in normal mode. Whenever you read A/D data you are actually reading it out of the
FIFO. Therefore, you can read each A/D sample as soon as it is ready, or you can wait until you take a collection of
samples (up to 1024 maximum) and then read them all out in sequence.
Convert the numerical data to a meaningful value
Once you have the A/D value, you need to convert it to a meaningful value. The A/D conversion formulas describe
how to convert the A/D data back to the original input voltage. You may also convert the result into engineering
units. The two conversions can be done sequentially, or the formulas can be combined into a single formula.
Diamond Systems Corporation
Poseidon User Manual
Page 83