Diamond Systems PR-Z32-E-ST Computer Hardware User Manual


 
Prometheus CPU User Manual V1.44 Page 34
Base + 0 Read A/D LSB
Bit No. 7 6 5 4 3 2 1 0
Name AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0
AD7 - 0 A/D data bits 7 - 0; AD0 is the LSB; A/D data is an unsigned 16-bit value.
The A/D value is derived by reading two bytes from Base + 0 and Base + 1 and applying the
following formula:
A/D value = (Base + 0 value) + (Base + 1 value) * 256
The value is interpreted as a twos complement 16-bit number ranging from –32768 to +32767.
This raw A/D value must then be converted to the corresponding input voltage and/or the
engineering units represented by that voltage by applying additional application-specific formulas.
Both conversions (conversion to volts and then conversion to engineering units) may be
combined into a single formula for efficiency.
Base + 1 Write Not Used
Base + 1 Read A/D MSB
Bit No. 7 6 5 4 3 2 1 0
Name AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8
AD15 - 8 A/D data bits 15 – 8; AD15 is the MSB; A/D data is an unsigned 16-bit value.
See Base + 0 Read on the previous page for information on A/D values and
formulas.