EasyManua.ls Logo

HP 5335A - Page 70

HP 5335A
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
IViOUtJi
Operation
and
Programming
EXAMPLE
11.
SERVICE
REQUEST
and
WAIT
The
following
program
serves
as
an
example
of
the
SRQ
(Service
Request)
feature
in
the
5335A.
As
the
controller
is
executing
each
program
line,
it
logs
in
the
interrupt
request
and
assigns
it
a
priority;
the
9825A
will
finish
the
current
line
and
then
branch
to
the
service
routine
(End
of
Line
branching
EOL).
Once
the
service
routine
is
completed
(by
executing
its
“iret”
statement),
the
main
program
pointer
will
return
to
the
following
line
from
where
the
interrupt
occurred.
Line
1
sets
up
the
5335A
into
the
WAIT
mode
and
enables
the
sending
of
SRQ
at
the
end
of
a
measurement;
line
2
specifies
where
to
go
when
the
9825A
receives.a
SRQ,
and
line
3
enables
the
use
of
SRQ.
Line
4
simply
loops,
doing
nothing.
Lines
5
through
8
are
executed
whenever
an
SRQ
from
the
counter
is
received,
a
measurement
data
is
then
read
and
the
counter
is
reset.
9825A
EXAMPLE
0:
din
a*
c
a
n
1:
wrt
7
03,
"wat
>sri
*'
2:
on
x
7
;
.
"SRQ”
3:
e
:i.
r
7
4:
at
o
3
S:
"SRQ
s
6:
if
bit<6
>
r
d
s
<
7
0
3
)
)
red
703,AT
8=
dsp
AT
9:
wrt
703>“re"
1
0
:
i
r
e
t
1
i
s
eitd
*2714
9835A
EXAMPLE
i
0
DIM
ATI!21!!
20
OUTPUT
703;“wat,
sr
i"
3
0
ON
I
NT
#7
GQ81JB
Srq
!
ENABLE
40
CONTROL.
MASK
7;
128
!
SET
Uf
SO
CARD
ENAB1..E
7
!
ENABLE
Si
WAIT
100
6
0
GOTO
40
70
Sr
q
;
1
8
0
STATUS
703;Te«p
90
IF
NOT
BIT
(Tewp
,6)
TH
EN
100
i
no
ENTER
703;
AT
iiO
DISP
AT
120
OUTPUT
703;"re"
121
WAIT
100
130
RETURN
140
END
END
Q
F
“L
I
HE
BRANCHES
INTERRUPT
CONDITION.
CARD
FOR
INTERRUPTS.
3-54
i.
A
_
t
-
I
f'IIP
)

Related product manuals