beautypg.com

Abort – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 299

background image

15A. Driver488/DRV Commands

III. COMMAND REFERENCES - 15. Command References

III-284

Personal488 User’s Manual, Rev. 3.0

ABORT

SYNTAX

ABORT[addr]

RESPONSE

None

MODE

SC

or

*SC

CA

BUS STATES

IFC, *IFC (SC mode)

ATN, MTA (*SC

CA mode)

SEE ALSO

SYS CONTROLLER

EXAMPLE

PRINT#1,"ABORT"

As the System Controller (

SC

), whether Driver488 is the Active Controller or not, the

ABORT

command

causes the Interface Clear (

IFC

) bus management line to be asserted for at least 500 microseconds. By

asserting

IFC

, Driver488 regains control of the bus even if one of the devices has locked it up during a

data transfer. Asserting

IFC

also makes Driver488 the Active Controller. If a Non System Controller

was the Active Controller then it is forced to relinquish control to Driver488.

ABORT

forces all IEEE

488 device interfaces into a quiescent state.

If Driver488 is a Non System Controller in the Active Controller state (

*SC

CA

), it asserts attention

(

ATN

), which stops any bus transactions, and then sends its Talk address to “Untalk” any other Talkers

on the bus. It does not (and cannot) assert

IFC

.

ARM

SYNTAX

ARM interrupt [[,]interrupt...]

RESPONSE

None

MODE

Any

BUS STATES

None

SEE ALSO

DISARM, LIGHT PEN; OnEvent (Sub-Chapter 15B)

EXAMPLE

100 ON PEN GOSUB 1000

Set up service routine.

110 PEN ON

Enable interrupt polling.

PRINT#1,"ARMSRQ"

Detect Service Request

1000 PRINT#1,"SPOLL16"

Get Serial Poll status from

1010 INPUT#2,STATUSBYTE

device and act accordingly.

1999 RETURN

Done with interrupt.

The following

ARM

conditions are supported:

Condition

Description

SRQ

The Service Request bus line is asserted.

Peripheral

An addressed status change has occurred and the interface is a Peripheral.

Controller

An addressed status change has occurred and the interface is an Active Controller.

Trigger

The interface has received a device Trigger command.

Clear

The interface has received a device Clear command.

Talk

An addressed status change has occurred and the interface is a Talker.

Listen

An addressed status change has occurred and the interface is a Listener.

Idle

An addressed status change has occurred and the interface is neither a Talker nor a

Listener.

ByteIn

The interface has received a data byte.

ByteOut

The interface has been configured to output a data byte.

Error

A Driver488 error has occurred.

Change

The interface has changed its addressed state. The Controller/Peripheral or

Talker/Listener/Idle states of the interface have changed.

The

ARM

command allows Driver488 to signal to the user specified function when one or more of the

specified conditions occurs.

ARM

sets a flag corresponding to each implementation of the conditions

indicated by the user.