beautypg.com

Auto remote, Buffered, Bus address – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 300

background image

III. COMMAND REFERENCES - 15. Command References

15A. Driver488/DRV Commands

Personal488 User’s Manual, Rev. 3.0

III-285

Once an interrupt is

ARM

ed, it remains

ARM

ed until it is

DISARM

ed, or until Driver488 is reset. BASIC

automatically suppresses light pen interrupt detection during the execution of an interrupt service
routine, so the interrupt service routine is never re-entrantly invoked. In languages that explicitly poll
the light pen status, polling should not be done during the interrupt service routine.

AUTO REMOTE

SYNTAX

AUTO REMOTE [{ON|OFF}]

RESPONSE

None

MODE

SC

BUS STATES

None

SEE ALSO

LOCAL, REMOTE, ENTER, OUTPUT

EXAMPLE

PRINT#1,"AUTO REMOTE ON"

The

AUTO REMOTE

command enables or disables the automatic assertion of the Remote Enable (

REN

)

line by

OUTPUT

. When

AUTO REMOTE

is enabled,

OUTPUT

automatically asserts

REN

before

transferring any data. When

AUTO REMOTE

is disabled, there is no change to the

REN

line.

AUTO REMOTE

is on by default.

BUFFERED

SYNTAX

BUFFERED

RESPONSE

Integer from 0 to 1,048,575 (or 2

20

-1)

MODE

Any

BUS STATES

None

SEE ALSO

ENTER, OUTPUT

EXAMPLE

PRINT#1,"ENTER16#1024 BUFFER &H1000:0 EOI"
PRINT#1,"BUFFERED"
INPUT#2,N
PRINT N,"bytes were actually received."

The

BUFFERED

command returns the number of characters transferred by the latest

ENTER

,

OUTPUT

,

SEND DATA

, or

SEND EOI

command. If a

CONTINUE

transfer is in progress, then the result is the

number of characters that have been transferred at the moment the command is issued. This command
is most often used after an

ENTER #count BUFFER

term to determine if the full number of characters

was received, or if the transfer terminated upon detection of

TERM

. It is also used to find out how many

characters have currently been sent during an asynchronous DMA transfer.

BUS ADDRESS

SYNTAX

BUS ADDRESS [name] prim-addr[sec-addr]

name

is the name of an external device. If

name

is not specified, then

BUS

ADDRESS

sets the bus address of the interface.

primary

is the IEEE 488 bus primary address of the specified device.

secondary

is the IEEE 488 bus secondary address of the specified device.

RESPONSE

None

MODE

Any

BUS STATE

None

SEE ALSO

MakeDevice

EXAMPLE

PRINT#1, “BUS ADDRESS DMM 1400"

The

BUS ADDRESS

command sets the IEEE 488 bus address of the IEEE 488 hardware interface or an

external device. Every IEEE 488 bus device has an address that must be unique within any single
IEEE 488 bus system. The default IEEE 488 bus address for Driver488 is

21

, but this may be changed

if it conflicts with some other device.