This quick reference guide contains descriptions of the
features and operation of the Model 213. Also included is
a programming example using a PC controller.
Olggo. Keithley Instruments, Inc.
All Rights Reserved
Instruments Division
Cleveland, Ohio, U. S. A.
Document Number: 213-903-01 Rev. A
+
1
Page 3
+
TABLE OF CONTENTS
SAFETY WARNINGS ....................... 5
FRONT PANEL FAMlLtARtZATlON ........... 7
REAR PANEL FAMlLlARlZATtON ............. 9
DIP SWtTCH ......................... 9
ANALOG OUTPUT PORTS .............. 9
DlGtTAL INPUT/OUTPUT PORTS ........ 10
BASIC OPERATION ....................... 13
DAC PORTTRIGGERING ............... 13
INTERNAL SUFFER ................... 14
CONTROL MODES .................... 16
IEEE-488 PROGRAMMING .................. 19
DEVICE-DEPENDENTCOMMANDS ...... 19
SRQ MASK AND SERIAL POLL BYTE ..... 31
STATUS WORDS ..................... 32
KEYBOARD CONTROLLER PROGRAM ....... 38
+
Page 4
+
SAFETY WARNINGS
The following safety warnings should be obsewed before
using Model 213 Quad Voltage Source. Refer to main
manual for detailed safety information and complete operation instructions.
The Model 213 Quad Voltage Source is intended for use
by qualified personnel who recognize shock hazards and
are familiar with the safety precautions required to avoid
possible injury. Read over the manual carefully before
using the instrument.
Before operating the instrument, make sure the line cord
is connected to a properly grounded power receptacle.
Exercise extreme caution when a shock hazard is present. Lethal voltages may be present on connsctorjacks.
The American National Standards fnstitute (ANSI) states
that a shock hazard exists when voltage levels greater
than 30V FtMSor42.4Vpeakare present. Agoodsafety
practice Is to expect that hazardous v&age Is present In any unknown clrcuii before measuring.
Inspect the connecting cables, test leads, and jumpers
for possible wear, cracks, or breaks before each use.
For maximum safety, do not touch the Quad Voltage
Source connections, test cables or connections to any
other instruments white power is applied to the circuit under test. Turn off att power and discharge any capacitors
before connecting or disconnecting cables or jumpers.
+
5
Page 5
+
Do not touch any object which could provide a current
path to the commonside ofthecircuit undertestorpower
line (earth) ground.
Do not exceed the maximum signal levels of the instrument, as shown on the rear panel and as defined in the
specifications and operation section of the instruction
manual.
tnstrumentation and accessories should not be con-
nected to humans.
Maintenance should only be performed by qualified SBW
ice personnel. Before performing any maintenance, dis-
connect the line cord and all test cables from the instru-
ment.
+
Page 6
+
FRONT PANEL
FAMILIARIZATION
Six LEDs on the front panel of the Model 213 Quad Voltage Source disolav the status of the interface fsee
Figure 1).
Ffgure 1.
TALK-On when the unit is in the talker state, off whsn
the unit is in the idle or listener state.
LfSTEN - On when the unit is in the listener state, off
when the unit is in the idle or talker State.
SRQ - On when the unit has generated a service Is-
quest. oft when no SW is pending. (See Service Re-
quest Mask command for more information.)
ERROR-On when an error has occurred, off when no
error condition exists. (See Error Query command for
more information.)
Front Panel Indicators
+
7
Page 7
+
TEST - Used in conjunction with the Test command to
verify that communication. ..__ ___,
unit. The TEST light will flash wher
in the auto-calibration mode. It will then remain tit when
finished.
POWER-On when power is applied to the unit and the
power switch on the back panel is in the on position (depressed). Off if power is not present.
n haa haen established with the
I the unit is calibrating
8
+
Page 8
+
REAR PANEL
FAMILIARIZATION
DIP SWITCH
The Model 213 hasone S-position switch @WI) accessible from the rear panel. This switch determines the unit’s
IEEE address and its operating mode (normal or autocalibration). The switch is read only when the unit is powered on and should be set prior to applying power.
Figure 2 illustrates the factory default setting for SWI,
Figure 2.
SW1 Factory Default Setttngs
ANALOG OUTPUT PORTS
The Model 213 can be thought of as four isolated digital
to analog converters occupying one IEEE-488 bus address. Each port has a low (L), high (H), and ground
+
9
Page 9
+
(chassis ground) line. Cha*sis ground may be connected
lo the shield of shielded cable if this type of cable is used
lo carry the analog signals.
The maximum common-mode input
CAUTION
voltage (the voltage between output LO
and chassis ground) Is 500V peak. Exceeding this value may damage the Interface.
The pinouts for all four analog ports are labeled on the
real panel of the unit and are shown in Figure 3. Each
analog output is capable of sourcing and sinking a maximum current 0, ,OrnA.
PORT 1 PORT? PORT 3 PORT4
HLG HLG HLG HLG
. . . . . . . . . . . .
Figure 3. Analog Output Connector Pinout
DIGITAL INPUT/OUTPUT PORTS
The Model 213 has eight digital input lines and eight digital output lines.
Figure 4 illustrates the digital I/O edge connector as
viewed from the rear of the instrument.
10
+
Page 10
The digital output lines will drive two TTL loads. All digital
input lines are less than 1.5 TTL loads. Normal precau-
tions should be taken to limit the input voltages to -0.3 to
+i’.O volts. All IWO lines are referenced to digital ground
(pin 20).
Page 11
+
In addition to interfacing with TTL logic Iewts, the digital
output lines can be configured es high voltage/high cur-
rent outputs. These outputs can sink up to 1 OOmA at WV
DC through the use of open collector drivers with integral
diodes for inductive load transient suppression. This allows for interfacing the digital outputs with relays. lamps
and solenoids.
To configure the digital output lines for this purpose, it is
necessary to open the enclosure and reposition the
configuration jumper according to the procedure in
Section 6 of the Model 213 Instruction Manual.
12
+
Page 12
+
BASIC OPERATION
DAC PORT TRIGGERING
Triggering is the process of changing a DAC output at the
ccwrrence of a trigger event. The three trigger events
which can trigger a DAC port are: a Command Trigger
(@), an IEEE Group Execute Trigger (GET), or an external trigger pulse applied tc the external trigger/SK2 input. Any DAC port may be configured to trigger on one or
more of these trigger sources. These trigger sources and
their relationship to a DAC port are shown in Figure 5.
As shown in the diagram, the trigger sources are routed
to the ports using the trigger mask commands. The trigger mask commands are illustrated as switches. They
are used to enable a trigger source to trigger the selected
DAC port. All trigger signals are then combined to allow a
port tc be triggered upon the occurrencs of any of the
three trigger events.
Operation of the Model 213 is controlled by an internal
lmssc timer. Each DAC port is updated at a maximum
rate of cnce every millisecond. When a trigger event cccurs, the DAC will output the programmed voltage within
1 msec of receiving the trigger.
+
13
Page 13
+
Figure 5. Model 213 Trigger Structure
INTERNAL BUFFER
The Model 213 contains an internal buffer consisting of
81921ocations numbered 0 to 8191. The bufferisshared
by all ports. Each port may be given a different section of
the buffer or ports may use the same buffer locations
without conflict.
This buffer may be loaded with voltage values to be output when the stepped or waveform modes are used. All
14
+
Page 14
+
data in the internal b”“W is SaYed in non-volatile RAM.
Therefore bufferdatawhichwaspreviously loaded will be
available at power on.
Figure 6 shows the factory default allocation of the inter-
nal buffer to each of the DAC
ports on the Model 213.
Page 15
+
CONTROL MODES
Four modes of DAC port operation are available: direct,
indirect, stepped, and waveform. Each port is independenf and may be operated in a different mode.
Direct Control Mode
In the direct control mode, a DAC voltage is output upon
receipt of the Execute (X) command. Direct control is ac-
complished by selecting the DAC port, the range or
autorange, specifying the DAC output voltage. and issu-
ing the Execute command.
Indirect control implies that the DAC output will change
only when a trigger event occurs. Indirect control is accomplished by selecting ihe DAC port. the rang8 or
autorange, specifying the DAC output voltage and the
desired trigger source. When the trigger event occurs,
the programmed voltage will be output.
Stepped Mode
In this mode, a sequence of DAC voltages is loaded into
the Model 213 internal buffer. After the voltages are
loaded into the buffer, the DAC output can then be
stepped through each of the values by using any of the
three trigger sources. When the last voltage in the buffer
16
+
Page 16
+
is output, th@ Model 213 will automatically return to the
first location, thereby allowing the sequence to be repeated. See Figure 7.
Figure 7. Example of Stepped Mode
Waveform Mode
The waveform control mode may be used tc control the
DAC in an automatic manner. A buffer is defined and voltage values are loaded into the buffer. Once the Model
213 is triggered, these preloaded voltage values are then
output at a regular interval. See Figure 8.
When’the last voltage in the buffer is output, the Model
213 will remain at that location if the number of cycle has
been reached. The voltage stored at this location is then
output continuously. lfthespecified number of cycles has
+
17
Page 17
+
“cl been reached, the Mode, 213 a”,CmatiO~ll~ CO”ti”UBS a, the first buffer location.
Flgure 8.
16
Example of Waveform Mode
+
Page 18
+
IEEE-488 PROGRAMMING
DEVICE-DEPENDENT
COMMANDS
Trigger
(system command)
@
Autorange
(port command)
A0
Al (default) Enable autorange for selected DAC port
A?
Command trigger. Triggers the ports in
the command trigger mask (Tmask).
This command does not require the Execute Ixl command to owate.
Disableautorangefor selected DACpoll
Returns current autorange setting.
+
19
Page 19
+
lufter Data
port command)
Png,volts Write volts value in buffer location for
kng,#val Write decimal bit value in buffer location
~mg,#$valZ Write hexadecimal bit value in buffer lo3?
Control Mode
(wart command)
CO (default) Direct mode
Cl
C2 Steooed mode
C3
C?
selected DAC port.
for selected DAC port.
cation for selected DAC port.
Returns the range and value at the location pointer for the selected DAC port in
the format specified by the Output For-
mat (On) command.
NOfS%
1. This command increments the location counter after the value is written
lo or read from the buffer.
2. Factory default vlaues are mg=O,
volts=0.
3. Valid values are mg=O-3, volts=
number without a V mefix.
Indirect mode
.~.
Waveform mode
Returns current control mode for selected port
Notes:Selecting a control mode slops
the prior mode activity and rearms the
Dart for the selected mode.
20
+
Page 20
+
outputs the value on the digital outpuf
Returns the current value of the digital
I
-1
Error Status Codes:
EO
El
E2
::
E5
Noies:’
1. Default o”ta”t value = 0
2. “a, = o-25<.
Returns the error status which indicates
No error
Invalid command
Invalid command parameter
Command conflict
Calibration write protected
Non-volatile RAM error
Nofes: Upon reading the error status ths
errnr is rlalrad
+
I
21
Page 21
+
the selected port. 0 c start 5 8191; 1 5
Returns the starting buffer location and
number of locations used in the defined
buffer.
No&s: The sum of stari+size must be
less than or equal to 8192. The default
values are o,, 024; 1024, 1024; 2048.
1024: and 3072,1024 for ports 1 thru 4
respectively.
Get Trigger Mask
(system command)
Gmask Sets bits in the GET trigger mask which
G-mask Clears the specified bits in the GET trig-
The mask bits are as follows:
Bit 0 Enable trigger to DAC port 1 (1).
Bit 1 Enable trigger to DAC port 2 (2).
Sit 2
Bit 3
specifies which ports will be triggered
upon receipt of a bus GET command.
germask.
Clears all bits in the GET trigger mask.
Returns current GET trigger mask.
Enable trigger to DAC port 3 (4).
Enable trigger to DAC pon 4 (8).
Nofss: The default mask value is 0.
22
+
Page 22
+
oftset Catlbr*ttOn
(port command)
Hval
H? Returns the o”set constant for selected
IlltWWil
(port command)
It Specify time interval (in milliseconds)
I? Returns the current interval.
Specifies the offset constant for selected
range and port. Range is f255.
range and port.
Notes: Calibration constants must be
programmed while using the direct control mode (CO). Autorange must be disabled to program calibration constants.
The current voltage output is retriggered
upon execution of this command. Default
“lll,FI is n
used with the waveform control mode.
Range fort is i-65535.
Notes: The default value is 1000 (1 sec-
+
23
Page 23
+
C
Mn Callbratlon
port command)
Ipos, neg Specifies the gain constant for both Po-
.I
I? Returns the gain constants for selected
J
1
LocatIon Pointer
Jport command)
LWI Specifies the current buffer location.
L? Returns the current buffer location in the
larities of the selected range and port.
pos and neg = O-255.
range and port.
Notes: Calibration constants must be
programmed while using the direct control mode (CO). Autorange must be disabled (AO) to program calibration constants. The current voltage output is
retriggered upon execution of this command. Default “alws are 128. 128.
Returns the current EOI control setting.
Range for val is O-8191.
format specified by the Output Format
(On) command. The value returned after
an L? is the first location that will be used
in stepped and waveform modes.
24
+
Page 24
Service Request Mask
&stem command)
Mmask Sets bits in the service request mask
M-mask Clears the specified bits in the service reMO Clears all bits in the service request
M? Returns currant service request mask.
The mask bits are as follows:
Bit 0 Enable SRQ on DAC port 1 ready for trigBit 1 Enable SRQ on DAC port 2 ready for trigBit 2
Bit 3
Bit 4
Bit 5
Bit 7
Number of Cycles
jport command)
Nval Specifies the number of cycles through
N?
which specifies which Model 213 events
will generate a bus service request.
quest mask.
mask.
ger (1).
w
(2).
Enable SRQ on DAC port 3 ready for trig
w (4).
Enable SRQ on DAC port 4 ready for trig-
ger (a).
Enable SRQ on Trigger Overrun (16).
Enable SRQ on (
Enable SRQ on
II XII
the buffer in the waveform mode. “al is
O-65535, where 0 is continuous.
Returns the number of repetitions speci-
fied for use in the waveform mode.
Notes: The default value is 1.
war (32).
External input transition
+
25
Page 25
+
{system command)
OO(default) Sets output format to volts in flO.0000
is:
07 Returns current output format selected.
Pt (default) Select DAC port 1.
(fixed).
Sets output format in volts in decimal bits.
Sets output format in volts in hexadecimal bits.
26
+
Page 26
External Trigger Mask
(system command)
Qmask
Q-mask
00
Q?
The mask bits are as fellows:
Bit 0
Bit 1
Bit 2
Bit 3
Bit 7
Sets bits in the external trigger mask
which specifies the active edge of the w
ternal input line and which ports will be
triggered upon a transition of that line.
Clears the specified bits in the external
trigger mask.
Clears all bits in the external trigget
RI (default) Select DAC *IV range. RI (default) Select DAC *IV range.
Select DAC -tW range.
Select DAC *IO” range.
Returns DAC ““I+ rnnn~
Notes:This cc
Notes:This command should not be used
+
27
Page 27
Saves the current settings as default valRestores Gain and Offset cal constants.
Saves current calibration constants to
Returns the last Sn command executed.
Command Trigger Mask
(system command)
Tmask
T-mask
TO
T?
Sets bits in the command trigger mask
which specifies which ports will be trig
gered upon receipt of a trigger command
(@).
Clears the specified bits in the command
trigger mask.
Clears all bits in the command trigger
mask.
Returns current command trigger mask.
The mask bits are as follows:
Bit 0
Sit 1
Sit 2
Sit 3
28
Enable trigger lo DAC port 1.
Enable trigger to DAC port 2.
Enable trigger to DAC port 3.
Enable trigger to DAC pod 4.
N&s: The default value is 0.
+
Page 28
+
(system command)
Send system status on talk.
i?
K
u4
ifi
u7
U8 (default) Returns programmed output voltage and
U?
Value output
(port command)
VVOltS
V#Kl
V#$KlZ
V?
Send DAC port 1 status on talk.
Send DAC port 2 status on talk.
Send DAC port 3 stat”~ on talk.
Send DAC port 4 status on talk.
Send digital input port status on talk.
Send overr”” status on talk.
Returns actual output voltage and range.
range.
Returns current status select setting.
Notes: All status commands are one
shot.
Write volts value for selected DAC port
Write decimal bit value for selected DAC
PO*.
Write hexadecimal bit value for selected
DAC port.
Returns current range and value for selected port in the format specified by the
Output Format (On) command.
Notes: The urrent autorange and range
affect the value. When programming in
bits. autorange must be disabled. The
digital port must be programmed in bits.
+
29
Page 29
+
WO (dsfault)Turn off TEST LED.
-1
Execute
(system command)
x
Bus Terminator
{system command)
YO(default) Bus terminator is carriage return lins
Execute command string.
feed.
Bus terminator is line feed carriage return.
Bus terminator is carriage return only.
Bus terminator is line feed only.
Returns current bus terminator setting.
1
30
+
Page 30
+
SRQ MASK AND
SERIAL POLL BYTE
+
31
Page 31
STATUS WORDS
+
32
+
Page 32
UO System Status (Cont.)
+
+
33
Page 33
+
Figure 11. WI-U4 Port Status
34
+
Page 34
+
U5 - Digital Input Port Status
nnn
u
Fioure 13. U6 Overrun Status
+
35
Page 35
+
C#P#R#ViC##.#####
1 = OAC pm 1
*=oACpart2
3=OACport3
‘l=LMCip0*4
Flgure 14. WActuaI Output Voltage and Range
36
+
Page 36
+
A#C#P#R#Vzt##.#####
1=OAcport1
2~oACpon2
3 _ OAC part 3
4-oACporl4
Figure 16. U6 Programmed Output Voltage and
Ftanoe
+
37
Page 37
+
KEYBOARD CONTROLLER
PROGRAM
The keyboard controller program is a simple BASIC program that accepts commands from the PC keyboard and
sends them to an IEEE-488 interface with the IOtech
Driver488 software. It then displays any responses on
the PC screen. The keyboard controller program is aconvenient method of exercising the Model 213 and becoming familiar with the commands and their actions.
36
+
Page 38
+
+
Page 39
Specifications are subject to change without notice.
All Keithley trademarks and trade names are the property of
Keithley Instruments, Inc. All other trademarks and trade names
are the property of their respective companies.