35
Figure 4-2. Switch SW1: Enabling or Disabling “Talk-Back on Terminator.”
When the serial input buffer becomes empty, the interface converter checks
the last characters sent to the IEEE bus device. If these were the IEEE bus
terminators and Talk-Back on Terminator is enabled, the IEEE bus device is
addressed to talk. Any data received by the interface converter from the bus
device is sent to the serial host.
When the last IEEE bus terminator is detected from the IEEE device, the
interface converter disables the device from sending additional information
by asserting Attention (ATN) on the bus.
If the IEEE device does not responded or finish transmission by the time
additional characters are received into the serial input buffer, the talk
sequence will be aborted to allow additional serial information to be sent to
the IEEE device.
The program example on the next page shows how this feature can be used to
communicate with a single IEEE instrument. The program example is written
in BASIC on an IBM PC or compatible and communicates with a Keithley
Model 196 DMM.
10 '
20 ' Example Program using interface converter with
25 ' the Talk-Back on Terminator feature enabled to
30 ' communicate with a Keithley Model 196 DMM
40 '
50 ' Open BASIC’s serial communications port
60 OPEN "COM1: 9600, N, 8, 2" AS 1
70 ' Set the Model 196 DMM to the 30VDC range
80 PRINT #1, "F0R3X"; ' The ; suppresses terminators
90 ' Request 10 Readings from 196”
100 FOR N=1 to 10
110 PRINT #1," " ' Output terminator
120 LINE INPUT #1, A$ ' Get reading from 196
130 PRINT A$ ' print it on the screen
140 NEXT N
150 END
Switch
Side
View
DOT
OPEN
Talk-Back on
Terminator Disabled
1 2 3 4 5 6 7 8
OPEN
Talk-Back on
Terminator Enabled
1 2 3 4 5 6 7 8
CHAPTER 4: Controller Operation