Hercules-EBX CPU User Manual V1.02
Page 82
The final data is interpreted as a 16-bit signed integer ranging from –32768 to +32767. The “A/D
LSB Register” and “A/D LSB Register” can be combined into one 16-bit read. These two
registers fully support 16-bit I/O reads (in hardware), so the most efficient I/O method would be to
read the two bytes as a single 16-bit word.
⇒
Note:
The data range always includes both positive and negative values, even if the board is
set to a unipolar input range. The data must now be converted to volts or other engineering units
by using a conversion formula as shown on the next page.
In scan mode, the behavior is the same except that when the program initiates a conversion, all
channels in the programmed channel range will be sampled once, and the data will be stored in
the FIFO. The FIFO depth register will increment by the scan size. When ADBUSY goes low, the
program should read out the data for all channels.