Professional Documents
Culture Documents
BC Ja6
BC Ja6
Programming Manual
Keithley Instruments, Inc. warrants the following items for 90 days from the date of shipment: probes, cables, rechargeable
batteries, diskettes, and documentation.
During the warranty period, we will, at our option, either repair or replace any product that proves to be defective.
To exercise this warranty, write or call your local Keithley representative, or contact Keithley headquarters in Cleveland, Ohio.
You will be given prompt assistance and return instructions. Send the product, transportation prepaid, to the indicated service
facility. Repairs will be made and the product returned, transportation prepaid. Repaired or replaced products are warranted for
the balance of the original warranty period, or at least 90 days.
LIMITATION OF WARRANTY
This warranty does not apply to defects resulting from product modification without Keithley’s express written consent, or
misuse of any product or part. This warranty also does not apply to fuses, software, non-rechargeable batteries, damage from
battery leakage, or problems arising from normal wear or failure to follow instructions.
THIS WARRANTY IS IN LIEU OF ALL OTHER WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING ANY
IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. THE REMEDIES PRO-
VIDED HEREIN ARE BUYER’S SOLE AND EXCLUSIVE REMEDIES.
NEITHER KEITHLEY INSTRUMENTS, INC. NOR ANY OF ITS EMPLOYEES SHALL BE LIABLE FOR ANY DIRECT,
INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF ITS
INSTRUMENTS AND SOFTWARE EVEN IF KEITHLEY INSTRUMENTS, INC., HAS BEEN ADVISED IN ADVANCE
OF THE POSSIBILITY OF SUCH DAMAGES. SUCH EXCLUDED DAMAGES SHALL INCLUDE, BUT ARE NOT LIM-
ITED TO: COSTS OF REMOVAL AND INSTALLATION, LOSSES SUSTAINED AS THE RESULT OF INJURY TO ANY
PERSON, OR DAMAGE TO PROPERTY.
FRANCE: Keithley Instruments Sari B.P. 60.3, alICe des Garays 91122 Palaiseau C&x * 01 64 53 20 20 * Fax: 01 60 I 1 77 26
l
GERMANY: Keithlev Instruments GmbH Lundsberger Strwe 65 D-821 10 Germering * 089/84 93 07-40 - Fax: 089/84 93 07-34
l
GREAT BRITAIN: Keith& Instruments Ltd The Minster l 58 Portman Road * Reading, Berkshire RG30 IEA * 01 IS-9 57 56 66 * Fax: 01 IS-9 59 64 69
INDIA: Keithley Instruments GmbH Flat 28. WILOCRISSA l 14. Rest House Crescent * Bangalore S60001 l 91-EO-509-1320121 -Fax: 91-80-509-1322
ITALY Keithley Instruments s.r.1. Viale S. Gimignano. 38 * 20146 Milano l 02/48 30 30 08 * Rx: 02/48 30 22 74
NETHERLANDS: Keithley Instruments B.V. Postbus 559 4200AN Gorinchem * 0183-635333 *Fax: 0183-630821
l
TAIWAN: Keithley Instruments Taiwan 1 FI. 85 PO Ai Street * Hsinchu, Taiwan, R.O.C. - 886-3572-9077 * Fax: 886-3572-903
1 o/99
Model 220 Programmable Current Source
Model 230 Programmable Current Source
Programming Manual
Display: DO Source
Dl Limit R7 1mA (220)
D2 Dwell Time R8 1OmS (220)
D3 Memory Location R9 lOOmA (220)
Function: Fo Standby Trigger: TO Start On Talk
Fl Operate Tl Stop On Talk
Start On GET
Prefix: GO Location With Prefix
Stop On GET
(Data Format) Gl Location Without Prefix
T4 StartOnX
G2 Buffer Address With Prefix
T5 Stop On X
G3 Buffer Address Without Prefix
T6 Start On External Trigger
G4 Full Buffer With Prefix
3-7 Stop On External Trigger
G5 Full Buffer Without Prefix
Terminator: YIASCII) Any ASCII except capitals, numbers, + - /,.e
EOI: KO Send EOI
YILF) CR LF
Kl Send No EOI
YfCR) LF CR
SRQ: M(O-31) Disabled: IDDC or IDDCO: Over Limit: End of Y(DEL) None
Buffer;‘End of Dwell Time; No Remote; Input
Inputs: Current Source (220); Current Limit (230)
Port Change
V Vottage Limit (220); Voltage Source (230)
Program: PO Single W Dwell Time
Pl Continuous B Buffer Address
P2 Step Memory Location
The following safety precautions should be observed before using Users of this product must bc protcctcd from electric shock at all
this product and any associated instrumentation. Although some in- times. The responsible body must ensure that users arc prevented
struments and accessories would normally be used with non-haz- access and/or insulated from every connection point. In some cases,
ardous voltages, there are situations where hazardous conditions connections must be exposed to potential human contact. Product
may be present. users in these circumstances must bc trained to protect thcmsclves
from the risk of electric shock. If the circuit is capable ofopcrating
This product is intended for use by qualified personnel who recog- at or above 1000 volts. no conductive part of the circuit may be
nize shock hazards and are familiar with the safety precautions re- exposed.
quired to avoid possible injury. Read the operating information
carefully before using the product. As described in the Intcmational Electrotechnical Commission
(IEC) Standard IEC 664, digital multimctcr measuring circuits
The types of product users are:
(e.g., Keithley Models I75A, 199,2000,2001, 2002. and 2010) arc
Responsible body is the individual or group responsible for the use Installation Category II. All other instruments’ signal terminals arc
and maintenance of equipment, for ensuring that the equipment is Installation Category I and must not bc connected to mains.
operated within its specifications and operating limits, and for en-
suring that operators are adequately trained. Do not connect switching cards directly to unlimited power circuits.
They are intended to bc used with impedance limited sources.
Operators use the product for its intended function. They must be NEVER connect switching cards directly to AC mains. When con-
trained in electrical safety procedures and proper use of the instru- necting sources to switching cards, install protective devices to lim-
ment. They must be protected from electric shock and contact with it fault current and voltage to the card.
hazardous live circuits.
Before operating an instrument, make sure the line cord is conncct-
Maintenance personnel perform routine procedures on the product ed to a properly grounded power receptacle. Inspect the connecting
to keep it operating, for example, setting the line voltage or replac- cables, test leads, and jumpers for possible wear. cracks, or breaks
ing consumable materials. Maintenance procedures are described in before each use.
the manual. The procedures explicitly state if the operator may per-
form them. Otherwise, they should be performed only by service For maximum safety, do not touch the product, test cables. or any
personnel. other instruments while power is applied to the circuit under test.
ALWAYS remove power from the cntirc test system and discharge
Service personnel are trained to work on live circuits, and perform any capacitors before: connecting or disconnecting cables or jump-
safe installations and repairs of products. Only properly trained ser- ers, installing or removing switching cards, or making internal
vice personnel may perform installation and service procedures. changes, such as installing or removing jumpers.
Exercise extreme caution when a shock hazard is present. Lethal Do not touch any object that could provide a current path to the
voltage may be present on cable connectorjacks or test fixtures. The common side of the circuit under test or power line (earth) ground.
American National Standards Institute (ANSI) states that a shock Always make measurements with dry hands while standing on a
hazard exists when voltage levels greater than 30V RMS, 42.4V dry, insulated surface capable of withstanding the voltage being
peak, or 60VDC are present. A good safety practice is to expect measured.
that hazardous voltage is present in any unknown circuit before
measuring.
The instrument and accessories must be used in accordance with its The WARNING heading in a manual explains dangers that might
specifications and operating instructions or the safety of the equip- result in personal injury or death. Always read the associated infor-
ment may be impaired. mation very carefully before performing the indicated procedure.
Do not exceed the maximum signal levels of the instruments and ac- The CAUTION heading in a manual explains hazards that could
cessories, as defined in the specifications and operating informa- damage the instrument. Such damage may invalidate the warranty.
tion, and as shown on the instrument or test fixture panels, or
switching card. Instrumentation and accessories shall not bc conncctcd to humans.
When fuses are used in a product, replace with same type and rating Before performing any maintenance, disconnect the line cord and
for continued protection against fire hazard. all test cables.
Rev. IO/99
TABLE OF CONTENTS
SECTION 4 - OPERATION
4.1 Introduction ................................................................................................................................................................................................... 4-l
4.2 General Bus Commands.. ............................................................................................................................................................................. 4-l
4.2.1 REN (Remote Enable) .......................................................................................................................................................................... 4-l
4.2.2 IFC (Interface Clear). ............................................................................................................................................................................. 4-l
4.2.3 LLO (Local Lockout). ............................................................................................................................................................................. 4-2
4.2.4 GTL (Go To Local). ................................................................................................................................................................................ 4-2
4.2.5 DCL (Device Clear). .............................................................................................................................................................................. 4-2
4.2.6 SDC (Selective Device Clear). .............................................................................................................................................................. 4-3
4.2.7 GET (Group Execute Trigger) ............................................................................................................................................................... 4-3
4.2.8 Serial Polling (SPE, SPD) ..................................................................................................................................................................... 4-3
4.3 Device-Dependent Command Programming ................................................................................................................................................ 4-4
4.3.1 Execute (X) ........................................................................................................................................................................................... 4-6
4.3.2 Display Mode (D) .................................................................................................................................................................................. 4-6
4.3.3 Inputs (I, V, W, L, B). .............................................................................................................................................................................. 4-6
4.3.4 I/O Port (0) ........................................................................................................................................................................................... 4-8
4.3.5 Function (F). .......................................................................................................................................................................................... 4-8
4.3.6 Data Format (G). ................................................................................................................................................................................... 4-8
4.3.7 EOI Programming (K) ........................................................................................................................................................................... 4-10
TABLE OF CONTENTS (CONT.)
4.3.8 SRQ Mode (M) and Status Byte Format.. ............................................................................................................................................. 4-10
4.3.9 Program Mode (P) ................................................................................................................................................................................ 4-13
4.3.10 Range (R) ............................................................................................................................................................................................. 4-13
4.3.11 Trigger Mode (T) ................................................................................................................................................................................... 4-14
4.3.12 Programmable Terminator (Y). .............................................................................................................................................................. 4-15
4.3.13 Status Word (U) .................................................................................................................................................................................... 4-15
4.3.14 Digital Self-Test (J). ............................................................................................................................................................................... 4-17
4.4 Front Panel Error Messages ......................................................................................................................................................................... 4-17
4.4.1 IDDC Error.. .......................................................................................................................................................................................... 4-18
4.4.2 IDDCO Error ......................................................................................................................................................................................... 4-18
4.4.3 No Remote Error.. ................................................................................................................................................................................. 4-18
4.5 Waveform Programs ...................................................................................................................................................................................... 4-18
4.5.1 Sine Wave Approximation ..................................................................................................................................................................... 4-18
4.5.2 Ramp Simulation.. ................................................................................................................................................................................. 4-19
ii
LIST OF TABLES
LIST OF FIGURES
iii/iv
SECTION 1
GENERAL INFORMATION
1.1 INTRODUCTION may be found on an addendum included with this manual.
Be sure to review these changes before attempting to pro-
The Model 220 programmable current source, and the gram the instrument.
Model 230 programmable voltage source are each supplied
with a standard IEEE-488 interface. This interface adds an 1.5 SAFETY SYMBOLS AND TERMS
extra measure of versatility by allowing the transmission of
data and commands over the IEEE-488 bus. The built-in The following safety symbols and terms are used in this
IEEE interface provides all the logic necessary to interface manual and may be found on the Model 220 and 230:
the Models 220 and 230 to the bus using standard
IEEE-488-1978 protocol. Additionally, the interface board The symbol Q’ on the instrument indicates that the
incorporates a separate digital I/O port that may be used to user should refer to the operating instructions.
interface the Models 220 and 230 to other digital instrumen-
tation. The symbol on the instrument indicates that a
potential of 1OOOV or more may be present on the
1.2 MODEL 220 AND 230 IEEE INTERFACE FEATURES terminal(s). Standard safety precautions should be observ-
ed when such dangerous voltages are encountered.
Important IEEE-488 interface features include:
1. IEEE-4881978 Standard. The Model 220 or 230 com- information associated with the WARNING heading ex-
municates with other instrumentation using the same plains dangers that could result in personal injury or death.
IEEE488-1978 standards.
2. Standard IEEE Connector. A standard IEEE-488 connec- Information following the CAUTION heading explains
tor is available on the rear panel of the instrument for hazards that could damage the instrument.
easy connection to the IEEE bus.
3. Simple Primary Address Selection. The primary address 1.6 USING THE MODEL 220/230 PROGRAMMING
of the Model 220 or 230 may be easily changed by using MANUAL
the five address switches on the rear panel of the instru-
ment. This manual contains all the information necessary to con-
4. Digital I/O port. The interface also includes a digital I/O nect the Model 220 or 230 to the IEEE488 bus and program
port which has separate 4-bit input and output connec- the instrument from a separate bus controller. Not included
tions. Port status may be read and controlled through in this manual is information concerning front panel opera-
commands given over the IEEE bus. tion, servicing, or maintenance of the instrument {including
5. Programming Versatility. All Model 220/230 operation is the interface board itself). For those aspects, refer to the
supported by IEEE programming. In addition, numerous Model 220 or 230 Instruction Manual.
other IEEE commands add operating features not avail-
able from the front panel. This programming manual is divided into the following
sections:
1.3 WARRANTY INFORMATION 1. Section 2 contains a general description of the IEEE-488
bus and its commands.
Warranty information may be found inside the front cover of 2. information necessary to connect the instrument to the
this manual. Should it become necessary to exercise the bus and set the primary address is contained in Section 3.
warranty, contact your nearest Keithley representative or Also, digital I/O port information can be found in this
the factory to determine the proper course of action. section.
Keithley Instruments, Inc. maintains service facilities in the 3. The bulk of the programming information may be found
United States, United Kingdom, and throughout Europe. in Section 4. General bus commands as well as com-
Addresses for these facilities may be found inside the front mands unique to the Models 220 and 230 are covered in
cover of this manual. Information concerning the applica- detail.
tion, operation, or service of your instrument may be 4. Section 5 contains IEEE command flow charts, which
directed to the applications engineer at any of these could be helpful in some applications.
locations.
1.7 IEEE SPECIFICATIONS
1.4 MANUAL ADDENDA
A complete list of IEEE specifications is presented immedi-
Information concerning improvements or changes to the ately preceding this section.
instrument which occur after the printing of this manual
l-1/1-2
SECTION 2
AN OVERVIEW OF THE IEEE-488 BUS
2.1 INTRODUCTDON Several devices may be commanded to listen at once, but
only one device may be a talker at any given time. Other-
The IEEE-488 bus is an instrumentation data bus adopted by wise, communications would be scrambled much like an
the IEEE WWitute of Electrical and Electronic Engineers) in individual’s trying to pick out a single conversation out of a
1975 and given the IEEE488 designation. The most recent large crowd.
revision of bus standards was made in 1978; hence the com-
plete description for current bus standards is the Before a device can talk or listen, it must be appropriately
IEEE-488-1978 designation. addressed. Devices are selected on the basis of their primary
address; the addressed device is sent a talk or listen com-
This section gives a brief description of the general bus mand derived from its primary address. Normally, each
structure along with an outline of bus commands. The infor- device on the bus has a unique primary address so that each
mation presented here is not intended to be an in-depth may be addressed individually.
description of what is truly a very complex set of standards.
More complete information on the IEEE-488 bus, which is Once the device is addressed to talk or listen, appropriate
also frequently referred to as the GPIB (General Purpose bus transactions are set to take place. For example, if an
Interface Bus), is available from the IEEE and a variety of instrument is addressed to talk, it will usually place its data
other sources. on the bus one byte at a time. The listening device will then
read this information, and the appropriate software can then
2.2 BUS DESCRIPTION be used to channel the information to the desired location.
The IEEE-488 bus was designed as a parallel data transfer 2.3 IEEE-488 BUS LINES
medium to optimize data transfer without using an exces-
sive number of bus lines. In keeping with this goal, the bus The signal lines on the IEEE-488 bus are grouped into three
has only eight data lines that are used for both data and general categories. The data lines handle bus information,
some commands. Five bus management lines and three while the handshake and bus management lines ensure that
handshake lines round out the complement of signal lines. proper data transfer and bus operation takes place. Each of
Since the bus is of parallel design, all devices connected to the bus lines is active low so that approximately zero volts is
the bus have the same information available simultaneously. a logic one. The following paragraphs describe the purpose
Exactly what is done with the information by each device of these lines, which are shown in Figure 2-l.
depends on many factors, including device capabilities.
2.3.1 Bus Management Lines
A typical bus configuration for controlled operation is
shown in Figure 2-1. The typical system will have one con- The bus management group is made up of five signal-lines
troller and one or more instruments to which commands are that help ensure an orderly transfer of data. These lines are
given and, in most cases, from which data is received. used to send the uniline commands described in paragraph
Generally, there are three categories that describe device 2.4.
operation. These designations include: controller; talker:
listener. 1. ATN (Attention)-The ATN line is one of the more impor-
tant management lines. The state of the ATN line deter-
The controller does what its name implies: it controls other mines whether controller information on the data bus is to
devices on the bus. A talker sends data, while a listener be considered data or a multiline command as described
receives data. Depending on the instrument, a particular in paragraph 2.4.
device may be a talker only, a listener only, or both a talker 2. IFC (Interface Clear)-Setting the IFC line true (low)
and a listener. causes the bus to go to a known state by sending the IFC
command.
Any given system can have only one controller (control may 3. REN (Remote Enable)-Setting the REN line low sends
be passed to an appropriate device through a special com- the REN command. This sets up instruments on the bus
mand), but any number of talkers or listeners may be pre- for remote operation.
sent up to the hardware constraints of the bus. Generally, 4. EOI (End Or Identify)-The EOI line is used to send the
the bus is limited to 15 devices, but this number may be EOI command that usually terminates a multi-byte
reduced if higher than normal data transfer rates are transfer sequence.
required or if longer than normal cables are used. 5. SRQ (Service Request)-The SRQ line is set low by a
device when it requires service from the controller.
2-1
TO OTHER DEVICES
The complete handshake sequence for one data byte is
shown in Figure 2-2. Once data is on the bus, the source
checks to see that NRFD is high, indicating that all devices
on the bus are ready for data. At the same time NDAC
should be low from the previous byte transfer. If these con-
ditions are not met, the source must then wait until the
TALK.LISTEN.
NRFD and NDAC lines have the correct status. If the source
I AN0 dt5NTR0~
(COMPUTER) E is a controller, NRFD and NDAC must remain stable for at
DATA BUS least 100ns after ATN is set low. Because of the possibility
)
of bus hang up, some controllers have time-out routines to
l 4
display error messages if the handshake sequence stops for
DEVICE 2 any reason.
ABLE TO lllll
TALK AND E Once the NRFD and NDAC lines are properly set, the source
sets the DAV line low, indicating that data on the bus is now
DATA BYTE valid. The NRFD line then goes low; the NDAC line goes
TRANSFER high once all devices on the bus have accepted the data.
CONTROL
-- Each device will release the NDAC line at its own rate, but
the NDAC line will not go high until the slowest device has
I DEVICE 3
accepted the data byte.
After the NDAC line goes high, the source then sets the
DAV line high to indicate that the data on the bus is no
GENERAL
INTERFACE
longer valid. At this point, the NDAC line returns to its low
MANAGEMENT state. Finally, the NFRD line is released by each of the
devices at their own rates, until the NFRD line finally goes
high when the slowest device is ready, and the bus is set to
DEVICE 4 repeat the sequence with the next data byte.
ONLY AELti
TO TALK
The sequence just described is used to transfer both data
I and multiline commands. The state of the ATN line deter-
mines whether the data bus contains data or commands as
described in paragraph 2.4.
1 I =E) BUS MANAGEMENT The IEEE-488 bus uses the eight data lines that allow data to
be transmitted and received in a bit-parallel, byte-serial man-
EOI 1 ner. These eight lines use the convention DIOI through
1.220/230
D108 instead of the more common DO through D7 binary
Figure 2-1. IEEE Bus Configuration terminology, The data lines are bidirectional and, as with the
remaining bus signal lines, low is true.
The bus uses three handshake lines that operate in an inter- OAV ---
locked sequence. This method ensures reliable data transfer SOURCE
VALID
regardless of the transfer rate. Generally, data transfer will
occur at a rate determined by the slowest active device on I
NRFO
the bus. I I
I ACCEPTOR
I
One of the handshake lines is controlled by the data source,
while the remaining two lines are controlled by accepting
devices. The three bus handshake lines are: NoAC / ’ j/j ’ ACCEPTOR
2-2
2.4 BUS COMMANDS 2. DCL (Device Clear)-After a DCL is sent, instrumentation
equipped to implement the command will revert to a
While the hardware aspects of bus is essential, the interface known state. Usually, instruments return to their power-
would be essentially worthless without appropriate com- up conditions.
mands to control communications between the various 3. SPE (Serial Poll Enable)-The SPE command is the first
instruments on the bus. This section briefly describes the step in the serial polling sequence, which is used to
purpose of the bus commands, which are grouped into the determine which instrument has requested service with
following three general catagories: the SRQ command.
1. Uniline commands: Sent by setting the associated bus 4. SPD (Serial Poll Disable)-The SPD command is sent by
line low. the controller to remove all instrumentation on the bus
2. Multiline commands: General bus commands which are from the serial poll mode.
sent over the data lines with the ATN line low.
3. Device-dependent commands: Special commands that 2.4.3 Addressed Commands
depend on device configuration; sent over the data lines
with ATN high. Addressed commands are multiline commands that must be
preceded by a listen command derived from the device’s
These commands are summarized in Table 2-l. primary address before the instrument will respond. Only
the addressed device will respond to each of these
2.4.1 Uniline Commands commands:
1. SDC (Selective Device Clear)-The SDC command per-
Uniline commands are sent by setting the associated bus forms essentially the same function as the DCL com-
line low. The ATN, IFC, and REN commands are asserted mand except that only the addressed device will respond.
only by the system controller. The SRQ command is sent by Instruments usually return to their default conditions
an external device. The EOI command may be sent by either when the SDC command is sent.
the controller or an’external device depending on the direc- 2. GTL(Go To Local)-The GTL command is used to remove
tion of data transfer. The following is a brief description of instruments from the remote mode of operation. Also,
each command. front panel control operation will usually be restored if
1. REN (Remote Enable)-When the controller sends the the LLO command was previously sent.
REN command,the instrument will be set up for remote 3. GET (Group Execute Trigger)-The GET command is used
operation. Generally, the REN command should be sent to trigger devices to perform a specific action that
before attempting to program instruments over the bus. depends on device configuration. Although GET is
2. EOI (End Or Identify)-The EOI command is used to considered to be an addressed command, many devices
positively identify the last byte in a multi-byte transfer respond to GET without being addressed.
sequence. This allows variable length data words to be
transmitted easily. 2.4.4 Unaddressed Commands
3. IFC (Interface Clear)-The IFC command is sent to clear
the bus and set devices to a known state. Although The two unaddressed commands are used by the controller
device configurations differ, the IFC command usually to remove all talkers and listeners from the bus simulta-
places instruments in the talk and listen idle states. neously. ATN is low when these multiline commands are
4. ATN (Attention)-The controller sends ATN while asserted.
transmitting addresses or multiline commands. Device- 1. UNL (Unlistenj-All listeners are removed from the bus at
dependent commands are sent with the ATN line high once when the UNL command is placed on the bus.
(false). 2. UNT (Untalkj-The controller sends the UNT command to
5. SRQ (Service Request)-The SRQ command is asserted clear the bus of any talkers.
by an external device when it requires service from the
controller. If more than one device is present, a serial 2.4.5 Device-Dependent Commands
polling sequence, as described in Section 4, must be us-
ed to determine which device has requested service. The meaning of the device-dependent commands is deter-
mined by instrument configuration. Generally, these com-
2.4.2 Universal Commands mands are sent as one or more ASCII characters that tell the
device to perform a specific function. For example, FO is
Universal commands are multiline commands that require sent to the Model 220 or 230 to place the instrument in the
no addressing. All instrumentation equipped to implement standby mode. For complete information on using these
the command will do so simultaneously when the command commands with the Model 220 or 230, refer to Section 4.
is transmitted over the bus. As with all multiline commands, The IEEE-488 bus treats device-dependent commands as
the universal commands are sent over the data lines with data in that ATN is high (false) when the commands are
ATN low. transmitted.
1. LLO (Local Lockout)-The LLO command is used to lock
out front panel controls on devices so equipped.
2-3
Table 2-1. IEEE488 Bus Command Summary
24
ka”
2-5
2.6.1 Addressed Command Sequence Note that both the ATN and LLO commands are on the bus
simultaneously. Also, addressing is not necessary.
Before a device will respond to one of these commands, it
must receive a LAG command derived from its primary 2.6.3 Device-Dependent Command Sequence
address. Table 2-3 shows a typical sequence for the SDC
command. The LAG command assumes that the instrument Device-dependent commands are transmitted with ATN
is set at a primary address of 12. high. However, the device must be addressed to listen first
before the commands are transmitted. Table 24 shows the
Note that an UNL command is transmitted before the LAG, sequence for the following command:
SDC sequence. This is generally done to remove all other FOX
listeners from the bus first so that only the addressed device This command, which sets the Model 220 or 230 to the
responds. standby mode, is described in detail in Section 4.
r
1 Step 1 Command 1 ATN State Data Bus
ASCII Hex Decimal
11 1g pi&w;
63
44
70
48
88
*Assumes primary address= 12.
2-6
SECTION 3
SYSTEM CONFIGURATION
3.1 INTRODUCTION The system becomes more complex in Figure 3-l(b), where
additional instrumentation is added. Depending on pro-
There are two operating aspects to almost any digital inter- gramming, all data may be routed through the controller, or
face. The IEEE488 standard is no exception to this rule. Not it may be transmitted directly from one instrument to
only must the hardware meet certain standards, but all another.
devices, including the controller, must have appropriate
software. This section deals with important hardware and For very complex applications, a much larger computer can
software aspects of bus operation. Also included is informa- be used. Tape drives or disks can then be used to store data.
tion pertaining to the Model 220/230 digital I/O port.
3.2.2 Bus Connections
3.2 HARDWARE CONSIDERATIONS
The Model 220 or 230 is connected to the bus through an
Before the Model 220 or 230 can be used .with the IEEE488 IEEE488 connector which is shown in Figure 3-2. This con-
bus, the instrument must be connected to the bus with a nector is designed to be stacked to allow a number of
suitable connector. Also, the primary address must be pro- parallel connections on one instrument.
perly selected as described in this section.
f \
3.2.1 Typical Systems
S-220/230
NOTE
(Al SIMPLE SYSTEM
To avoid possible mechanical damage, it is
CONTROLLER recommended that no more than three connec-
tors be stacked on any one instrument. Other-
wise, the resulting strain may cause internal
damage.
3-1
Table 3-1. IEEE Contact Designations
Instrument Instrument
Contact IEEE-488
Number Designation Type
1 DlOl Data
2 D102 Data
3 D103 Data
4 0104 Data
5 EOI (24)* Management
6 DAV Handshake
Figure 3-3. IEEE-488 Connections 7 NRFD Handshake
8 NDAC Handshake
9 IFC Management
10 SRQ Management
1 01 11 ATN Management
Al 12 SHIELD** Ground
A2
A3 13 Dl05 Data
A4
a
14 D106 Data
15 D107 Data
16 D108 Data
DIGITAL l/O
17 REN (24)* Management
18 Gnd, (6)* Ground
Figure 3-4. Rear Panel of Model 220 or 230 Showing 19 Gnd, (7)* Ground
IEEE Connectors and Switches 20 Gnd, (8)* Ground
21 Gnd, (9)* Ground
NOTE 22 Gnd, (lo)* Ground
The IEEE-488 bus is limited to a maximum of 23 Gnd, (1 l)* Ground
15 devices, including the controller. Also, the 24 Gnd, LOGIC Ground
maximum cable length is 20 meters. Failure to l Numbers in parentheses refer to signal ground return of referenced
observe these limits will probably result in contact number. EOI and REN signal lines return on contact 24.
erratic bus operation. ** The cable shield is normally connected to contact 12. This shield
should be connected to ground only at the controller end to avoid
Custom cables may be constructed using the information in ground loop problems.
Table 3-l and Figure 3-5. Table 3-l lists the contact assign-
ments for the various bus lines, while Figure 3-5 shows
contact designations. Contacts 18 through 24 are return CONTACT 24
CONTACT 13
lines for the indicated signal lines, and the cable shield is
connected to contact 12. Each ground line is connected to
digital common in the Model 220 or 230, but contact 12
within the instrument is left unconnected to avoid ground
loops.
NOTE
The connector supplied with the Hewlett-
Packard 85 HP-B interface will require the use
of the Keithley Model 7010 IEEE cable adapter.
The HP-B cable connector has an unusually CONTACT 1 CONTACT 12
large shoulder that prevents the cable
connector from seating properly on the IEEE Figure 3-5. Contact Assignments
connector on the rear panel of the Model 220
or 230. Connectors on other cables, including
those on the Keithley Model 7008, should seat
properly without this adapter.
3-2
A typical signal line bus driver is shown in Figure 3-6. With Table 3-2. Primary Address Switch Positions
T
the configuration shown, the driver has bidirectional
capability. When the I/O control line is high, the line is con- Primary Address Switch Positions
figured as an output line. When the control line is low, the (Decimal Value) A5 A4
- A3 A2 Al
driver is set up for input operation. Note that not all signal
lines have bidirectional capability. Some lines, such as ATN,
0 0 0 0
-T 0
1 0 0 0 0 1
will always be configured as an ouput line in the controller
0 0 0 1 0
and as an input line for all other devices on the bus.
z 0 0 0 1 1
4 0 0 1 0 0
5 0 0 1 0 1
DATA
7 --o 51017 6 0 0 1 1 0
LINE ’
OUTPUT 7 0 0 1
0 1 :, 0 :,
I/O : 0 1 0 0 1
0
CONTROL > 10 0 1 0 1 0
11 0 1 0 1 1
12’ 0 1 1 0 0
13”” 0 1 1 0 1
14 0 1 1 1 0
%?20/230 15 0 1 1 1 1
18 1 0 0 0 0
Figure 3-6. Typical IEEE-488 Bus Driver (One of 16)
17 1 0 0 1
18 1 : 0 1 0
3.2.3 Primary Address Selection
19 1 0 0 1 1
20 1 0 1 0 0
The Model 220 or 230 must receive a listen command
21 1 0 1 0 1
before it will respond to addressed commands. Similarly,
22 1 0 1 1 0
the instrument must receive a talk command before it will
23 1 0 1
transmit its data string, status word, or status byte. These
24 1 1 :, il 0
listen and talk commands are derived from the instrument’s
25 1 1 0
primary address. The Model 220 is shipped from the factory
26 1 1 ii 1 :,
with a primary address of 12. The factory set value for the
1 1 0 1
primary address of the Model 230 is 13. The primary address
;; 1 1 1 0 :,
may be set to any value between 0 and 30 as long as address
29 1 1 1 0 1
conflicts with other bus instruments are avoided. This may
be done by placing the primary address switches, which are
30 1 - 1 - 1 - 1 - 0 J
shown in Figure 3-7, in the desired positions. Note that the *Model 220 factory set value.
primary address of the instrument must agree with the ad- **Model 230 factory set value.
dress specified in the controller’s programming language. NOTE: Primary Address 31 (11111) is reserved for UNL and
UNT commands and should not be used.
NOTE
The primary address switch positions are read 1 0
only upon power-up. If the address is changed,
the Model 220 or 230 must be turned off and
then powered up again before the new address
can be used. The primary address is shown on
the display for a short period after power-up as
follows: IE nn, where nn represents the primary
address value.
Figure 3-7 shows the correct positions for the Model 220
factory set value of 12; if a different address is required, the
primary address may be changed as outlined in Table 3-2.
NOTE
If other instrumentation is also connected to
the bus, be sure that each device has a different
l/230
primary address. If this precaution is not
Figure 3-7. Primary Address Switches (Address = 12
observed, erratic bus operation will probably
Shown)
result.
3-3
The primary address switches are binary weighted; Al is CAUTION
the least significant bit, while A5 the most significant bit. Pins 11 and 12 of the digital I/O port are
For example, the binary value for the Model 220 factory connected to IEEE common. Pins 1 and 2
set primary address of 12 is 01100. Use the tip of a pen or of the port are connected to the digital +5V
pencil to operate the switches. power supply. These connections are for
reference only and must not be used to
NOTE power external components.
Instruments should not be operated with a pri-
mary address of 31 even though it is possible
to set the Model 220 or 230 address switches
PIN #l
to those positions (11111). This address is / PIN it6
\
reserved for the UNT and UNL commands;
erratic operation may result if primary address
31 is used.
The output bit conditions may be controlled with an I/O 3.3 SOFTWARE CONSIDERATIONS
port command. The status of both input and output lines
may be checked with the I/O status command. The instru- The most sophisticated computer in the world would be
ment can be programmed to generate an SRQ if the sta- useless without the necessary software. This basic re-
tus of any input line changes. These aspects of Model 220 quirement is also true of the IEEE-488 bus, which requires
and 230 operation are covered in detail in Section 4. the use of handler routines as described in this section.
Each output line can drive one TTL load, and each input 3.3.1 Controller Interface Routines
line represents one TTL load. The signals on these lines
must conform to standard TTL logic levels. The input lines Before a controller can be used with the IEEE-488 inter-
are pulled up to +5V through 2.2kQ resistors. face, the user must make certain that appropriate handler
software is present within the controller. With the HP-85
Table 3-3. Digital I/O Port Pin Assignments computer, for example, the HP-85 interface card must be
used with an additional I/O ROM, which contains the nec-
Pin Number Connection essary handler software.
1 +5V (Use for reference only)
Other small computers that can be used as controllers
2 +5V (Use for reference only)
have limited IEEE command capability. The PETICBM
3 Input (Bit 3)**
computers, for example, are incapable of sending multiline
4 Input (Bit 2)
commands from BASIC, although these commands can
5 Input (Bit 1)
be sent through machine-language routines. The capabili-
6 Input (Bit 0)*
ties of other small computers depends on the particular
7 Output (Bit 0)*
interface being used. Often, little software “tricks” are
8 Output (Bit 1)
required to achieve the desired results.
9 Output (Bit 2)
10 Output (Bit 3)** From the preceding discussion, the message is clear:
11 IEEE Common make sure the proper software is being used with the
12 IEEE Common interface. Often, the user may incorrectly suspect that a
* Bit 0 = Least Significant Bit
hardware problem is causing fault, when it was the soft-
‘* Bit 3 = Most Significant Bit ware that was causing the problem all along.
3-4
3.3.2 HP-85 BASIC Statements bus contains a multiline command. This is indicated in the
table by ANDing the ATN mnemonic with the first com-
Many of the programming instructions covered in Section 4 mand on the bus. For example, ATN@GET means that ATN
use examples written in Hewlett-Packard Model 85 BASIC. and GET are sent simultaneously.
The HP-85 was chosen for these examples because it has a
large number of BASIC statements that control IEEE-488 Two commands not previously covered are MLA (My Listen
operation. This section covers those HP-85 BASIC state- Address) and MIA (My Talk Address). These are ordinary
ments that are essential to Model 220 and 230 operation. PCG (Primary Command Group) addresses sent, by the
HP-85 to facilitate bus operation in some situations. The
A complete list of HP-85 IEEE-488 BASIC statements is Model 220 or 230 will essentialfy ignore these commands,
shown in Table 34. All the statements in the table have one but other devices may require that MLA and MTA be
or three digit arguments that must be specified. The first present in the command sequence under certain cir-
digit is the HP85 interface select code, which is set to 7 at cumstances.
the factory. The last two digits of those statements that NOTE
require a three digit argument specfi the primary address. The HP-85 address is set to 21 at the factory.
Generally, only those commands that actually require an ad- Since each device on the bus must have a
dress to be sent over the bus require that the primary ad- unique primary address, do not set the Model
dress be specified in the BASIC statement. 220 or 230 to the controller’s address to avoid
possible conflicts.
Those statements in the table with three digit arguments
assume that the primary address of the device is set at 12.
Other primary addresses require that the last two digits be 3.3.3 Interface Function Codes
set to the corresponding value. For example, to send a GTL
command to device 22, the following BASIC statement The interface function codes are part of the IEEE-4881978
would be used: LOCAL 722. standards. These codes define an instrument’s ability to
support various interface functions and should not be con-
Some of the statements in the table have two forms; the ex- fused with programming commands found elsewhere in this
act configuration used depends on the desired command. manual.
For example, CLEAR 7 will cause a DCL to be sent, while
CLEAR 712 causes an SDC to be transmitted to device 12. Table 3-5 lists the codes for the Models 220 and 230. These
codes are also listed for convenience on the rear panel of the
The third column of Table 3-4 lists the mnemonics for the instrument immediately above the IEEE connector. The
command sequences. While most of these are covered else- numeric value following each one or two letter code defines
where, a couple of points should be noted. As described Model 220/230 capabilities as follows:
earlier, the ATN line is set low by the controller if the data
3-5
1. SH (Source Handshake Function)-The ability for the 3.3.4 Model 220/230 Interface Commands
Model 220/230 to initiate the transfer of message/data
on the data bus is provided by the SH function. Interface commands controlling Model 220 and 230 opera-
2. AH (Acceptor Handshake Function)-The ability for the tion are listed in Table 3-6. Not included in the table are
Model 220/230 to guarantee proper reception of device-dependent commands, which are covered in detail in
message/data on the data bus is provided by the AH Section 4.
function.
3. T (Talker Function)-The ability for the Model 220/230
to send device-dependent data over the bus (to other Table 3-6. IEEE Command Groups
devices) is provided by the T function. Model 220/230
talker capabilities exist only after the instrument has HANDSHAKE COMMAND GROUP
been addressed to talk. DAC = DATA ACCEPTED
4. L (Listener Function)-The ability for the Model 220/230 RFD=READY FOR DATA
to receive device-dependent data over the bus (from DAV = DATA VALID
other devices) is provided by the L function. Listener UNIVERSAL COMMAND GROUP
function capabilities of the Model 220 or 230 exist only ATN = ATTENTION
after it has been addressed to listen. DCL = DEVICE CLEAR
5. SR (Service Request Function)-The ability for the IFC = INTERFACE CLEAR
Model 220/230 to request service from the controller is LLO = LOCAL LOCKOUT
provided by the SR function. REN = REMOTE ENABLE
6. RL (Remote-Local Function)-The ability for the Model SPD = SERIAL POLL DISABLE
220/230 to be placed in the remote or local modes is SPE= SERIAL POLL ENABLE
provided by the RL function. ADDRESS COMMAND GROUP
7. PP (Parallel Poll Function)-The Model 220/230 does not LISTEN:LAG = LISTEN ADDRESS GROUP
have parallel polling capabilities. MLA = MY LISTEN ADDRESS
8. DC (Device Clear Function)-The ability for the Model UNL= UNLISTEN
220/230 to be cleared (initialized) is provided by the DC TALK: TAG=TALK ADDRESS GROUP
function. MTA = MY TALK ADDRESS
9. DT (Device Trigger Function)-The ability for the Model UNT= UNTALK
220/230 to have its basic operation started (begin pro- OTA= OTHER TALK ADDRESS
gram operation) is provided by the DT function. ADDRESSED COMMAND GROUP
10. C (Controller Function)-The Model 220/230 does not ACG = ADDRESSED COMMAND GROUP
have controller capabilities. GET=GROUP EXECUTE TRIGGER
11. TE (Extended Talker Capabilities)-The Model 220/230 GTL = GO TO LOCAL
does not have extended talker capabilities. SDC = SELECTIVE DEVICE CLEAR
STATUS COMMAND GROUP
12. LE (Extended Listener Capabilities)-The Model 220/230
does not have extended listener capabilities. RQS = REQUEST SERVICE
SRQ= SERIAL POLL REQUEST
STB = STATUS BYTE
Table 3-5. Model 220/230 Interface Function Codes END = EOI
4-l
To send the IFC command, the controller need only set the control operation may be restored by the GTL
IFC line true. command. To restore front panel control
operation of the Model 220/230, the controller
Programming Example-Before demonstrating the IFC must set the REN line false.
command, turn on the front panel REMOTE and TALK in-
dicator lights by entering the following statements into the Programming Example-if the instrument is not in the
HP-85 computer: remote and lockout modes, enter the following statements
‘REMOTE 712 (END LINE) into the HP-85 computer:
ENTER 712;AS (END LINE) REMOTE 712 (END LINE)
The front panel REMOTE and TALK indicators should now LOCAL LOCKOUT 7 (END LINE)
be on. The IFC command may now be sent by entering the Check to see that the REMOTE indicator is on and that the
following statement into the HP-85: front panel controls are locked out. The GTL command
ABORT10 7 (END LINE) sequence is automatically sent by the HP-85 with the
After the END LINE key is pressed, the TALK light will turn following statement:
off, indicating the Model 220 or 230 is in the talk idle state. LOCAL 712 (END LINE)
Note that the remote mode is not cancelled. Note that the REMOTE light on the front panel turns off, but
the front panel controls are still locked out.
4.2.3 LLO (Local Lockout)
Front panel control operation can be restored by setting the
The LLO command is sent by the controller to remove the REN line false with the following HP-85 statement:
Model 220 or 230 from the local operating mode. Once the LOCAL 7 (END LINE)
unit receives the LLO command, all its front panel controls
After executing this statement, the front panel controls will
{except POWER) will be inoperative.
again operate.
NOTE
NOTE
The REN bus line must be true before the in-
Setting REN false with the LOCAL 7 statement
strument will respond to an LLO command.
will also take the instrument out of the remote
mode.
To lock out the front panel controls of the Model 220 or
230, the controller must perform the following steps:
4.2.5 DCL (Device Clear)
1. Set ATN true.
2. Send the LLO command to the instrument. The DCL command may be used to clear the Model 220 or
230, setting it to a known state. Note that all devices on the
Programming Example-This sequence is automatically bus equipped to respond to a DCL will do so simultane-
performed by the HP-85 when the following statement ously. When the Model 220 or 230 receives a DCL com-
sequence is typed into the keyboard: mand, it will return to the default conditions listed in Table
REMOTE 712 (END LINE) 4-2.
LOCAL LOCKOUT 7 (END LINE)
After the END LINE key is pressed the second time, the NOTE
front panel controls are locked out. Note that no other Program memory will be cleared of all pre-
changes occur within the instrument; all front panel modes viously stored data when a DCL or SDC com-
remain as previously selected. Local control may be restored mand is received. Buffer and display location
by setting REN false with the following statement: pointers will be set to location one.
LOCAL 7 (END LINE)
To send a DCL command, the controller must perform the
4.2.4 GTL (Go To Local) following steps:
1. Set ATN true.
The GTL command is used to take the instrument out of the 2. Place the DCL command on the bus.
remote mode. To send the GTL command, the controller
must perform the following sequence: Programming Example-Using the front panel controls,
1. Set ATN true. enter current, voltage, and dwell time data into the first few
2. Address the Model 220 or 230 to listen. memory locations. Also, set the display to the dwell time
3. Place the GTL command on the bus. mode and place the instrument in the continuous program
NOTE mode; turn the output on with the OPERATE button. Now
enter the following statement into the HP-85:
The GTL command does not restore operation
of locked out Model 220 or 230 front panel con- REMOTE 712 (END LINE)
trols. With some instruments, however, local CLEAR 7 (END LINE)
4-2
When the END LINE key is pressed the second time, the in- 4.2.7 GET (Group Execute Trigger)
strument will return to the default conditions listed in Table
4-2. The SOURCE display and STEP lights should be on and The GET command is sent to the Model 220 or 230 to trig-
the OPERATE light should be off. Also, program memory ger the instrument. Using the GET command is only one of
will be cleared of any previously stored data. several methods that can be used to start or stop Model 220
or 230 program operation. More detailed information on all
Table 4-2. Default Values (Status On Power Up and trigger modes, including GET can be found in paragraph
After SDC or DCLI 4.3.
Mode Value Status To send the GET command over the bus, the controller
must perform the following sequence:
Display DO Source
Function Fo Standby 1. Set ATN true.
Data Format GO Location With Prefix 2. Address the Model 220 or 230 to listen.
Self Test* Jl Test Performed; Power Up 3. Place the GET command on the bus.
EOI KO Send EOI
Program Mode P2 Step GET can also be sent without addressing by omitting step 2.
Range RO Auto
Trigger T6 Start On External Programming Example-Type in the following statements
SRQ Mode MO Disabled into the HP-85 keyboard:
Terminator Y(LF) CR LF REMOTE 712 (END LINE)
CLEAR 712 (END LINE)
*Not affected by SDC or DCL; set to 1 after running
digital self test or upon power up. The instrument should return to the default values listed in
Table 4-2.
4.2.6 SDC (Selective Device Clear)
Place the instrument in the continuous program mode and
The SDC command performs the same functions as the start-on-GET trigger mode with the following statement:
DCL command except that only the addressed device
OUTPUT 712; “PlT2X” (END LINE)
responds. This command is useful for clearing only a
selected instrument instead of all instruments at once. The When the END LINE key is pressed, the CONTINUOUS pro-
Model 220 or 230 will return to the default conditions listed gram light on the front panel of the instrument will turn on.
inTable 4-2 when responding to an SDC command.
The instrument may be triggered to start with the following
NOTE statement:
The program memory will be cleared of all TRIGGER 712 (END LINE)
previously stored data when a DCL or SDC The front panel START/STOP light will turn on, indicating
command is received. Also, buffer and display the instrument has been triggered. To stop the instrument,
pointers will be set to location one. enter the following statements into the HP-85 keyboard:
OUTPUT 712; “T3X” (END LINE)
To transmit the SDC command, the controller must perform
TRIGGER 712 (END LINE)
the following steps:
When END LINE is pressed the second time, the front panel
1. Set ATN true. START/STOP light will go out, showing the instrument has
2. Address the Model 220 or 230 to listen.
received the trigger.
3. Place the SDC command on the bus.
NOTE
Programming Example-Enter voltage, current, and dwell
The Model 220/230 will also respond to GET
time data into the first few memory locations with the front
without addressing. This command is sent with
panel controls. Also set the display to the memory mode
the following HP-85 statement: TRIGGER 7.
and set the instrument to the single program mode. Enter
the following statements into the HP-85:
The preceding examples use device-dependent commands
REMOTE 712 (END LINE) to place the instrument in the appropriate trigger modes.
CLEAR 706 (END LINE) These commands are covered in detail in paragraph 4.3.
Note that the instrument did not respond to the SDC
because the command was sent with a primary address of 4.2.8 Serial Polling (SPE, SPDI
six. Now enter the following statement into the HP-85:
CLEAR 712 (END LINE) The serial polling sequence is used to obtain the Model 220
This time, the instrument returns to the default conditions or 230 status byte. Usually, the serial polling sequence is
listed in Table 4-2. Note that the program memory is cleared used to determine which of several devices has requested
of previously stored data. service over the SRQ line. However, the serial polling
4-3
sequence may be used at any time to obtain the status byte If an illegal command or command parameter is present
from the Model 220 or 230. For more information on status within a command string, the instrument will:
byte format, refer to paragraph 4.3.8. 1. Ignore the entire command string.
2. Display appropriate front panel error messages.
The serial polling sequence is conducted as follows: 3. Set certain bits in its status byte.
1. The controller sets the ATN line true. 4. Generate an SRQ if programmed to do so.
2. The SPE (Serial Poll Enable) command is placed on the These programming aspects are covered in paragraphs
bus by the controller. 4.3.8 and 4.4.
3. The Model 220 or 230 is addressed to talk.
. 4. The controller sets ATN false. HP-85 examples are included throughout this section to
5. The instrument then places its status byte on the bus to clarify programming.
be read by the controller.
6. The controller then sets the ATN line low and places SPD Before using a programming example, it is recommended
(Serial Poll Disable) on the bus to end the serial polling that the instrument be set to its default values by sending an
sequence. SDC over the bus. See paragraph 4.2.6 for information on
using the SDC command.
Steps 3 through 5 may be repeated for other instruments on
the bus by using the correct talk.address for each instru- NOTE
ment. ATN must be true when the talk address is transmit- Program memory will be cleared of previously
ted and false when the status byte is read. stored data when an SDC command is sent to
the instrument.
Programming .ExamplaThe HP-85 SPOLL statement
automatically performs the serial polling sequence. To If the HP-85 should become “hung up” at any point, opera-
demonstrate serial polling, momentarily power down the tion may be restored by holding the SHIFT key down and
Model 220 or 230 and enter the following statements into then pressing RESET on the keyboard.
the HP-85 keyboard:
REMOTE 712 (END LINE) In order to send a device-dependent command, the con-
S = SPOLL (712) (END LINE) troller must perform the following sequence:
DISP S (END LINE1 1, Set ATN true.
When END LINE is pressed the second time, the computer 2. Address the Model 220 or 230 to listen.
performs the serial polling sequence. When END LINE is 3. Set ATN false.
pressed the last time, the status byte value (0) is displayed 4. Send the command string one byte at a time.
on the CRT. The status byte has a value of 0 with this exam-
ple because no bits in the byte are set. Paragraph 4.3.8 Programming Example-Device-dependent commands are
covers the status byte format in detail. sent by the HP-85 using the following statement:
OUTPUT 712; A$
4.3 DEVICE-DEPENDENT COMMAND PROGRAM- AS in this case contains the ASCII characters that form the
MING command string.
4-4
Table 4-3. Device-Dependent Command Summary
4-6
DESIRED RESULT COMMAND VARIATIONS 40 CLEAR Clear CRT.
7.5mA current (Model 220) 17.5E-3; 1.0075; 50 DISP “COMMAND”; Prompt for command
1.75E-2; l.O75E-1 input.
6.3V voltage (Model 230) V6.3; V.63El 60 INPUT A$ Input command string.
27ms dwell time W27E-3; W2.7E-2; 70 OUTPUT 712;AS Send command string to
W.027 instrument.
Location pointer to #57 L57; L5.7El 80 S = SPOLL (7121 Conduct serial poll; read
Buffer pointer to #86 B86; B8.6El status byte.
90 IF BIT(S,5) = 0 Check for error conditions
NOTES: THEN 50
1. An IDDCO (Illegal Device-Dependent Command Option) 100 IF BIT IS,01 THEN Check for IDDC.
error will occur if the input command parameter is out- DISP “ILLEGAL
side the legal range. A front panel error message will in- COMMAND”
dicate this error; the instrument may also be programmed 110 “IF BIT (S,l) THEN Check for IDDCO.
to generate an SRQ if such an error occurs, as described DISP “ILLEGAL
in paragraph 4.3.8. COMMAND OPTION”
2. The Model 230 current limit may be set to only one of 120 GOT0 50 Repeat
three values: 130 END
IO = 2mA limit
I1 = 20mA limit After the program is entered, depress the HP-85 RUN key.
I2 = 100mA limit When the computer prompts for a command input, enter
3. A zero dwell time cannot be programmed into memory the desired command, including the command letter prefix;
location one. several commands may be grouped together in one input
4. Dwell time accuracy is guaranteed only if the IEEE bus is string. Be sure to terminate each command string with the
idle. execute (XI character. Programmed data may be observed
by using the front panel display. Remember that bus data is
Programming Example-Enter the following program into
stored in the memory slot indicated by the buffer address
,the HP-85:
pointer--not the location indicated by the display location
pointer, unless, of course, both pointers point to the same
PROGRAM COMMENTS
memory location.
10 DIM A$ [lo01 Dimension A$ for 100
characters NOTE
20 REMOTE 712 Set instrument up for Buffer pointer and location address pointer
remote operation. status can be read by using the appropriate
30 CLEAR 712 @ Return instrument to prefix mode as described in paragraph 4.3.6.
OUTPUT 712; “MlX” default conditions.
Enable SRQ on error.
Table 4-5. Input Command Summary
ll-
Mode 220 Current Soul rc e II Model IO Voltage Sour<
Command* Controls Allowable Command* Controls
Range Range
5
I f n.nnnnE + nn** Current Source O-101mAt V f n.nnnnE f nn** Voltage Source 0-101vt
Value, Amperes (50OfA steps) Value, Volts (5OpV steps)
Vn.nnE f nn Voltage Limit, l-105v In.nnEknn Current Limit, 0=2mA
Volts in 1V steps Amperes 1 = 20mA
2= 100mA
I
Wn.nnnE + nn Dwell Time, 0;3ms to 999.95 Wn.nnnE+ nn Dwell Time, 0;3ms to 999.9s
Seconds in lms steps Seconds in lms steps
Bn.nnE c nn IEEE Buffer 1 to 100 Bn.nnE k nn IEEE Buffer 1 to 100
Address Address
Ln.nnE + nn Display Location 1 to 100 Ln.nnEf nn Display Location 1 to 100
Pointer Pointer
NOTE: n = numeric digit
tAuto range limits shown.
*Commands may be entered in normal or scientific notation; scientific notation format shown.
**Least significant digit of mantissa must be 0 or 5.
4-7
4.3.4 I/O Port (01 When END LINE is pressed the second time, the front panel
OUTPUT indicator comes on.
The I/O port command controls the status of the four out-
put bits on the digital I/O port on the rear panel of the in- 4.3.6 Data Format (G)
strument. Information on I/O port pin assignments can be
found in Table 3-3. The I/O port command consists of the When addressed to talk, the instrument will send a data
ASCII “0” character followed by the decimal number that string containing information on programmed current,
sets the control bits as listed in Table 4-6. Upon power-up, voltage, dwell time, and memory or buffer locations.
or after a DCL or SDC, the four output lines will be set low. Through use of the data format command, the user has
control over the following aspects of the data string:
Table 4-6 I/O Port Command Parameters 1. Whether or not the instrument sends appropriate prefixes
imbedded in the data string.
Command lltpute Status 2. Whether the entire buffer or only one display location or
Parameter* Bit Bit 2 Bit 1 Bit 0 IEEE buffer location is transmitted.
0 0 0 0 0
1 0 0 0 1 Data format commands that affect Model 220 and 230
2 0 1 0 operation are:
3 : 0 1 GO Transmit display memory location with prefixes.
4 0 1 0 .:, Gl Transmit display memory location without prefixes.
5 0 1 0 1 G2 Transmit IEEE buffer address location with prefixes.
6 0 1 1 0 G3 Transmit IEEE buffer address location without prefixes.
7 0 1 1 1 G4 Transmit entire program memory with prefixes.
8 1 0 0 0 G5 Transmit entire program memory without prefixes.
9 1 0
10 1 : 1 ; The general format for each of these commands is shown in
11 1 0 1 1 Figure 4-l. The most significant digit of each data element is
12 1 1 0 0 forced so one digit always appears to the left of the decimal
13 1 1 0 1 point. Returned values for both Models 220 and 230 are
14 1 1 1 0 shown. Upon power-up, or after receiving a SDC or DCL,
15 1 1 1 1 the GO mode is enabled.
*Parameter must be preceded by ASCII letter “0”.
NOTES:
Programming Example-Enter the following statement 1. The data format commands affect the format of the I/O
sequence into the HP-85 computer: status and instrument status words. In the GO, G2, and
REMOTE 712 (END LINE) G4 modes, the word prefixes are sent. In the Gl, G3, and
OUTPUT 712; “015X” (END LINE) G5 modes, the prefixes are omitted.
When END LINE is pressed the second time, the four output 2. In the GO through G3 modes, EOI and programmed ter-
bits go high. minators will be sent (if so programmed) at the end ,of
each location or buffer address. In the G4 and G5 modes,
4.3.5 Function (FI EOI and programmed terminators will be sent only at the
end of the entire buffer transmission.
The function commands control the actual output of the 3. Transmission of the normal data string is superseded by
Model 220 or 230 source. These commands perform the the status word (U) command. The instrument will trans-
same operations as the front panel OPERATE button. The mit the status word instead of the normal data string
output of the Model 220 and 230 may be controlled by bus once each time the status command is given when ad-
commands as follows: dressed to talk in the normal manner.
FO Standby-The source output will be set to zero. (Model 4. The “N” (Normal) prefix on the current source (220) or
220 voltage limit <32V. Model 230 current voltage source (230) will change to “0” (Overlimit) if the
limit = 2mA). voltage limit (220) or current limit (230) is exceeded.
Fl Operate- The output will be programmed to the source 5. The entire program memory is transmitted in the G4 and
value in the present display memory location. G5 modes whether or not data is stored in every location.
Programming Example-Using the front panel OPERATE In order to obtain the data string from the instrument, the
button, turn the instrument output off and enter the follow- controller must perform the following bus sequence:
ing statements into the HP-85:
REMOTE 712 (END LINE) 1. Set ATN true.
OUTPUT 712; “FlX” (END LINE) 2. Address the Model 220 or 230 to talk.
4-8
Model 220 Current Source” Model 230 Voltage Source’
-. .- --
Current Source Voltage Limit Dwell Time Display Location Voltage Source Current Limit Dwell Time Display Locatior
NDCI i: n.nnnnE + n, V f n.nnOOE+ n, W + n.nnnnE +_n, L + n.nnOOE+ n NDCV & n.nnnnE f n, I + n.nnOOEf n, ‘W t n.nnnnE + n, L t n.nnOOE+ n
Presanm;nt Preti’xantis’saEGent
Current Source Voltage Limit Dwell Time Display Location Voltage Source Current Limit Dwell Time Display Locatior
* n.nnnnE f n, + n.nnOOE+ n, + n.nnnnE f’n, t n.nnOOE+ n + n.nnnnE f n, f n.nnOOE& n. + n.nnnnE t n, t n.nnOOE+ n
Current Source Voltage Limit Dwell Time Buffer Address Voltage Source Current Limit Dwell Time Buffer Address
NDCI f n.nnnE f n, V & n.nnOOE+ n, W t n.nnnnE f n, B t n.nnOOE+ n NDCV f n.nnnE f n, I + n.nnOOEf n, W t n.nnnnE t n, B t n.nnOOEt n
Current Source Voltage Limit Dwell Time Buffer Address Voltage Source Current Limit Dwell Time Buffer Address
+ n.nnnnE t n, f n.nnOOEt n. t n.nnnnE f n, t n.nnOOEt n f n.nnnnE + n, + n.nnOOEf n, t n.nnnnE t n, tn.nnOOEtn
Current Source Voltage Limit Dwell Time Buffer Address Voltage Source Current Limit Dwell Time Buffer Address
NDCI f n.nnnnE + n, V + n.nnOOEt n, W t n.nnnnE f n, Bt l.nnOOE+O, NDCV it n.nnnnE it n, I f n.nnOOEt n, W t n.nnnnE + n, Btl.nnOOE+O,
NDCI + n.nnnnE t n. V + n.nnOtlE t n, W t n.nnnnE i n, B t 2nnOOE t 0, NDCV + n.nnnnE it n, If n.nnCtOEt n, W t n.nnnnE f n, B t P.nnOOE+ 0,
V;n
-L----AnnOOEtn W t n.nnnnE
------A + n B, 3.nnOO&O~ YPI;\L+~n~n~~~ kamWk.n, Wmzm&a 832. wpPL+e
V + n.nnOOEt n. W + n.nnnnE t n, Btl.nnOOEt2 2 -- NDCV f n.nnnnE it. n, I f n.nnOOEt n, W + n.nnnnE t n, BtlnnOOEt2,
Voltage Limit Dwell Time Buffer Address Voltage Source Current Limit Dwell Time Buffer Address
f n.nnnnE + n. + n.nnOOE+ n, + n.nnnnE f n, + 1.nnOOE+ 0, + n.nnnnE f n, f n.nnOOEt n, t n.nnnnE f n. t 1 .nnOOE+ 0.
?rn.nnnnE f n. + n.nnOOE+ n, + n.nnnnE + n, t 2.nnOOEi- 0, f n.nnnnE f n, f n.nnOOE+ n. t n.nnnnE f n, t P.nnOOEt 0,
+ n.nnnnE f n, f n.nnOOE+s t n.nnnnE f n. t-----L
3.nnOOE+ 0 t n.nnnnE f L
---- f n.nnOOE+s t---n.nnnnE
- t--In k3s!@E_+ 9
;--
f n.nnnTiE> K T iiXii6UQ n, mn?iz%T 6 + l.nnOOE+2 + n.nnnnE f n, rn%%fi n, + n.nnnnE + n, +l.nnOOE+2
4-10
Upon power-up, or after a DCL or SDC, SRQ is disabled. Status Byte Format-The status byte contains information
relating to data and error conditions within the instrument.
The controller obtains the status byte by using the serial
SRQ Mask-in order to facilitate SRQ programming, the polling sequence described in paragraph 4.2.8. Once the
Models 220 and 230 make use of a mask when generating byte resides in the computer, the information in Figure 4.3
an SRQ. When the appropriate bit in the mask is set, the can be used when interpreting data and error conditions.
instrument will generate an SRQ when those particular con-
ditions exist. Figure 4-2 shows the format of the SRQ mask Bit 6 is the SRQ bit. If this bit is set, the service request was
byte. Bits within the mask can be controlled by sending the made by the Model 220 or 230. Bit 5 determines the mean-
ASCII character “M” followed by a decimal number from 0 ing of bits 0 through 3. If bit 5 is set, the error conditions
to 31. Table 4-7 lists the conditions that will cause an SRQ listed in Table 4-8 apply to bits 0 through 3. If bit 5 is cleared,
for each command parameter. Note that the instrument can the data conditions listed in the table apply.
be programmed for one or more conditions simultaneously.
l- Conditia 5* 1
SRQ
Command
MO””
t
I/O Port
Change r End Of
Dwell Time
End Of
Buffer
Over
Limit
DDC,No
Remote
--_-
Ml X
M2 X
M3 X X
M4 X
M5 X X
M6 X X
M7 X X X
M8 X
M9 X X
Ml0 X X
Ml1 X X X
Ml2 X X
Ml3 X X X
Ml4 X X X
Ml5 X X X x
Ml6 X
Ml7 X X
Ml8 X X
Ml9 X X X
M20 X X
M21 X X X
M22 X
M23 X :: :: X
M24 X X
M25 X X X
M26 X X X
M27 X X X X
M28 X X X
M29 X X X X
M30 X X X X
M31 X X X X X
*Indicates those conditions that will generate SRQ.
**MO disables SRQ.
4-11
SRQ COMMAND CONTROLS
ONLY THESE BITS
B7 B6 85 84 B3 82 Bl BO
@J
QI @ Yg Yg Y@ i/pr V@
B7 66 65 84 83 62 BI BP status.
60 IF BIT (S,5) = 0 THEN SRQ received yet?
0
50
70 DISP “END OF DWELL End of dwell time
TIME” @ BEEP reached.
80 S = SPOLL (712) Conduct serial poll.
END BUFFER
90 DISP “87 B6 B5 84 83
OVER LlMlT- 82 Bl BO”
100 FOR I =7 TO 0 STEP Loop eight times.
14.UOl230
Figure 4-3. Status Byte Format 110 D;sb BIT (S,I); Display status byte bits.
120 NEXT I
Programming Example-Momentarily power down the in- 130 DISP
strument. Using the front panel controls, program a voltage 140 END
and current into memory location one; enter the program
below into the HP-85.
4-12
After entering the program, press the HP-85 RUN key; Programming Example-Depress the front panel STEP
observe that the Model 220 or 230 START/STOP light button and enter the following statements into the HP-85
comes on. After about 10 seconds, the instrument reaches keyboard:
the end of the programmed dwell time and sends an SRQ. REMOTE 712 (END LINE)
The computer then conducts a serial poll and displays the OUTPUT 712; “POX” (END LINE)
status byte bits in the proper order on the CRT.
When END LINE is pressed the second time,.the instrument
changes to the single program mode as indicated by the
4.3.9 Program Mode (PI
SINGLE light on the front panel.
The program commands control the way the Model 220 or
4.3.10 Range (RI
230 cycles through its buffer. These commands perform the
same operations as the front panel PROGRAM MODE but-
The range commands set the maximum allowable current
tons. The operation of each mode is described as follows:
(220) or voltage (230) that may be programmed into the in-
1. Single-The instrument will cycle through the buffer once strument, as described in Table 4-9.
until it encounters a dwell time.of zero in one of the
memory locations and then stops. Upon power-up, or after a DC1 or SDC, the RO mode is
2. Continuous-The instrument will cycle continuously enabled.
through the buffer until triggered to stop. When a dwell
time of zero is encountered, the instrument will go back NOTES:
to the first memory location and repeat the cycle. 1, The range commands do not affect a source value already
3. Step-The instrument will increment the memory location stored in a memory location; range commands affect only
pointer once each time a trigger stimulus is received. The new source commands which have yet to be program-
trigger may come from the front panel START/STOP med.
button, or it may come from a bus command, or through 2. On a given range, the source command parameter can be
the external trigger input, depending on the selected trig- no larger than that range will allow.
ger mode. If a dwell time of zero is encountered, the in- 3. If an under range source command is given, a zero source
strument will cycle back to the next memory loaction with value will be stored.
the next trigger stimulus. 4. If an over range source command is given, the instrument
will respond with a front panel IDDCO (Illegal Device-
The bus commands that control the program mode are: Dependent Command Option) error as described in para-
PO Single graph 4.4 The instrument may also be programmed to
Pl Continuous generate an SRQ under these conditions. (See paragraph
P2 Step 4.3.8).
5. Settling time is less than 3ms to within 0.1% of program-
Upon power-up, or after receiving a DCL or SDC command, med range change.
the P2 mode is enabled. 6. A range change takes up 2ms of programmed dwell time.
-r
T
7
Mode !20 Current S urce Model 230 Voltage S irce
Range Range Maximum Minimum Range Maximum Minimum
Command output Step output Step
RO Auto f 1OlmA 500fA Auto f 1OlV 50/J/
Rl 1nA k 1.9995nA 500fA 100mV f 199.95mV 5OFV
R2 10nA f 19.995nA 5pA IV f 1.9995v 500@
R3 100nA + 199.95nA 50pA 1ov + 19.995v 5mV
R4 1d f 1.9995@ 500pA 1oov * 1OlV 50mV
R5 f 19.995/lA 5nA *
lOti
l
R6 loo/LA + 199.95+ 50nA
l
R7 1mA + 1.9995mA 500nA
l
R8 1OmA + 19.995mA 5rA
*
R9 100mA + 10lmA 50fiA
‘Illegal Ranges
4-13
Programming Example-Enter the following program into 4.3.11 Trigger Mode (TI
the HP-85. Note that lines 40 and 70 appear twice; use only
the correct line for the instrument to be programmed. The The trigger mode commands control the stimulus to be used
first line in each case is for use with the Model 220 current to start or stop Model 220 or 230 program operation,
source, while the second line should be used with the Model Basically, the trigger stimulus controls instrument operation
230 voltage source. much like the front panel START/STOP button does, ex-
cept that the trigger stimulus can control either start or stop
PROGRAM COMMENTS (not both), depending on the selected trigger mode.
10 REMOTE 712 @ CLEAR Set up for remote
operation Model 220 and 230 trigger modes include:
20 CLEAR 712 Return to default TO Start On Talk
conditions. Tl Stop On Talk
30 OUTPUT 712; “R3MlX” Set instrument to T2 Start On GET
R3 range. Turn on T3 Stop On GET
SRQ. T4 Start On X
40” OUTPUT 712; “IlOOE-9X” Program 220 for T5 Stop On X
100nA current. T6 Start On External
40** OUTPUT 712; “VlOX” Program 230 for T7 Stop On External
1ov output. Upon power-up, or after receiving a DC1 or SDC, the T6
50 DISP “PRESS ‘CONT”’ mode is enabled.
60 PAUSE Wait
70” OUTPUT 712; “IlOOE-6X” Attempt to program In the TO and Tl modes, the trigger stimulus is the talk com-
illegal current mand. In the T2 and T3 modes, the GET command performs
(220). triggering. In T4 and T5 modes, the execute (XI character
70”” OUTPUT 712; “V35X” Attempt to program triggers the instrument, while a trigger pulse applied to the
illegal voltage trigger input on the rear panel of the instrument is used in
(230). the T6 and 17 modes.
80 S = SPOLL (712) Obtain status byte.
90 IF BIT (S,5) AND BIT (S,l) Check for IDDCO NOTES:
THEN DISP “ILLEGAL 1. When the instrument is triggered to start, program execu-
COMMAND OPTION” tion begins at the next higher display memory location;
100 OUTPUT 712; “ROX” Set to auto range. the display pointer is not automatically set to one by a
110 END trigger stimulus.
+ Use for Model 220 current source. 2. In the STEP program mode, the instrument will advance
l * Use for Model 230 voltage source. one memory location with each trigger stimulus.
3. In any of the stop trigger modes, the instrument will
After entering the program, depress the HP-85 RUN key. cease program operation immediately upon receipt of the
The program sets the Model 220 to the 100nA range; it sets trigger.
the Model 230 to the 1OV range. After the computer pauses,
use the front panel controls of the instrument to verify that Programming Example-Using the front panel controls,
the current or voltage has actually been stored. Then press enter a voltage and current into memory location one, and
the HP-85 CONT key and observe that the instrument dis- enter the following statements into the HP-85 keyboard:
plays the “IDDCO” front panel error message. The illegal REMOTE 712 (END LINE)
command message is also displayed on the CRT because OUTPUT 712; “TOX” (END LINE)
the status byte was checked by the computer; when the This last statement places the instrument in the Start On
error and IDDCO bits were set, the computer displayed the Talk trigger mode.
message.
Using front panel controls, place the intrument in the CON-
It is important to note that the commands in line 70 would TINUOUS program mode and see that the front panel
be valid if the instrument were set to proper range. This is START/STOP indicator is off. Enter the following state-
taken care of automatically in the RO mode, since the instru- ment into the HP-85 keyboard:
ment changes to the appropriate range, depending on the ENTER 712; A$ (END LINE)
commanded value. To demonstrate this point, delete line 30
When the END LINE key is pressed, the instrument is trig-
from the above program and run it again. This time, the gered to start program operation; the front panel
commands in line 70 are accepted by the instrument since it START/STOP light will turn on. In this example, the
remains in the auto range mode. necessary talk command is provided by the ENTER state-
ment.
4-14
The trigger mode may be changed by entering the following minate the ENTER statement. The computer may be reset
statement into the HP-85: by holding down the SHIFT key and then pressing RESET
OUTPUT 712; “TlX” (END LINE) on the keyboard. To return the instrument to the normal ter-
minator sequence, enter the following statement into the
The instrument will be triggered to stop program operation
HP-85:
with another trigger as follows:
OUTPUT 712; “Y”; CHRS (10); “X” (END LINE)
ENTER 712; AS (END LINE)
When END LINE is pressed, the front panel START/STOP 4.3.13 Status Word (UI
indicator turns off, indicating the instrument has received
the trigger stimulus. The status word commands allow access to information
concerning various operating modes of the instrument, as
The operation of the instrument in other trigger modes is well as the present status of input and output lines on the
similar except for the trigger stimulus itself. digital I/O port. When the correct command is given, the in-
strument will output the status word or I/O status the next
4.3.12 Programmable Terminator (Y) time it is addressed to talk instead of sending its normal data
string. The Model 220 and 230 status word commands are:
The Model 220 or 230 uses special terminator characters to
UO Send normal status word. The format is the model
mark the end of its data string or status word. To allow a
number (220 or 2301 followed by bytes representing
wide variety of controllers to be used, the terminator can be
DFGJKPRTMMY. Information concerning all modes
changed by sending the appropriate command over the bus.
except for SRQ is one byte in length.
The default value is the commonly used carriage return, line
Ul Send I/O status: I/O nn,nn, where nn is a number from
feed (CR LF) sequence. The terminator sequence will
O-15.
assume this default value upon power-up or after the instru- Figure 4-4 shows the general format of the status word, and
ment receives a DCL or SDC. Figure 4-5 shows the format of I/O status information. Both
examples show default values; these values will be present
The terminator may be programmed by sending the ASCII
upon power-up or after the instrument receives a DCL or
character Y followed by the desired terminator character.
SDC. The I/O port values assume that nothing is connected
Any ASCII character except one of the following may be
to the I/O port. Table 4-10 shows I/O line conditions for
used:
returned I/O status values.
1. Any capital letter.
2. Any number. NOTES:
3. Blank
1. The status word or I/O status will be sent only once each
4.+-/,.ore
time the status command is given. Once the status is
Special command characters will program the instrument read, the instrument will send the normal data string the
for special terminator sequences as follows: next time it is addressed to talk.
1. Y(LF) = CR LF (Two terminators) 2. SRQ status information contains two bytes. These two
2. Y(CR1 = LF CR (Two terminators) bytes will assume the decimal value previously set by the
3. Y(DEL) = No terminator SRQ mode command.
3. The “l/O” prefix on the I/O status will be present only in
NOTE the GO, G2, and G4 prefix modes. The prefix will not be
Most controllers use the CR or LF character to transmitted in the Gl, G3, or G5 prefix modes.
terminate their input sequences. Using a non- 4. The returned terminator character is derived by ANDing
standard terminator may cause the controller to the byte with 00001111 and then ORing the result with
hang up unless special programming is used. 00110000. For two-byte terminators, this is done with the
last byte in the terminator sequence. For example, the
Programming Example-The terminator can be eliminated last byte in the normal terminator sequence is a LF or
by sending an ASCII DEL with the following HP-85 ASCII 10 (00001010). Masking with 00001111 yields
statements: 00001010. ORing with 00110000 gives 00111010, which
REMOTE 712 (END LINE) is printed out as an ASCII colon (:I.
OUTPUT 712; “Y“; CHRS (127); “X” (END LINE) 5. To make sure proper status is returned, the status word
When END LINE is pressed the second time, the terminator or I/O status should be read immediately after sending
is supressed; no terminator will be sent by the instrument the command. Otherwise, instrument status may
when data is requested. The absence of the normal ter- change, resulting in erroneous status information.
minator may be verified by entering the following statement 6. The status word should not be confused with the SRQ
into the HP-85 keyboard. status byte. The status word contains a number of bytes
pertaining to the various operating modes of the instru-
ENTER 712; AS (END LINE)
ment. The status byte is a single byte that is read by using
At this point, the HP-85 ceases to operate because it is the serial polling sequence and contains information on
waiting for the standard CR LF terminator sequence to ter- SRQ status and error or data conditions.
4-15
7. The self-test (J) byte is set to 1 upon power-up or after NOT PRESENT IN
receiving the J command. This byte will be set to 0 after
the status word is read.
Gl, G3, G5
8. The Model number prefix (220 or 230) will be present on MODES
the status word only in the GO, G2, and G4 prefix modes. c 4
Table 4-10. I/O Port Status Values 1/015,00
-
Returne Input an Output T minal Cl Iditions’
Bit 0
mG ZPUT
Value Bit 3 Bit 2 Bit 1
L L L
(O-15) (O-15)
00 L
01 L L L H 16220/230
MODEL*
NUMBER DFGJKPRTMY
.
2200001020 6 00 :
1522OIZ30
4-16
50 CLEAR Clear CRT PROGRAM COMMENTS
60 DISP “MdlDFGJKPRTMMY” 10 REMOTE 712 Set up for remote
70 DISP AS Display status word operation.
with model prefix. 20 CLEAR Clear CRT.
80 OUTPUT 712;“GlUOX” Change to Gl prefix 30 GOSUB 100 Call status word
mode. Send status subroutine.
word command. 40 GOSUB 100 Call status word
90 ENTER 712; AS Enter status word subroutine.
into computer. DISP “PRESS ‘CONT”’
100 DISP “DFGJKPRTMMY” OUTPUT 712; “JOX Send self-test
110 DISP AS Display status word command.
without model 70 PAUSE Wait
prefix. 80 GOSUB 100 Call status word
120 DISP subroutine.
130 OUTPUT 712; “GOUlX” Change to GO 90 END
mode. Send I/O 100 DISP “MdlDFGJKPRTMMY” Begin status word
status command. subroutine.
140 ENTER 712;AS Enter l/O status 110 OUTPUT 712;“UOX” Send status word
into computer. command.
150 DISP AS Display I/O port 120 ENTER 712;AS Read status word.
status with prefix 130 DISP AS Display status
on CRT. word on CRT.
160 OUTPUT 712; “GlUlX” Change to Gl prefix 140 RETURN
mode. Send I/O
status command. After the program is entered, momentarily power down the
170 ENTER 712;AS Enter l/O status Model 220 or 230 and wait for the normal display to return.
into computer. Press the HP-85 RUN key; the computer will request the
180 DISP AS Display I/O status status word twice and display it on the CRT. On the first
without prefix on request, the self-test (J) byte is set to one because the in-
CRT. strument was just powered up. The second time, the J byte
190 END is set to zero because the byte was cleared the first time the
status word was read.
After entering the program, depress the HP-85 RUN key.
The CRT will then display the status word and the I/O status When the program sends the J command in line 60, the
both with and without prefixes. The status word will show Model 220/230 LEDs turn on, indicating the instrument is in
default values because line 20 of the program sends an the self-test mode. After the normal display returns, press
SDC, which sets the instrument to the default conditions. the HP-85 CONT key. The program again reads and displays
the status word; note that the J byte in the word was set to
4.3.14 Digital Self-Test (J)
1 by sending the J command.
The digital self-test command programs the instrument to
4.4 FRONT PANEL ERROR MESSAGES
go through many of the testing routines that are auto-
matically performed when the instrument is first turned on.
The process of programming the Model 220 or 230 involves
When the self-test command is sent, the following actions
the proper use of syntax. Syntax is defined as the orderly or
are performed:
systematic arrangement of programming commands or
1. ROM test. languages. The Model 220 or 230 must ,receive valid com-
2. LED test. (All front panel LEDs turn on for a short period mands with proper syntax or it will:
of time).
1. Ignore the entire command string in which the invalid
3. The self-test (J) byte in the status word is set to 7.
command appears.
2. Set appropriate bits in the status byte.
The self-test command is implemented with the following
3. Generate an SRQ if programmed to do so.
command sequence: JOX
4. Display an appropriate front panel error message.
NOTES:
1. Other operating parameters and memory data are not
Device-dependent commands are sent as a string of several
affected by the JO command.
ASCII characters. Some examples of valid command strings
2. RAM is not tested by the JO command but is tested upon
include:
power-up.
FOX Single command string.
Programming Example-Enter the program below into the FODlPW Multiple command string.
HP-85. Pl x Space is ignored.
4-17
Examples of invalid command strings are: not in the remote mode, enter the following statement into
HOX Invalid Command; H is not a command. the HP-85:
F5X Invalid command option; 5 is not an option of LOCAL 7 (END LINE)
the F command. Now enter the following programming statement into the
NOTE keyboard:
If a command is sent without a numeric OUTPUT 712; “GOX” (END LINE)
parameter, a zero is assumed. For example, UX When this statement is executed, the no remote error
is the same as UOX. message in Figure 4-6 (c) is displayed on the front panel of
the instrument for about one second.
Figure 4-6 shows the front panel error messages employed
by the Models 220 and 230. The messages in Figure 4-6(a)
results from an Illegal Device-Dependent Command (IDDCI,
while the message in Figure 4-6(b) results from an Illegal
Device-Dependent Command Option (IDDCO). The no la1 IDOC (ILLEGAL DEVlCE.DEPENDENT COMMAND1
A front panel no remote error message will be displayed if A sinusoidal approximation can be programmed by allowing
the Model 220/230 is not in the remote mode when it the controller to generate the sine function and then calcu-
receives a command over the bus. If an attempt is made to late the source output values. Once the Model 220/230 has
program the instrument when it is not in the remote mode, been programmed, the instrument will generate a fair ap-
the no remote message in Figure 4-6 (cl will be displayed on proximation of a sine wave. The period of the waveform will
the front panel for about one second. depend upon the selected dwell time of each program step.
Each dwell time should be identical to preserve waveform
Programming Example-To make sure the instrument is
symmetry.
4-18
Programming Example-The program below generates a 90” I$ = “I”&VALS(B) Build current com-
sine function and programs each of the 100 memory loca- mand string.
tions with appropriate source, limit, and dwell time informa- 90”” VS = “V”&VALStB) Build voltage com-
tion. For purposes of this demonstration, a 10ms dwell time mand string.
has been selected. This will result in a waveform period of 100 OUTPUT 712; BS; LS;IS;V$; Program memory
approximately one second. The peak output of the Model ws;xs slot I.
220 is set at 1 3mA; the peak output of the Model 230 is 110 NEXT I Next data point.
+ 1OV. Enter the program into the HP-85; note that the ex- 120 OUTPUT 712;
act form of lines 10 and 90 depends on the instrument to be “DOPl Fl 81 LlT4X” Program modes;
programmed. trigger to start unit.
130 END
PROGRAM COMMENTS l Use this line for Model 220 current source.
10” A = 0.01 @ VS = “V20” Set current multiplier ** Use this line for Model 230 voltage source.
---
to 10mA peak; 20V
limit. After entering the program, connect a 1kQ load resistor
10”” A=10 @ I$=“ll” Set voltage across the output of the instrument and monitor the output
multiplier to IOV with a suitable device, such as an oscilloscope or plotter.
peak. Press the HP-85 RUN key and observe the Model 220/230
Current limit to display, which will show the source data being stored into
20mA. program memory locations. Once data has been stored, the
.20 W$ = “WjOE-3” @I)($ = “X” Set dwell to 10ms; program sets the unit to the appropriate operating modes
define execute and starts program operation.
character.
30 DEG @ SHORT B Short variable B; set 4.6.2 Ramp Simulation
to degree mode.
40 REMOTE 712 Set up instrument Virtually any waveform may be simulated by substituting
for remote opera- line 70 of the above program with the appropriate mathe-
tion. matical expression. The peak value of the expression, not
50 CLEAR 712 Set to default condi- including the A multiplier constant, should be no greater
tions. than k 1. For example, the Model 220/230 can be program-
60 FOR I=1 TO 100 Loop 700 times. med to generate a ramp by substituting the following pro-
70 B=A*SIN (360/100”1) Multiply source gram line into the above program:
multiplier constant 70 B = A/100*1
by sine function.
80 BS =“B”BVALS(I)@LS Build buffer, loca-
= “L”& tion command
strings
VALS(I)
4-19/4-20
SECTION 5
IEEE COMMAND FLOW CHARTS
5.1 INTRODUCTION 5.3 IFC (INTERFACE CLEAR1
This section describes what happens when the Model Interface Clear simultaneously places all instruments
220/230 receives various commands (DCL, IFC, REN, etc.) capable of responding to an IFC command in the talk and
across the IEEE-488 bus. Each command is accompanied listen idle states.
with a flow chart and a brief description of the command.
The command flow chart for the IFC command is shown in
5.2 DCL (DEVICE CLEAR) Figure 52. At the start, the controller asserts the IFC com-
mand by setting the IFC line low. The 9914 GPIA goes to its
The DCL command simultaneously clears all instruments initialized state and the front panel TALK and LISTEN LEDs
equipped to implement the command by returning them to are turned off.
their initialized states.
NOTE
The flow chart for Model 220/230 DCL implementation is The IFC command only removes the Model
shown in Figure 5-l. At the start, the DCL command causes 220/230 from the talk or listen states. Other
the 9914 GPIA to interrupt the Model 220/230’s micro- operating parameters are not affected.
processor. The programmable parameters are returned to
the default conditions listed in Table 4-2. Also, program
memory is cleared of data when the DCL is received by the AT START THE IFC
Model 220/230; the memory pointers are set to location LINE IS ASSERTED
one.
f I
TURN OFF
FRONT PANEL
LISTEN LIGHT
A
CLEAR +
PROGRAM
MEMORY TURN OFF
FRONT PANEL
TALK LIGHT
5-l
The REN command flow chart is shown in Figure 5-3. At the NOTE
start, the controller asserts the REN command by setting The serial polling sequence does not affect
the REN line low. The remote bit in the 9914 GPIA is set, other programmed parameters of the Model
and the front panel REMOTE indicator LED is turned on. 2201230.
NOTE
.All other programmed parameters of the Model
220/230 are not affected by the REN AT START THE CON-
Command. TROLLER PLACES SPE
ON THE BUS
The command flow chart for the serial polling sequence is 5.6 UNL WNLISTEN)
shown in Figure 5-4. At the start, the controller places the
SPE command on the bus and addresses the Model The UNL command simultaneously removes all previously
220/230 to talk. The Model 220/230 gets a Serial Poll addressed listeners from the bus.
Active State (SPAS) interrupt and places its status byte on
the bus. The completed handshake sequence clears the The command flow chart for the UNL command is shown in
SPAS interrupt; the controller then places the SPD com- Figure 5-5. At the start, the controller places UNL on the
mand on the bus, and the Model 220/230 returns to the bus. The listen bits in the 9914 GPIA register are cleared and
previous operation. the front panel LISTEN LED is turned off.
5-2
NOTE
UNL only places the Model 220/230 in the
listen idle state; other programmed parameters
are not affected. AT START THE CON-
TROLLER PLACES UNT
ON THE BUS
TURN OFF
FRONT PANEL
TALK LIGHT
TURN OFF
FRONT PANEL
LISTEN LIGHT
<‘ND/’ n-m/2#)
NOTE NOTE
UNT only places the Model 220/230 in the talk The GET command has no effect on the instru-
idle state; other previously programmed para- ment except to trigger program operation.
meters are not affected. Other parameters are not affected by the GET
command.
5-3
AT START THE GET
COMMAND CAUSES
THE 9914 CHIP TO
AT START THE CON-
INTERRUPT THE TROLLER PLACES GTL
220/230’s PROCESSOR ON THE BUS
STOP PRESENT
OPERATION
CLEARS REMOTE BIT
IN 9914 GPIA
TURN OFF
FRONT PANEL
START PROGRAM REMOTE LIGHT
OPERATION
NO
i
Figure 5-8. GTL Command Flow Chart
Figure 59 shows the command flow chart for the SDC com-
PREVIOUS
mand. At the start, the SDC command causes the 9914
OPERATION GPIA to interrupt the Model 220/230’s processor. The pro-
grammable parameters are then set to the default values,
Also, program memory is cleared of previously stored data
Figure 5-7. GET Command Flow Chart and display and buffer pointers are set to one.
Go To Local takes instruments out of the remote mode of Device-dependent commands are instrument programming
operation. commands. The purpose of the commands in this group is
to program certain instrument operating parameters.
The GTL command flow chart is shown in Figure 58. At the Generally, these commands are sent as ASCII alpha
start, the controller places the GTL command on the bus. characters usually following by numeric parameters.
This clears the remote bit in the 9914 GPIA. The front panel
REMOTE indicator is then turned off. Figure 510 shows the device-dependent command flow
chart for the Model 220/230. At the start, the command
NOTE causes the 9914 GPIA to interrupt the processor. If the ex-
GTL does not restore front panel control opera- ecute (XI character is not received, the instrument returns
tion of the Model 220/230. REN must be set to the, previous operation without executing any com-
false before front panel operation is restored mands. Once the X character is received, the machine state
once LLO (Local Lockout) is sent. Some in- register is updated to agree with the temporary register, and
struments may have local operation restored appropriate operating modes are changed.
with the GTL command.
54
AT START THE SDC
COMMAND CAUSES CT> AT START THE 9914
THE 9914 GPIA TO GPIA INTERRUPTS
INTERRUPT THE PROCESSOR
220/230’s PROCESSOR
UPDATE
SET PROGRAMMABLE
I
TEMPORARY
PARAMETERS TO REGISTER
DEFAULT STATE
SET MEMORY
POINTERS TO 1 UPDATE
MACHINE
STATE-REGISTER
,
Y
I
OPERATING
MODE61
CHANGED
Figure 5-9. SDC Command Flow Chart
27-2201230
55/5-6
Service Form
Model No. Serial No. Date
Name and Telephone No.
Company
List all control settings, describe problem and check boxes that apply to problem.
tl Intermittent a Analog output follows display Ll Particular range or function bad; specify
Show a block diagram of your measurement system including all instruments connected (whether power is turned on or not).
Also, describe signal source.
Where is the measurement being performed? (factory, controlled laboratory, out-of-doors, etc.)
Any additional information. (If special modifications have been made by the user, please describe.)
Be sure to include your name and phone number on this service form.