Your IOtech warranty is as stated on the product warranty card. You may contact IOtech by
phone, fax machine, or e-mail in regard to warranty-related issues.
Phone: (440) 439-4091, fax: (440) 439-4093, e-mail: sales@iotech.com
Limitation of Liability
IOtech, Inc. cannot be held liable for any damages resulting from the use or misuse of this product.
Copyright, Trademark, and Licensing Notice
All IOtech documentation, software, and hardware are copyright with all rights reserved. No part of
this product may be copied, reproduced or transmitted by any mechanical, photographic, electronic, or
other method without IOtech’s prior written consent. IOtech product names are trademarked; other
product names, as applicable, are trademarks of their respective holders. All supplied IOtech software
(including miscellaneous support files, drivers, and sample programs) may only be used on one
installation. You may make archival backup copies.
FCC Statement
IOtech devices emit radio frequency energy in levels compliant with Federal Communications
Commission rules (Part 15) for Class A devices. If necessary, refer to the FCC booklet How ToIdentify and Resolve Radio-TV Interference Problems (stock # 004-000-00345-4) which is
available from the U.S. Government Printing Office, Washington, D.C. 20402.
CE Notice
Many IOtech products carry the CE marker indicating they comply with the safety and emissions
standards of the European Community. As applicable, we ship these products with a Declaration
of Conformity stating which specifications and operating conditions apply.
Warnings, Cautions, Notes, and Tips
Refer all service to qualified personnel. This caution symbol warns of possible personal injury or
equipment damage under noted conditions. Follow all safety standards of professional practice and
the recommendations in this manual. Using this equipment in ways other than described in this
manual can present serious safety hazards or cause equipment damage.
This ESD caution symbol urges proper handling of equipment or components sensitive to damage
from electrostatic discharge. Proper handling guidelines include the use of grounded anti-static
mats and wrist straps, ESD-protective bags and cartons, and related procedures.
Specifications and Calibration
Specifications are subject to change without notice. Significant changes will be addressed in an
addendum or revision to the manual. As applicable, IOtech calibrates its hardware to published
specifications. Periodic hardware calibration is not covered under the warranty and must be
performed by qualified personnel as specified in this manual. Improper calibration procedures may
void the warranty.
Quality Notice
IOtech has maintained ISO 9001 certification since 1996. Prior to shipment, we thoroughly test
our products and review our documentation to assure the highest quality in all aspects. In a spirit
of continuous improvement, IOtech welcomes your suggestions.
iii
iv
Contents
1 Introduction
1.1 Description …… 1-1
1.2 Available Accessories …… 1-1
1.3 Specifications …… 1-2
1.4 Abbreviations …… 1-3
2 Getting Started
2.1 Inspection …… 2-1
2.2 Serial Coonfiguration …… 2-1
2.3 Serial Signal Descriptions …… 2-2
2.4 Serial Cable Wiring …… 2-4
2.5 Hardware Installation …… 2-4
2.6 Is Anyone Out There? …… 2-5
2.7 Programming the Micro488/p …… 2-5
3 Command Descriptions
3.1 Introduction…… 3-1
3.2 Command Description Format …… 3-2
3.3 The Commands …… 3-5
Appendices
A – Micro488/p Command Summary
B – Character Codes and IEEE Multiline Messages
C – Sample Initialiazation Program
Micro488/p, Contents
09-26-02
v
vi
09-26-02
Micro488/p
Introduction
1.1Description
The Micro488/p Bus Controller converts a host RS-232 computer into an IEEE 488
bus talker, listener, and controller. It provides the basic IEEE 488-1978 bus
implementation required for a system controller. The Micro488/p may be located up
to fifty feet from the host and may control as many as eight IEEE 488 bus
instruments.
The Micro488/p interprets simple high level commands sent from the computer's
serial port and performs the necessary, and usually complex, bus control and
handshaking. The commands and protocol are similar to those used by the Hewlett
Packard HP-85 computer.
1.2Available Accessories
Available accessories for the Micro488/p include:
CA-7-11.5 foot IEEE 488 Cable.
CA-7-26 foot IEEE 488 Cable.
CA-7-36 foot shielded IEEE 488 Cable.
CA-7-46 foot reverse entry IEEE 488 Cable.
CA-35Cable Set; includes one IBM PC/XT/PS2 to Micro488/p RS-232
Cable and one IBM AT to Micro488/p RS-232 Cable.
CN-20Right Angle IEEE 488 adapter, male and female.
CN-22IEEE 488 Multi-tap bus strip, four female connectors in parallel.
CN-23IEEE 488 panel mount feed-through connector, male and female.
ABC488IEEE 488 ABC switch.
Micro488/p, Introduction
09-26-02
1-1
1.3Specifications
IEEE 488-1978
Implementation: C1, C2, C3, C4 and C28 controller subsets.
Terminators: Selectable CR, LF, LF-CR and CR-LF with EOI.
Connector: Standard IEEE 488 connector with metric studs.
Serial Interface
EIA RS-232C: AB, BA, BB, CA, CB.
Character Set: Asynchronous bit serial.
Output Voltage: 5 volts min. (RS-232C).
Input Voltage: 3 volts min.; 15v max.
Baud Rate: Selectable 300, 1200, 2400, 4800, 9600, and 19200.
Data Format: 8 data bits; 1 or 2 stop bits, no parity.
Power: Draws less than 5mA from the DTR or DSR serial lines on the
host computer.
Max. Dimensions: 50mm x 60mm x 25mm (2" x 2.3" x 0.9").
Weight: 51.2 grams (1.8 oz).
Environment: 0° to 50°C; 0 to 90% R.H. non-condensing.
Controls: All settings auto or software configurable.
Note: Specifications subject to change without notice.
1-2
09-26-02
Micro488/p, Introduction
1.4Abbreviations
The following IEEE 488 abbreviations are used throughout this
manual:
addr nIEEE bus address "n"
ATNAttention line
CRCarriage Return
dataData String
DCLDevice Clear
GETGroup Execute Trigger
GTLGo To Local
LAGListen Address Group
LFLine Feed
LLOLocal Lock Out
MLAMy Listen Address
MTAMy Talk Address
RENRemote Enable
SDCSelected Device Clear
SPDSerial Poll Disable
SPESerial Poll Enable
SRQService Request
TATalker Active
TADTalker Address
termTerminator
UNLUnlisten
UNTUntalk
*Unasserted
Micro488/p, Introduction
09-26-02
1-3
Notes:
1-4
09-26-02
Micro488/p, Introduction
Getting Started
2.1 Inspection
The Micro488/p was carefully inspected, both mechanically and electrically, prior to
shipment. When you receive the interface, carefully unpack all items from the
shipping carton and check for any obvious signs of physical damage which may
have occurred during shipment. Immediately report any such damage found to the
shipping agent. Remember to retain all shipping materials in the event that shipment
back to the factory becomes necessary.
Every Micro488/p is shipped with the following....
• Micro488/p IEEE488 Bus Controller
• Micro488/p User’s Manual, p/n 232-0901
2.2 Serial Configuration
Some of the Micro488/p serial communication parameters are pre-configured, and
can not be changed. The following list describes the parameters which are fixed
and, therefore, can not be changed:
ParameterSetting
Data Bits8 Bit ASCII
Stop Bits1 or 2
Parity None
Receive TerminatorCR
The rest of the parameters are configured through software, after power on.
The following is a list of the software-configurable parameters:
ParameterSetting
Baud Rate300, 1200, 2400, 4800, 9600, 19200
DuplexFull with echo/no-echo
Transmit TerminatorLF, CR, LF-CR, CR-LF
HandshakingXON/XOFF or CTS/RTS
Getting Started
09-26-02
2-1
2.3 Serial Signal Descriptions
The Micro488/p serial connector is configured as DCE type equipment for
RS-232 communications. This means the Micro488/p always transmits data on
Pin 3 and always receives data on Pin 2.
Note that the Micro488/p is equipped with a standard DB-25S connector and
requires a standard DB-25P mating connector.
Refer to the following figure and table to understand the relationship of the
Micro488/p connector’s pins and the associated RS-232 signals. Section 2.4of
this document includes wiring information for making your own cables.
Micro488p Serial Connector Pinout
The following table idetifies the above connector pins in regard to
signal name and I/O type.
2-2
09-26-02
Getting Started
Micro/488p Serial Connection
Pin Signal Name I/OFunction
2RxD
Receive Data
Input
Accepts serial data sent by the RS-232 host.
The signal level is low true.
3TxD
Transmit Data
4CTS
Clear To Send
5RTS
Request To Send
6DSR
Data Set Ready
7Gnd
Ground
8DCD
Data Carrier Detect
Output
Input
Output
Input
N/A
Output
Transmits serial data to the RS-232 host.
The signal level is low true.
The CTS input is used as a hardware handshake
line to prevent the Micro488/p from transmitting
serial data when the RS-232 host is not ready to
accept it.
When RTS/CTS handshake is selected, the
Micro488/p will not transmit data out TxD while
this line is un-asserted (low).
If XON/XOFF handshake is selected, the CTS
line is not tested to determine if it can transmit
data.
The RTS output is used as a hardware
handshake line to prevent the RS-232 host from
transmitting serial data if the Micro488/p is not
ready to accept it.
This pin is used to provide power for the
Micro488/p if the DTR pin is in its false (LOW)
state, this pin must be in its true (HIGH) state in
order for the Micro488/p to operate properly.
This pin sets the ground reference point for
the other RS-232 inputs and outputs.
The function of this pin is similar to the CTS pin.
This pin is tied internally to its true (HIGH) state.
20DTR
DataTerminal Ready
Getting Started
Input
Used to provide power for the Micro488/p when
the DSR pin (pin 6) is in its false (LOW) state.
Note that the DTR pin (pin 20) must be in its
true (HIGH) state in order for the Micro488/p to
operate properly.
09-26-02
2-3
2.4 Serial Cable Wiring
If a cable was not purchased with the interface, the following diagrams will be helpful
in making your own cable. Simple soldering skills and attention to detail will ensure
successful construction.
IBM PC/XT/PS2 to Micro488/pIBM AT to Micro488/p
DB25,
Female
TXD22TXDDCD18DCD
RXD33RXDRXD23RXD
RTS44RTSTXD32TXD
CTS55CTSDTR420DTR
DSR66DSRGND57GND
GND77GNDDSR66DSR
DCD88DCDRTS74RTS
DTR2020DTRCTS85CTS
Two Scenarios for Making an Interface Cable (RS-232)
2.5 Hardware Installation
Installation of the Micro488/p consists of plugging the device into an available serial
port on the host computer.
DB25,
Male
DB9,
Female
DB25,
Male
2-4
09-26-02
Getting Started
2.6 Is Anyone Out There?
In order to properly operate the Micro488/p, the DTR and DSR lines on the COM port
must be initialized first. Usually this can be accomplished by closing and then opening
the serial port. Appendix C includes a Sample Initialization Program.
Once the DTR and DSR ines have been initialized, the next step is to initialize the baud
rate to be used with the Micro488/p. This is done by sending the Micro488/p five
carriage returns, separated by a 0.1 second delay. Now send the Micro488/p the
following command:
"I" <CR>.
The Micro488/p should respond with the prompt ">" character. Now the IEEE488 bus
is initialized, and the Micro488/p ready for operation.
2.7 Programming the Micro488/p
The next step involves writing a simple dumb terminal program to communicate with
the Micro488/p. The dumb terminal program is written in QuickBASIC for any IBM
PC compatable computer, and allows simple communication with IEEE 488 devices
connected to the Micro488/p.
The first task is to open the serial port to which the Micro488/p is connected. If the
Micro488/p is connected to serial port 1, then the following line will open that serial
port with the following parameters:
Next, wait a moment for the Micro488/p's power supply to stabilize.
t = TIMER
DO WHILE t + .1 > TIMER
LOOP
Getting Started
09-26-02
2-5
Now that the Micro488/p is powered on, send it five carriage returns for the buad rate
detection circuitry to set the internal baud rate. Place a short time delay between the
characters to ensure that the proper baud rate will be detected.
FOR i = 1 TO 5
PRINT #1, CHR$(13);
t = TIMER
DO WHILE t + .2 > TIMER
LOOP
NEXT i
Next, initialize the Micro488/p with the following command:
PRINT #1, "I"
Now, set up the Micro488/p with the following parameters:
Serial echo - OFF
Hardware Handshake - ON
XON/XOFF handshaking - OFF
Serial terminator - CARRIAGE RETURN
IEEE bus terminator - CARRIAGE RETURN, LINE FEED
After a short delay for command processing, input any garbage
characters that may be in the PC's serial input buffer.
t = TIMER
DO WHILE t + .5 > TIMER
LOOP
a$ = INPUT$(LOC(1), #1)
2-6
09-26-02
Getting Started
Now the Micro488/p is ready for operation. Simply set up an infinite loop to check
for user keypresses and to look for serial data in the PC's serial input buffer.
PRINT "Ready!"
DO
IF LOC(1) THEN PRINT INPUT$(LOC(1), 1);'If anything is in the
'PC's serial input
'buffer
'print it to the screen.
k$ = INKEY$'Get key press
PRINT #1, k$;'Send it to the
'Micro488/p
PRINT k$;'Echo keypress to screen
LOOP
The following is a complete listing of 'DUMBTERM.BAS"
'Micro488/p Dumb Terminal Program
'Copyright 1992 IOtech Inc.
CLS
PRINT "Initializing..."
OPEN "COM1:19200,N,8,2,cs,ds" FOR RANDOM AS #1
t = TIMER
DO WHILE t + .1 > TIMER
LOOP
FOR i = 1 TO 5
PRINT #1, CHR$(13);
t = TIMER
DO WHILE t + .2 > TIMER
LOOP
NEXT i
DO
IF LOC(1) THEN PRINT INPUT$(LOC(1), 1);
k$ = INKEY$
PRINT #1, k$;
PRINT k$;
LOOP
Section 3 contains detailed command descriptions which are applicable Micro488/p.
2-8
09-26-02
Getting Started
Command Descriptions
3.1 Introduction
This section contains detailed descriptions of each of the low and high-level
commands available for the Micro488/p. There are two types of commands: bus
commands and system commands. Bus commands communicate with the IEEE 488
bus. System commands configure or request information from the Micro488/p.
Each command description includes syntax, response, bus states,
and examples.
3.2.1Syntax
The syntax portion of the command description describes the proper command
syntax which must be sent to the Micro488/p using the IBM BASIC PRINT#
command, or its equivalent in other languages, to the COM port. The following
conventions apply throughout the syntax descriptions:
• The Micro488/p is case insensitive; i.e., system commands may be in upper
or lower case.
•
Commands to an individual IEEE device must conform to the device's
particular syntax.
• Items in lower case, such as addr or n, represent parameters which must be
substituted with an appropriate value.
• Numeric parameters (those that are given as numbers) are decimal unless
preceded by &H, in which case they considered to be hexadecimal. For
example, 100 is decimal 100, &H64 is hexadecimal 64 which equals decimal
100, &HFF is decimal 255, and 0FF is invalid because F is not a valid
decimal digit.
Note: Bus addresses are the only exception to the numeric parameters rule.
•
Bus addresses, both primary and secondary, must be specified as two-digit
decimal numbers. Hexadecimal bus addresses are not allowed.
3-2
09-27-02
Command Descriptions
3.2.1.1 Bus Addressing
The following conventions apply to bus addressing:
addr
cmd$
CR
LF
3.2.1.2 Terminators
The following conventions apply to terminators:
term
EOI
An IEEE bus address in the range from 00 through 30.
An arbitrary command string which is sent to the
particular IEEE device being addressed.
The carriage return character ($13, $&H0D).
The line feed character ($10, $&H0A).
Any single character, specified as CR, LF, 'X', as described
previously; part of terminator sequence used to mark the
end of lines of data and commands.
The IEEE bus End-Or-Identify signal; when asserted during
the transfer of a character, EOI signals that character as the
last in the transfer. On input, EOI, if specified, causes the
input to stop. On output, EOI causes the bus EOI signal to
be asserted during transmission of the last character
transferred.
Command Descriptions
3-3
09-27-02
3.2.2Response
This portion of the command description describes the response that the user's
program should read from the serial host's COM port after sending the command. If
a response is provided, it must be read to maintain proper program seqence.
3.2.3Bus States
This portion of the command description describes the bus command and data
transfers using IEEE bus mnemonics as listed in the following table.
Bus StatesDIO lines
ATNAttention
dataData String
DCLDevice Clear
GETGroup Execute Trigger
GTLGo To Local
IFCInterface Clear
LAGListen Address Group
LLOLocal Lock Out
MLAMy Listen Address
MTAMy Talk Address
RENRemote Enable
SDCSelected Device Clear
SPDSerial Poll Disable
SPESerial Poll Enable
SRQService Request
TAGTalker Address Group
UNLUnlisten
UNTUntalk
87654321
x0010100
x0001000
x0000001
x01addrn
x0010001
x01addrn
x10addr n
x0000100
x0011001
x0011000
x10addr n
x0111111
x1011111
x = "don't care"
addrn = IEEE bus address “n”
3-4
09-27-02
Command Descriptions
If a command is preceded by an asterisk, it is unasserted. For example, *REN
states that the remote enable line is unasserted; REN without the asterisk states
that the line is asserted.
3.2.4Examples
This portion of the command description includes programming
examples written in BASIC.
3.3The Commands
Command descriptions, relevant to Micro488/p, now follow.
Command Descriptions
3-5
09-27-02
/A
The /A command is a low level IEEE command which asserts the attention line. After
completion of this command, the Micro488/p is left in the controller active state.
SYNTAX/A
RESPONSENone
BUS STATESATN
EXAMPLEPRINT#1,"/A"
/L
The /L command is a low level IEEE command which sends the LAG command to the
specified device. After completion of this command, the Micro488/p is left in the controller
active state.
SYNTAX/L
RESPONSENone
BUS STATESATN,LAG
EXAMPLEPRINT#1,"/L;10"Send LAG10 on the IEEE bus.
3-6
09-27-02
Command Descriptions
/ML
The /ML command is a low level IEEE command which places the Micro488/p in the listen
state. After completion of this command, the Micro488/p is ready to listen as soon as the
RESUME (RS) command is issued.
SYNTAX/ML
RESPONSENone
BUS STATESATN
EXAMPLEPRINT#1,"/ML"
/MT
The /MT command is a low level IEEE command which places the Micro488/p in the talk
state. After completion of this command, the Micro488/p is ready to talk as soon as the
RESUME (RS) command is issued.
SYNTAX/MT
RESPONSENone
BUS STATESATN,UNT
EXAMPLEPRINT#1,"/MT"
Command Descriptions
09-27-02
3-7
/T
The /T command is a low level IEEE command which issues the talk command to the
specified IEEE device.
SYNTAX/T;addr
RESPONSENone
BUS STATESATN,TAG
EXAMPLEPRINT#1,"/T;10"Issue TAG to device 10.
/UL
The /UL command is a low level IEEE command which sends the UNL command to the
IEEE bus. This command instructs all devices on the IEEE bus to get off the IEEE bus.
SYNTAX/UL
RESPONSENone
BUS STATESATN,UNL
EXAMPLEPRINT#1,"/UL"
3-8
09-27-02
Command Descriptions
/UT
The /UT command is a low level IEEE command which sends the UNT command to the
IEEE bus. This command instructs all devices on the IEEE bus to get off the IEEE bus.
SYNTAX/UT
RESPONSENone
BUS STATESATN,UNT
EXAMPLEPRINT#1,"/UT"
AABORT I/O
The ABORT I/O command causes the Interface Clear (IFC) bus management line to be
pulsed. By asserting IFC, the Micro488/p regains control of the bus even if one of the
devices has locked it up during a data transfer. ABORT I/O forces all IEEE bus device
interfaces into a quiescent idle state.
SYNTAXA
RESPONSENone
BUS STATES*REN, IFC, *IFC, ATN, REN
EXAMPLEPRINT#1,"A"
Command Descriptions
3-9
09-27-02
CDEVICE CLEAR
The DEVICE CLEAR command causes the Device Clear (DCL) bus command to be issued
by the Micro488/p. If the optional addresses are included, the Selected Device Clear (SDC)
command is issued to the specified devices. IEEE 488 bus devices which receive a Device
Clear or Selected Device Clear command normally reset to their power-on state.
SYNTAXC[;addr]
RESPONSENone
BUS STATESATN, DCL (all devices)
ATN, UNL,UNT,LAG,SDC(selected devices)
EXAMPLESPRINT #1,"C"Issue a Device Clear to all devices.
PRINT #1,"C;10"Issue a Selected Device Clear to
device 10.
ECECHO
The system command ECHO instructs the Micro488/p to either enable, or disable serial
echo.
SYNTAXEC;n
n = 1, enable serial echo.
n = 0, disable serial echo.
RESPONSENone
BUS STATESNone
EXAMPLEPRINT#1,"EC;1"Enable serial echo.
3-10
09-27-02
Command Descriptions
ENENTER
The ENTER command reads data from the IEEE bus. If a device address is specified, that
device is addressed to talk. If no address is specified, the Micro488/p must already be
configured to receive data as a result of an immediately preceding ENTER command. The
Micro488/p hangs the bus if no device is present to provide the data. From either mode
(addressed or unaddressed), the Micro488/p inputs data from the IEEE bus and sends it to
serial port until one of the following conditions is met:
1.A terminator character is received from the IEEE device that is talking.
2.An EOI is received with the data from the IEEE device that is talking.
3.An Escape command is received from the host computer via the serial port.
SYNTAXEN[;addr]
addr is the IEEE bus device address.
RESPONSEDevice-dependent data. The response ends when the IEEE bus
input terminator is detected and the serial output terminators are
appended to the returned data.
BUS STATESATN,UNL,TAG,*ATN
Micro488/p is in the listener active state, and IEEE device is in
the talker active state.
EXAMPLESPRINT#1,"EN;16"Read data from device 16.
INPUT#1,A$
PRINT#1,"EN;16"
LINE INPUT#1,A$Read an entire line of data
from device 16 even if it
contains commas or other
punctuation.
Command Descriptions
3-11
09-27-02
<CTRL>AESCAPE
The system command ESCAPE unlocks the Micro488/p from an inappropriate command,
such as a command requesting data from a nonexistent device.
When the ESCAPE command is received, the serial handshake line (RTS) is un-asserted. It
is asserted when the Micro488/p is capable of buffering commands. If XON/XOFF
handshake is selected, the software handshake state is not modified.
Issuing the ESCAPE command clears the serial input (pending commands) and causes the
Micro488/p to wait for new commands.
SYNTAX<CTRL> A or CHR$(1)
RESPONSENone
BUS STATESNone
EXAMPLEPRINT #1, CHR$(1)
HHARDWARE HANDSHAKE
The system command HARDWARE HANDSHAKE enables or disables hardware
(CTS/RTS) handshake.
SYNTAXH;n
n = 0, disable hardware handshake.
n = 1, enable hardware handshake.
RESPONSENone
BUS STATESNone
EXAMPLEPRINT#1,"H;1"Enable hardware handshake.
3-12
09-27-02
Command Descriptions
TBIEEE BUS TERMINATOR
The IEEE BUS TERMINATOR command is used to select the IEEE bus terminator for
reads from the IEEE bus. The selected terminator signifies the end of an ENTER sequence.
The available terminators are:
1 - LF
2 - CR
3 - LF-CR
4 - CR-LF
SYNTAXTB;n
n is one of the available terminator types.
RESPONSENone
BUS STATESNone
EXAMPLEPRINT #1, "TB;1"Select LF as an IEEE bus
terminator.
Command Descriptions
3-13
09-27-02
IINIT
The system command INIT provides a warm start of the interface. Issuing the INIT
command clears the serial input (pending commands) and output (pending data) buffers and
re-initializes the internal IEEE controller hardware.
SYNTAXI
RESPONSENone
BUS STATESIFC, REN, *IFC, ATN, *REN, REN
EXAMPLEPRINT#1,"I"
LLOCAL
The LOCAL command, without optional address, causes the Micro488/p to un-assert the
Remote Enable line causing devices on the bus to return to manual operation. With the
address specified, the bus device is placed in the local mode by the Go To Local (GTL) bus
command.
SYNTAXL [;addr]
RESPONSENone
BUS STATES*REM
unaddressed.
ATN, UNL, UNT, LAG, GTL
addressed.
EXAMPLESPRINT#1,"L"Un-assert the REN Line.
PRINT #1,"L;16"Cause device 16 to go to
local.
3-14
09-27-02
Command Descriptions
LLLOCAL LOCKOUT
The LOCAL LOCKOUT command causes the Micro488/p to issue a Local Lockout IEEE
bus command which inhibits bus devices that support this command from being controlled
manually from their front panels.
SYNTAXLL
RESPONSENone
BUS STATESATN, LLO
EXAMPLESPRINT#1,"LL"Send Local Lockout command.
OOUTPUT
The OUTPUT command sends data to the IEEE bus. The Remote Enable line is first
asserted, then, if a device address is specified, that device is addressed to listen. If an
address is not specified, the Micro488/p must already be configured to send data as a result
of an immediately preceding OUTPUT command.
SYNTAXO;cmd$
unaddressed.
OA;addr;cmd$
addressed.
addr is a bus device address.
cmd$ is a string of characters to OUTPUT terminated by the
serial terminator(s).
RESPONSENone
BUS STATESREN , *ATN, cmd$
unaddressed.
ATN, UNL, UNT, LAG, GTL, data
addressed.
EXAMPLESPRINT#1,"OA;22;R0C0T1X"
Send "R0C0T1X" to device 22.
PRINT#1,"O;XYZ"Send device 22 "XYZ".
Command Descriptions
3-15
09-27-02
REREMOTE
The REMOTE command asserts the Remote Enable (REN) bus management line. If the
optional bus address is specified, then REMOTE also addresses the device to listen, placing
it in the Remote addressed state.
SYNTAXRE [;addr]
RESPONSENone
BUS STATESREN
unaddressed.
REN, ATN, UNL. UNT. LAG
addressed.
EXAMPLEPRINT #1,"RE"Assert Remote Enable.
RSRESUME
The RESUME command un-asserts the Attention (ATN) bus signal removing the
Micro488/p from the active controller state and allowing transfers to take place between two
peripheral devices.
SYNTAXRS
RESPONSENone
BUS STATES*ATN
EXAMPLEPRINT#1,"RS"Un-assert ATTENTION line.
3-16
09-27-02
Command Descriptions
SPSERIAL POLL
The SERIAL POLL command performs a Serial Poll of the bus device specified and
responds with a number from 0 to 255 representing the decimal equivalent of the eight-bit
device response. If rsv (DIO7, decimal value 64) is set, then that device is signaling that it
requires service. Serial Polls are normally performed in response to assertion of the Service
Request (SRQ) bus signal by some bus device.
SYNTAXSP; addr
RESPONSE0 to 255
BUS STATESATN, UNL, TAG, SPE, *ATN, data, ATN, SPD, UNT
EXAMPLESPRINT#1,"SP 16"Serial Poll device 16.
INPUT#1,SPSTATReceive the Spoll status.
TCSERIAL TERMINATOR
The SERIAL TERMINATOR command sets the end-of-line terminators for input from the
serial host. All input from the serial host must be terminated by the selected terminator.
During INPUT, the Micro488/p takes the data it receives from the bus device until it detects
the LF of other optionally specified input terminating condition. It strips all CR and LF from
the input data and appends the serial output terminator CR before sending it to the serial
host. The available terminators are:
1 - LF
2 - CR
3 - LF-CR
4 - CR-LF
SYNTAXTC;n
n is one of the available terminator types.
RESPONSENone
BUS STATESNone
EXAMPLESPRINT#1,"TC;2"Select CR as the serial output
terminator.
Command Descriptions
3-17
09-27-02
SQSRQ CHECK
The system command SRQ CHECK inquires whether or not the SRQ line on the IEEE bus
is currently being asserted.
SYNTAXSQ
RESPONSEY
SRQ is being asserted.
N
SRQ is not being asserted.
BUS STATESNone
EXAMPLESPRINT #1, "SQ"Issue SRQ CHECK
command.
INPUT#1,SRQSTATReceive SRQ status.
TRTRIGGER
The TRIGGER command issues a Group Execute Trigger (GET) bus command to the
specified device. If no address is specified, then GET only affects those devices that are
already in the listen state as a result of a previous OUTPUT command.
SYNTAXTR[;addr]
RESPONSENone
BUS STATESATN, GET
unaddressed.
ATN, UNL,UNT, LAG, GET
addressed.
EXAMPLESPRINT#1,"TR;16"Issue Group Execute Trigger
to device 16.
3-18
09-27-02
Command Descriptions
XXOFF/XON
The system command XOFF/XON enables or disables XON/XOFF handshaking.
SYNTAXX;n
n = 0, disable XON/XOFF handshaking.
n = 1, enable XON/XOFF handshaking.
RESPONSENone
BUS STATESNone
EXAMPLEPRINT #1, "X;1"Enable XON/XOFF
handshaking.
<CTRL>SXOFF
The system command XOFF temporarily inhibits serial transmission from the Micro488/p.
SYNTAX<CTRL> S or CHR$(19)
RESPONSENone
BUS STATESNone
EXAMPLEPRINT #1, CHR$(19)
Command Descriptions
3-19
09-27-02
<CTRL>QXON
The system command XON restarts serial transmission from the Micro488/p following
reception of the XOFF command.
SYNTAX<CTRL> Q
CHR$(17)
RESPONSENone
BUS STATESNone
EXAMPLEPRINT #1, CHR$(17)
3-20
09-27-02
Command Descriptions
Appendix A Micro488/p Command Summary
CommandCodeDescriptionPage
/A/AAsserts the attention line; leaves Micro488/p in the controller active
state.
/L/LSends the LAG command to the specified device; leaves Micro488/p in
the controller active state.
/ML/MLPlaces the Micro488/p in the listen state on RESUME (RS).3-7
/MT/MTPlaces the Micro488/p in the talk state on RESUME (RS).3-7
/T/T;addrIssues the talk command to the specified IEEE device.3-8
/UL/ULSends the UNL command to the IEEE bus; instructs all devices on the
IEEE bus to get off the IEEE bus.
/UT/UTSends the UNT command to the IEEE bus; instructs all devices on the
IEEE bus to get off the IEEE bus.
ABORT I/OAPulses Interface Clear (IFC) bus management line to be pulsed; forces all
IEEE bus device interfaces into a quiescent idle state.
DEVICE CLEARC[;addr]Instructs Micro488/p to issue Device Clear (DCL) bus command; if
optional addresses are included, issues the Selected Device Clear (SDC)
command to the specified devices.
ECHOEC;nInstructs the Micro488/p to enable or disable serial echo.3-10
ENTERENTER[;addr]Reads data from the IEEE bus and sends it to serial port; a terminator
character, an EOI, or an ESCAPE command terminates data
input/output.
3-6
3-6
3-8
3-9
3-9
3-10
3-11
ESCAPE<CTRL> A
HARDWARE
HANDSHAKE
IEEE BUS
TERMINATOR
INITIProvides a warm start of the interface; clears the serial input (pending
Appendix A, Micro488/p Command Summary
CHR$(1)
H;nEnables or disables hardware (CTS/RTS) handshake.3-12
TB;nSelects the IEEE bus terminator for reads from the IEEE bus; selected
Unlocks the Micro488/p from an inappropriate command; clears the
serial input (pending commands) and instructs Micro488/p to wait for
new commands.
terminator signifies the end of an ENTER sequence.
commands) and output (pending data) buffers and re-initializes the
internal IEEE controller hardware.
09-26-02
3-12
3-13
3-14
A-1
CommandCodeDescriptionPage
LOCALL[;addr]Without optional address, instructs the Micro488/p to un-assert the
LOCAL LOCKOUTLLInstructs the Micro488/p to issue a Local Lockout IEEE bus command.3-15
OUTPUTO;cmd$
REMOTERE[;addr]Asserts the Remote Enable (REN) bus management line.3-16
RESUMERSUn-asserts the Attention (ATN) bus signal; removes the Micro488/p
SERIAL POLLSP;addrPerforms a serial poll of the bus device specified; responds with a
SERIAL
TERMINATOR
SRQ CHECKSQInquires whether or not the SRQ line on the IEEE bus is currently being
TRIGGERTR[;addr]Issues a Group Execute Trigger (GET) bus command to the specified
XOFF/XONX;nEnables or disables XON/XOFF handshaking.3-19
O;addr;cmd$
TC;nSets the end-of-line terminators for input from the serial host.3-17
Remote Enable line causing devices on the bus to return to manual
operation; with optional address, places bus device in the local mode by
the Go To Local (GTL) bus command.
Sends data to the IEEE bus.3-15
from the active controller state and allows transfers between two
peripheral devices.
number from 0 to 255 representing the decimal equivalent of the eightbit device response.
asserted.
device; if no address is specified, then GET affects those devices already
in the listen state.
3-14
3-16
3-17
3-18
3-18
XOFF<CTRL>S
XON<CTRL>Q
A-2
CHR$1(9)
CHR$1(17)
Temporarily inhibits serial transmission from the Micro488/p.3-19
Restarts serial transmission from the Micro488/p.3-20
09-26-02
Appendix A, Micro488/p Command Summary
Appendix B Character Codes and IEEE Multiline Messages
$000
NUL
$011
SOH
GTL
$022
STX
$033
ETX
$044
EOT
SDC
$055
ENQ
PPC
$066
ACK
$077
BEL
$088
BS
GET
$099
HT
TCT
$0A10LF$1A26
$0B11VT$1B27
$0C12FF$1C28FS$2C44
$1016
DLE
$1117
DCI
LLO
$1218
DC2
$1319
DC3
$1420
DC4
DCL
$1521
NAK
PPU
$1622
SYN
GTL
$1723
ETB
$1824
CAN
SPE
$1925
EM
SPD
SUB
ESC
$2032
SP
00
$2133
!
01
$2234
"
02
$2335
#
03
$2436
$
04
$2537
%
05
$2638
&
06
$2739
'
07
$2840
(
08
$2941
)
09
$2A42
*
10
$2B43
+
11
,
12
$0D13CR$1D29GS$2D45
-
13
$0E14SO$1E30RS$2E46
.
14
$0F15SI$1F31US$2F47
/
15
$3048
0
16
$3149
1
17
$3250
2
18
$3351
3
19
$3452
4
20
$3553
5
21
$3654
6
22
$3755
7
23
$3856
8
24
$3957
9
25
$3A58
:
26
$3B59
;
27
$3C60
<
28
$3D61
=
29
$3E62
>
30
$3F63
?
31
$4064
@
00
$4165
A
01
$4266
B
02
$4367
C
03
$4468
D
04
$4569
E
05
$4670
F
06
$4771
G
07
$4872
H
08
$4973
I
09
$4A74
J
10
$4B75
K
11
$4C76
L
12
$4D77
M
13
$4E78
N
14
$4F79
O
15
$5080
P
16
$5181
Q
17
$5282
R
18
$5383
S
19
$5484
T
20
$5585
U
21
$5686
V
22
$5787
W
23
$5888
X
24
$5989
Y
25
$5A90
Z
26
$5B91
[
27
$5C92
\
28
$5D93
]
29
$5E94
^
30
$5F95
_
31
$6096
`
SCG
$6197
a
SCG
$6298
b
SCG
$6399
c
SCG
$64100
d
SCG
$65101
e
SCG
$66102
f
SCG
$67103
g
SCG
$68104
h
SCG
$69105
i
SCG
$6A106
j
SCG
$6B107
k
SCG
$6C108
l
SCG
$6D109
m
SCG
$6E110
N
SCG
$6F111
o
SCG
$70112
p
SCG
$71113
q
SCG
$72114
r
SCG
$73115
s
SCG
$74116
t
SCG
$75117
u
SCG
$76118
v
SCG
$77119
w
SCG
$78120
x
SCG
$79121
y
SCG
$7A122
z
SCG
$7B123
{
SCG
$7C124
|
SCG
$7D125
}
SCG
$7E126
~
SCG
$7F127
DEL
SCG
ACGUCGLAGTAGSCG
ACG = Addressed Command GroupTAG = Talk Address Group
UCG = Universal Command GroupSCG = Secondary Command Group
LAG = Listen Address Group
Appendix B, Character Codes and IEEE Multiline Messages
09-27-02
B-1
Notes:
B-2
Appendix C Sample Initialization Program
'Sample Micro488/p initialization program
'Copyright 1992, IOtech Inc.
'
'This program demonstrates how to initialize the Micro488/p IEEE
'controller using Quick Basic. This program will initialize the
'Micro488/P, and establish IEEE communications.
CLS
CLOSE'Close all files, this turns off DTR and DSR.
OPEN com$ FOR RANDOM AS #IeeeOut'Open the serial port on COM 1
t = TIMER
DO WHILE t + .1 > TIMER'Wait for .1 Seconds
LOOP
FOR i = 1 TO 5'Send 5 carriage returns, with a .1
'second delay seperation.
PRINT #IeeeOut, CHR$(13);
t = TIMER
DO WHILE t + .1 > TIMER
LOOP
NEXT i
PRINT #IeeeOut, "I"'Send Init command
PRINT #IeeeOut, "EC;0"'Turn off serial echo
PRINT #IeeeOut, "H;1"'Turn on hardware handshake
PRINT #IeeeOut, "X;0"'Turn off XON/XOFF handshake
PRINT #IeeeOut, "TC;2"'Set serial terminator to CR
PRINT #IeeeOut, "TB;4"'Set IEEE bus terminator to CR
LF
t = TIMER
DO WHILE t + .5 > TIMER'Wait .5 seconds
LOOP
a$ = INPUT$(LOC(1), #IeeeIn)'Clear the serial input buffer.
Appendix C, Sample Initialization Program
09-27-02
C-1
Notes:
C-2
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.