
Chapter 4: Software
Manual Number: 00650-004-5
Page 4-3
unsigned integer
MAXIRQ():
Returns a number that indicates the highest IRQ that the card can access.
(15)
unsigned integer
VALIDIRQ():
Returns a bitmask (16 bit value) with ones at valid IRQ possibilities.
STARTCONVERSION (unsigned int BASE_ADDRESS):
Causes the A/D card to begin an analog-to-digital conversion. The only
parameter is the base address of the card, and the routine does not have a
return value.
unsigned integer CHECKFOREOC (unsigned int BASE_ADDRESS):
This function returns zero (FALSE) if the card is busy performing an analog
conversion. Otherwise, it returns non-zero (TRUE). The only parameter
is the base address of the card.
unsigned integer WAITFOREOC (unsigned int BASE_ADDRESS):
This function will monitor the status of EOC (using CHECKFOREOC)
until either EOC occurs or a timeout occurs. The timeout is defined as
262,144 occurrences of the check for EOC. The actual timeout depends on
the speed of the computer in use and can be determined by measurement.
The function returns TRUE (non-zero) if it detected EOC and FALSE
(zero) if the routine timed out. (The exact number it returns is the number
of tries remaining before timeout occurs.)
unsigned integer RETRIEVEANALOGCONVERSION (unsigned int BASE_ADDRESS)
Returns a two-byte unsigned number that indicates the value of the A/D data
register. This value represents the digital value of the most-recently-
completed analog-to-digital conversion. This routine does
not
wait for
EOC. Therefore, if you use STARTCONVERSION followed immediately
by this routine, the data that you receive is from the
previous
conversion,
not the one just started. See
Using the Driver
, later in this section of the
manual, for more information.
Only the bits that relate to the input voltage are returned, right justified if
not a full 16 bits wide. Any extra bits returned by the A/D card are thrown
away. Use the RETRIEVEANALOGDATA function if you want the raw
bits from the A/D card.
unsigned integer RETRIEVEANALOGDATA (unsigned int BASE_ADDRESS)
Returns a two-byte unsigned number that indicates the value of the A/D data
register. This value represents the digital value of the most-recently-
completed analog-to-digital conversion. This routine does
not
wait for
EOC. Therefore, if you use STARTCONVERSION followed immediately
by this routine, the data that you receive is from the
previous
conversion,
not the one just started. See
Using the Driver
, later in this section of the
manual, for more information.
Содержание ADIO1600 Series
Страница 1: ...ADIO1600 Series Product Manual MANUAL NUMBER 00650 004 5D ...
Страница 4: ...Page iv This page intentionally left blank ...
Страница 8: ...Page viii This page intentionally left blank ...
Страница 17: ...Manual Number 00650 004 5 Page 2 4 ADIO1600 Manual Figure 2 1 ADIO1600 Block Diagram ...