Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 40

Section 3
IEEE Operating Modes
3.6
If we are addressed to listen then we ENTER a line from the controller and print it
out.
400 'Listen state
410 PRINT#1,"ENTER"
420 LINE INPUT#1,A$
430 PRINT A$
440 GOTO 200
If we are addressed to talk then we INPUT a line from the keyboard and OUTPUT
it to the controller.
500 'Talk state
510 LINE INPUT A$
520 PRINT#1,"OUTPUT;";A$
530 GOTO 200
It is also possible to detect these conditions with the ARM or ON <event>
DOMACRO
commands and handle them in an exception as described in Section 5. The
various arm conditions and their meanings are as follows:
SRQ
The internal Service Request state is set. See the SPOLL
command in Section 5.
PERIPHERAL
the Micro488/EX is in the Peripheral (*CA) operating
mode.
CONTROLLER
the Micro488/EX is the Active Controller (CA).
TRIGGER
the Micro488/EX, as a Peripheral, has received a Trigger
bus command.
CLEAR
the Micro488/EX, as a Peripheral, has received a Clear bus
command.
TALK
the Micro488/EX is in the Talk state and can OUTPUT to the
bus.
LISTEN
the Micro488/EX is in the Listen state and can ENTER from
the bus.
IDLE
the Micro488/EX is in neither the Talk nor Listen state.