
Chapter 3
Programming Details
Page 9
Blue Chip Technology Ltd.
01270193.doc
Page 9
If a software trigger is selected (by setting bits 4..2, to 001) in combination with
edge triggering, then the selected channel will be converted immediately. Bits 4
to 2 will then be automatically cleared to 000 ready for the next conversion. It
is possible to determine when the conversion has been completed either by
reading the Analogue Input Status Register (as with all other trigger modes) or
by reading bit 2 of the Conversion Control Register to see when it is cleared to
zero.
If software trigger is selected in combination with level triggering, then a new
conversion will be initiated immediately the previous conversion has been
completed, and continues until the software trigger is negated. There are
limitations to the use of level triggering (see later).
Input Mode Selection and Calibration
The Analogue Input Select Register is used to select either the single channel
for conversion, or the range of channels to be converted.
In the automatic mode, the first conversion will be of the channel selected in the
Analogue Input Select Register, as the highest numbered channel. The first
conversion may contain spurious information and it is recommended that it be
discarded. The next conversion will be of channel zero, and every subsequent
conversion will be to the next numeric channel up to and including the channel
number specified in the Analogue Input Select Register. The channel number
will then return to zero for the next conversion and the channel scan will be
repeated.
The input mode of the analogue samples may be selected to be single ended (up
to 16 channels) or differential (up to 8 channels). If the number of channels to
be scanned in differential mode is greater than eight, then only eight channels
(0-7) will be scanned.
A zero volt or a positive voltage close to full scale may also be selected as inputs
to provide a calibration facility.