HP 98640A Installation And Reference Manual page 66

7-channel analog input interface
Table of Contents

Advertisement

98640A Analog Input Interface
*
*
*
*
*
mname ADCF AS TREAD
Assembly language routine to read one channel from the ADC
card at the specified gain and return the raw data value.
src MODULE ADCFASTREAD;
src
src EXPORT
src
src TYPE
sc
=
7 .. 31;
src
chan num
=
0 .. 7;
src
gain-index
=
0 .. 3; { Maps to 1,8,64,512 gains}
src
raw data
=
-32768 .. 32767;
src
src PROCEDURE read_adc(select_code: sc;
src
chan: chan _ num ;
src
gain: gain index;
src
VAR
value:-raw_data);
src
src
src END;
def adcfastread adcfastread
def adcfastread read adc
*
module initialization routine
*
adcfastread adcfastread rts
*
*
If called from Pascal with normal checking enabled, no range checking
*
required on parameters.
*
*
Stack Frame At Entry:
*
*
16(a6)
select code
*
14(a6)
chan
*
12(a6)
gain
*
8(a6)
pointer to value
*
4(a6)
return address
*
(a6)
stack frame
<--
SP
*
*
register utilization:
*
*
*
*
*
*
AO
DO
D1
D2
register address
misc. temporary storage, pipeline counter
physical register displacement, value temporary storage
base address (select code
*
10000H
+ 600000H)
4-8

Advertisement

Table of Contents
loading

Table of Contents