Keysight VXI Bus 75000 C Series User And Programming Manual
Keysight VXI Bus 75000 C Series User And Programming Manual

Keysight VXI Bus 75000 C Series User And Programming Manual

Digital i/o module
Hide thumbs Also See for VXI Bus 75000 C Series:
Table of Contents

Advertisement

75000 Series C
User Manual and SCPI Programming
Keysight E1458A Digital I/O
Module

Advertisement

Table of Contents
loading

Summary of Contents for Keysight VXI Bus 75000 C Series

  • Page 1 75000 Series C User Manual and SCPI Programming Keysight E1458A Digital I/O Module...
  • Page 3 Warranty © Keysight Technologies, Inc. 1996-2019 No part of this manual may be repro- To contact Keysight for sales and techni- THE MATERIAL CONTAINED IN THIS duced in any form or by any means cal support, refer to the support links on DOCUMENT IS PROVIDED “AS IS,”...
  • Page 4 In Case of Damage Cleaning Instruments that appear damaged or Clean the outside of the Keysight mod- defective should be made inoperative ule/chassis with a soft, lint-free, and secured against unintended oper- slightly dampened cloth. Do not use ation until they can be repaired by detergent or chemical solvents.
  • Page 5 Safety Symbols A CAUTION denotes a hazard. It calls attention to an operating pro- cedure or practice, that, if not cor- rectly performed or adhered to could result in damage to the product or loss of important data. Do not proceed beyond a CAUTION notice until the indicated condi- tions are fully understood and met.
  • Page 7: Table Of Contents

    Combining the Flag Lines ......... 18 Installing the Keysight E1458A Digital I/O Module in a Mainframe ..20 Connecting to Peripheral Devices .
  • Page 8 MEASure:DIGital:DATAn[:type]:TRACe ......69 viii Keysight E1458A 96-Channel Digital I/O Module User Guidel...
  • Page 9 [SOURce:]DIGital:TRACe:DEFine? ....... 104 [SOURce:]DIGital:TRACe:DELete[:NAME] ......104 Keysight E1458A 96-Channel Digital I/O Module User Guidel...
  • Page 10 Port Normalization Register ........134 Keysight E1458A 96-Channel Digital I/O Module User Guidel...
  • Page 11 System Configuration ......... 138 6 Keysight E1458A Error Messages Keysight E1458A 96-Channel Digital I/O Module User Guidel...
  • Page 12 Keysight E1458A 96-Channel Digital I/O Module User Guidel...
  • Page 13: Getting Started

    Initial Operation page 17 Digital I/O Module Description The Keysight E1458A 96-Channel Digital I/O Module (referred to as the "digital I/O module") is a 12-port digital input/output module intended for data communication and digital control in electronic environments. The digital I/O module is compatible with TTL levels (0-5V) and CMOS levels (using an external pull-up).
  • Page 14 “BYTE” format, 16-bit “WORD” format (using two ports), 32-bit “LWORd” format (using four ports), 64-bit “LW64” format (using eight ports), and 96-bit “LW96” format (using all ports). Figure 1-1 Keysight E1458A Digital I/O Module Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 15 Table 1-1 shows the mapping of bit numbers from the 8-bit ports to the 16-, 32-, 64-, and 96-bit ports. Chapter 4, "Keysight E1458A Command Reference," describes each command in detail and Chapter 3, "Using the Keysight E1458A Digital I/O Module," gives some examples of the use of SCPI commands.
  • Page 16: Instrument Definition

    Downloading the SCPI Drivers The digital I/O driver allows the Keysight E1458A module to operate with an Keysight E1405B or E1406 Command Module using the Standard Commands for Programmable Instruments (SCPI) command language. The driver name for the digital I/O module is “DIG_IO”.
  • Page 17: Specifying Scpi Commands

    0, 1, OFF, or ON. The allowable values of the parameters are given in Chapter 4, "Keysight E1458A Command Reference" You must be sure to include a space between the SCPI keyword and any parameters.
  • Page 18 MEASure:DIGital:DATA0:LW96? Keywords are provided to allow port combinations of 16, 32, 64, or 96 bits. Using multiple ports is described in more detail in Chapter 3 of this manual. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 19: Initial Operation

    0 FLG line. The example uses an HP Series 200/300 Computer with BASIC as the programming language. The computer is connected to an Keysight 1406A Command Module in the C-Size VXIbus cardcage using the General Purpose Interface Bus (GPIB).
  • Page 20 Getting Started Initial Operation Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 21: Using This Chapter

    Digital I/O Module Using This Chapter This chapter shows how to configure the Keysight E1458A Digital I/O Module for use in a VXIbus mainframe, install it in a mainframe, connect peripheral devices, and configure the module for operation. This chapter contains the following...
  • Page 22: Setting The Address Switch

    I/O module to any number in the range of 0 to 255 (decimal). For the digital I/O module to be recognized as an instrument when you are using it with an Keysight E1405/E1406 Command Module and using SCPI commands, the logical address should be set to an integer multiple of 8.
  • Page 23 Setting the Address Switch Configuring the Keysight E1458A Digital I/O Module Figure 2-1 Logical Address Switch Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 24: Programming The Digital I/O Module

    The most common line to be used is line one, as this is the usual default interrupt line. Many VXIbus commanders have a way to change the interrupt line they manage (for example, the Keysight E1405/E1406 has an interrupt line allocation table). When doing direct register-based programming (instead of using the register-based SCPI driver), set the interrupt line to a line that is not used by the register-based SCPI driver.
  • Page 25 Setting the Interrupt Priority Configuring the Keysight E1458A Digital I/O Module Figure 2-2 Interrupt Priority Jumper Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 26: Enabling The Data Line Pull-Up Network

    This characteristic may be used to sense a contact closure to ground. When the data lines are inputs, the position of the pull-up enable switches makes no difference, as the pull-up enable is only for outputs. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 27 Enabling the Data Line Pull-up Network Configuring the Keysight E1458A Digital I/O Module Figure 2-3 Pull-up Enable Switches Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 28: Combining The Flag Lines

    Chapter 3 of this manual. When using the FLG and CTL for handshaking on multiple-port operations, the CTL line is set for each port sequentially beginning at the lowest- numbered port. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 29 Combining the Flag Lines Configuring the Keysight E1458A Digital I/O Module Figure 2-4 Flag Combining Switches Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 30: Installing The Keysight E1458A Digital I/O Module In A Mainframe

    Installing the Keysight E1458A Digital I/O Module in a Mainframe Installing the Keysight E1458A Digital I/O Module in a Mainframe The Keysight E1458A Digital I/O Module may be installed in any slot (except slot 0) in a C-size mainframe. Refer to Figure 2-5 to install the module in a mainframe.
  • Page 31 Installing the Keysight E1458A Digital I/O Module in a Mainframe Configuring the Keysight E1458A Digital I/O Module Figure 2-5 Installing the Module in a Mainframe Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 32: Connecting To Peripheral Devices

    Connecting to Peripheral Devices Connecting to Peripheral Devices Each of the four Keysight E1458A Digital I/O Module peripheral connectors has 64 pins. The connectors are compatible with industry standard 64-pin.100" X .100" wire mount sockets. A compatible socket can be obtained by ordering Keysight part number 1252-1581 (3M Part Number 7964-6500EC) for compatibility with 0.050"...
  • Page 33 Connecting to Peripheral Devices Configuring the Keysight E1458A Digital I/O Module Figure 2-6 Collector Pin Assignments Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 34 Configuring the Keysight E1458A Digital I/O Module Connecting to Peripheral Devices Figure 2-7 Connections Within the Ribbon Cable Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 35: Configuring For Isolated Digital I/O

    16 single-channel I/O lines. A cable designed to connect up to six ports to three Opto 22? racks is available from Keysight Technologies, either as Option 022 when ordering the Keysight E1458A, or as Keysight part number E1458-61604. Figure 2-7 shows the connections from six ports to three racks.
  • Page 36 Configuring the Keysight E1458A Digital I/O Module Configuring for Isolated Digital I/O Figure 2-8 Opto 22 Connections Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 37: Using The Keysight E1458A Digital I/O Module

    Keysight E1458A 96-Channel Digital I/O Module User Guide Using the Keysight E1458A Digital I/O Module Using This Chapter This chapter is divided into twelve sections and details how to use the Keysight E1458A Digital I/O Module. Port Description page 27 Addressing the Module...
  • Page 38: The Flg Line (Input)

    TTL High = TRUE = ON = 1 TTL Low = FALSE = OFF = 0 NEGative Polarity TTL High = FALSE = OFF = 0 TTL Low = TRUE = ON = 1 Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 39: The I/O Line (Output)

    Using the Keysight E1458A Digital I/O Module The I/O Line (Output) Each port has an I/O line. An I/O line is an output from the Keysight E1458A Digital I/O Module to the peripheral and has two states, TRU@E or FALSE. The state of the I/O line is not directly programmable.
  • Page 40: The Res Line

    I/O module operation. The UTS line can also be left unconnected to allow normal digital I/O module operation. See the section "Using the UTS Control Line" later in this chapter for a description of its use. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 41: Addressing The Module

    Each digital I/O module in a system must have a different logical address. Additionally, no two instruments in the same system can have the same logical address. Setting the logical address is described in Chapter 2, "Configuring the Keysight E1458A Digital I/O Module". Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 42: Operation Overview

    Using the Keysight E1458A Digital I/O Module Operation Overview Operation Overview The following steps illustrate general operation of the Keysight El458A Digital 1/0 Module. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 43: Default & Reset States

    Default & Reset States Using the Keysight E1458A Digital I/O Module Default & Reset States At initial power-on and following the *RST command, the Keysight E1458A Digital I/O Module is set to the following states: CTL line 0 = TTL Low...
  • Page 44: Setting The Polarity

    1 or a bit set to 1 will output a TTL High level. The *RST (reset) condition is positive polarity for control (CTL), flag (FLG), and data lines on all ports. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 45: Using The Handshake Modes

    In these discussions, only the FLG, CTL, and DATA lines are included. Other port control lines, controlled only through register access, are described in Appendix B of this manual. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 46 7. When the peripheral returns the to FALSE. FLG line to READY (indicating it has latched the data), the next handshake can begin. 8. The peripheral senses the CTL line and returns the FLG line to READY. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 47 FLG line to FLG line in the READY state and READY. returns CTL to FALSE. 8. The digital I/O module senses the FLG READY and latches the data. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 48 FLG READY, returns CTL to FALSE, change, sets the FLG line to BUSY and and latches the input data. latches the data. 7. When the data is entered, the peripheral returns the FLG line to READY. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 49 5. The digital I/O module senses the FLG line change to BUSY and latches change of the FLG line and sets CTL to the data. FALSE. 6. The digital I/O module then sets the CTL line FALSE. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 50 CTL to FALSE. NONE When handshake is set to NONE, no control or flag lines are used. The Keysight E1458A Digital I/O Module will input data or output data when programmed. The I/O line is set for output (LOW) before data is output. Data lines programmed for output will remain as output until another command is received.
  • Page 51 Handshake Timing Handshake timing is set through the SCPI commands [SOURce:]DIGital:DATAn[:type]:HANDshake:DELay <time> or [SOURce:]DIGital:HANDshakenDELay <time>. Handshake timing is generally used for data output operations. Timing for data input affects only STRobe handshake mode. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 52: Input/Output Of Data Bytes And Bits

    The SCPI command for inputting the state of a single bit on a data port is: MEASure:DIGital:DATAn[:type]:BITm? This command instructs the Keysight E1458A Digital I/O Module to return a value of either 0 or 1, indicating the condition of bit m on port n, following completion of the input handshake.
  • Page 53: Output

    The SCPI command requesting an 8-bit byte from a data port is: MEASure:DIGital:DATAn[:BYTE][:VALue]? This command instructs the Keysight E1458A Digital I/O Module to return a decimal value between 0 and 255, indicating the condition of the data lines on port n, following completion of the input handshake. The value returned depends upon the programmed state of the port POLarity.
  • Page 54 The SCPI command syntax to send an 8-bit byte to a data port is: [SOURce:]DIGital:DATAn[:BYTE][:VALue] [<base>]<value> This command instructs the Keysight E1458A Digital I/O Module to set the port n data lines to <value> using the output handshake. The optional parameter <base>...
  • Page 55: Multiple-Port Operations

    Bit 0 Multiple-Port Operations The Keysight E1458A Digital I/O Module supports multiple-port operations. You can combine operations using 2, 4, 8, or all 12 ports with a single SCPI command. Multiple-port operations are shown in the SCPI command syntax as the optional keyword [:type].
  • Page 56: Multiple-Port Handshaking

    FLG lines can also be electrically combined through a switch setting (see Chapter 2). Multiple-Port Input/Output Data input is performed using commands in the SCPI MEASure:DIGigital:DATAn[:type] subsystem. Data output is performed using the commands in SCPI [SOURce:]DIGital:DATAn[:type] subsystem. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 57 Table 3-1 shows allowable port combinations for each value of [:type] and the order of the values for LW64 and LW96 operations. You can combine multiple-port operations on the same Keysight E1458A Digital I/O Module. For example, you could define two multiple-data ports as a 64-bit port 0 and a 32-bit port 8.
  • Page 58 D11_7 — D0_0 — D1_0 — D_0 — — — D5_0 — D6_0 — D7_0 — D8_0 — D9_0 — D10_0 — D11_0 D3_0 D4_0 Parameters 1st <value> 2nd <value> 3rd <value> Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 59: Using The Uts Control Line

    Using the Keysight E1458A Digital I/O Module Using the UTS Control Line The UTS line can be used to prevent the Keysight E1458A Digital I/O Module from sourcing data on the data lines, independent of the programmed state of the port. A high or open on the UTS line allows the port to operate normally.
  • Page 60 Using the Keysight E1458A Digital I/O Module Using the UTS Control Line Figure 3-1 UTS Line Active Configuration Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 61: Using As An Open Collector Output

    Using the Keysight E1458A Digital I/O Module Using as an Open Collector Output The Keysight E1458A Digital I/O Module data lines can be used in an open collector configuration. Connections for open collector require the use of external power supplies and pull-up resistors. The internal pull-up mode of the digital I/O module MUST be disabled for open collector output.
  • Page 62: Typical Connection

    3.2 mA to pull the line to less than 0.4 V. The I/O, CTL, and RES lines are open collector and require external pull-up to logic high. Figure 3-3 Typical Driver/Receiver Connections Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 63: Program Examples

    Using the Keysight E1458A Digital I/O Module Program Examples The following BASIC program examples demonstrate a few of the uses of the Keysight E1458A Digital I/O Module. The hardware setup needed to support the example is described. Checking Data Lines This example checks for stuck data lines on all ports.
  • Page 64: Setting Polarity And Handshake

    Port 0 CTL and FLG lines are not used or connected. 10 RE-SAVE "Pol_hnd! 20 ASSIGN @Dio TO 70918! 30 INTEGER Ready, Words,Bits! 40 OUTPUT @Dio;"*RST;*OPC?"! 50 ENTER @Dio;Ready! Wait for completion. 60 OUTPUT @Dio;"SOUR:DIG:CONT1:POL NEG;*OPC?" ! Set CTL polarity. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 65: Using Trace Memory

    Byte swapping may occur when using the :TRACE commands with Keysight SCPI. If you are using a Motorola processor, the bytes are written or read to memory with the lowest port receiving the least significant byte (the case when directly addressing the port through SCPI commands).
  • Page 66: Trace Memory Example 1

    110 ENTER @Dio;Ready! Wait for completion. 120 OUTPUT @Dio;"MEM:VME:STAT ON;*OPC?" ! Enable memory. 130 ENTER @Dio;Ready! Wait for completion. 140 OUTPUT @Dio;"SOUR:DIG:TRAC:DEF alpha,100;*OPC?" ! Define memory name alpha. 150 ENTER @Dio;Ready! Wait for completion. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 67: Trace Memory Example 3

    100 ENTER @Dio;Ready! Wait for completion. 110 OUTPUT @Dio;"SOUR:DIG:TRAC:DATA? alpha" 120 ENTER @Dio USING "4A,40(W)"; Head$;A(*) 130 OUTPUT @Dio;"SOUR:DIG:TRACE:DEL alpha;*OPC?" ! Request the data. ! Remove memory block. 140 ENTER @Dio;Ready! Wait for completion. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 68 Using the Keysight E1458A Digital I/O Module Program Examples Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 69: Keysight E1458A Command Reference

    Reference Using This Chapter This chapter describes Standard Commands for Programmable Instruments (SCPI) and summarizes IEEE 488.2 Common (*) commands applicable to the Keysight E1458A Digital I/O Module. This chapter contains the following sections: Command Fundamentals page 59 SCPI Command Reference...
  • Page 70: Scpi Command Format

    Command keywords can be entered in their full form as shown above, or can be entered in their short form. In this manual, the entry required in short form commands is always capitalized. The short form is generally used for examples in this manual. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 71 Selects from a finite number of values. These parameters use mnemonics to represent each valid setting. An example is the DIGital:CONTroln:POLarity <polarity> command where the parameter <polarity> can be either POS or NEG. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 72: Scpi Command Reference

    SCPI Command Reference The following sections describe the Standard Commands for Programmable Instruments (SCPI) commands for the Keysight E1458A Digital I/O Module. Commands are listed alphabetically by subsystem and within each subsystem. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 73: Display Subsystem

    In the AUTO mode of operation, the display shows the state of the port last programmed. MIN sets port 0. MAX sets port 11. No parameter or DEF sets AUTO mode of operation. – Related Commands: DISPlay:MONitor[:STATe] DISPlay:MONitor:PORT? – *RST Condition: AUTO Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 74: Display:monitor:port

    0 | 1, OFF | ON None Comments – DISP:MON ON enables the terminal display of port parameters. The parameters are updated to the terminal following each new command accessing a port. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 75: Display:monitor[:State]

    DISP:MON ON displays the state of the last port programmed. DISPlay:MONitor[:STATe]? DISPlay:MONitor[:STATe]? returns the state of the monitor mode. Parameters None Comments DISPlay:MONitor[:STATe]? returns a 1 if the monitor mode is on or a 0 if the monitor mode is off. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 76: Measure Subsystem

    Keysight E1458A Command Reference MEASure Subsystem MEASure Subsystem The MEASure subsystem defines the command set for the Keysight E1458A Digital I/O Module input statements Subsystem Syntax MEASure :DIGital :DATAn [:BYTE] :BITm? :TRACe <name> [:VALue]? :WORD :BITm? :TRACe <name> [:VALue]? :LWORd or :LW32 :BITm? :TRACe <name>...
  • Page 77 – ? The keyword LW32 may be used instead of LWORd. – Chapter 3, "Using the Keysight E1458A Digital I/O Module," describes the byte order of mutltiple-byte reads. – ? :DATAn is the keyword used for commands relating to the data at port n.
  • Page 78: Measure:digital:datan[:Type]:Bitm

    DATAn keyword, no space can be between the keyword BIT and the m parameter. – If n is omitted, port 0 is used. If m is omitted, bit 0 is used. – Related Commands: SOURce:DIGital:DATAn:POLarity Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 79: Measure:digital:datan[:Type]:Trace

    The block size must by an integer multiple of the [:type] keyword used in this command. For example, valid block sizes for LWORd are 4, 8, 12, 16 etc. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 80: Measure:digital:flagn

    MEASure:DIGital:FLAGn? may be affected by the condition of the flag combining jumpers. Refer to Chapter 2 for additional information. – Related Commands: [SOURce:]DIGital:CONTroln:POLarity? [SOURce:]DIGital:CONTroln[:VALue] [SOURce:]DIGital:FLAGn:POLarity [SOURce:]DIGital:FLAGn:POLarity? Example MEAS:DIG:FLAG1? reads the port1 flag line. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 81: Memory Subsystem

    The maximum length for <name> is 12 characters. – This command purges a single, specific macro; the *PMC Common command purges all macros. Example MEM:DEL:MACR test_macro deletes macro named test_macro previously defined using the *DMC Common command. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 82: Memory:vme:address

    ON using the MEMory:VME:STATe command. – Related Commands: SOUR:DIG:TRAC:DEF <name>,<size> MEMory:VME:ADDress? MEMory:VME:SIZE <size> MEMory:VME:STATe <ON or OFF> – *RST Condition: #H200000. Example MEM:VME:ADDR #H200000 sets the starting VME address to 20000016. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 83: Memory:vme:address

    <base> specifies the numeric format as decimal, hexadecimal, octal, or binary. IEEE-488.2 specifies the following values for this parameter: – Decimal = no parameter Hexadecimal = #H Octal = #Q Binary = #B Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 84: Memory:vme:size

    0 or 1, OFF or ON None Comments – Related Commands: SOUR:DIG:TRAC:DEF <name><size> SOUR:DIG:TRAC[:DATA] <name><block_data> MEMory:VME:ADDress <address> MEMory:VME:SIZE <size> – *RST Condition: Set to OFF. Example MEM:VME:STAT ON enables access to the VME memory. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 85: Memory:vme:state

    MEMory:VME:STATe? queries the state of the external memory flag. Parameters None Comments This command returns a 0 or a 1, indicating external memory is OFF or ON. – Related Commands: MEMory:VME:ADDRess?[<MIN or MAX>] MEMory:VME:SIZE?[<MIN or MAX>] Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 86: [Source:] Subsystem

    [SOURce:] Subsystem [SOURce:] Subsystem The [SOURce:] subsystem defines the command set for the Keysight E1458A Digital I/O Module output statements. It also defines the state and polarity of the control line (CTL), the polarity of the flag line (FLG), the handshaking mode, and handshake delay for both data input and output.
  • Page 87 :BITm <0 | 1> :BITm? :BITm MONitor? :HANDshake :DELay <time> :DELay? [:MODE] <NONE | LEADing | TRAiling | PULSe | PARTial | STRobe> [:MODE]? :MONitor? :POLarity <POS | NEG> :POLarity? :TRACe <name> [:VALue] [<base>]<value> [:VALue]? Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 88 :POLarity? :HANDshaken :DELay <time> :DELay? [:MODE] <NONE | LEADing | TRAiling | PULSe | PARTial | STRobe> [:MODE]? :IOn? :TRACe :CATalog? [:DATA] <name><block_data> [:DATA]? <name> :DEFine <name><size>[<fill>] :DEFine? <name> :DELete [:NAME]<name> :ALL Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 89: [Source:]Digital:controln:polarity

    [SOURce:]DIGital:CONTroln:POLarity? returns a three-character string, either POS or NEG, indicating the logical true condition of the control (CTL) line at port n. Parameters Parameter Name Parameter Type Range of Values Default CONTroln Numeric none, 0 through 11 Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 90: [Source:]Digital:controln[:Value]

    Related Commands: [SOURce:]DIGital:CONTroln:POLarity [SOURce:]DIGital:CONTroln:POLarity? [SOURce:]DIGital:CONTroln:[:VALue]? [SOURce:]DIGital:FLAGn:POLarity [SOURce:]DIGital:FLAGn:POLarity? *RST Condition: Clears the control line; i.e., sets the control line to logical 0. Example DIG:CONT2 1 sets the 8-bit port 2 control line true. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 91: [Source:]Digital:controln[:Value]

    LW96 none or 0 BITm Numeric BYTE 0 - 7 None WORD 0 - 15 LWORd 0 - 31 LW64 0 - 63 LW96 0 - 95 <value> Numeric 0 or 1 None Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 92: [Source:]Digital:datan[:Type]:Bitm

    Range of Values Default DATAn Numeric BYTE none, 0 through 11 WORD none, 0, 2, 4, 6, 8, or 10 LWORd none, 0, 4, or 8 LW64 none or 0 LW96 none or 0 Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 93 For 64-bit or 96-bit operations using :LW64 or :LW96, n must be 0. – Related Commands: [SOURce:]DIGital:DATAn[:VALue] [SOURce:]DIGital:DATAn:POLarity Example DIG:DATA3:BIT4:VAL? returns a 0 or 1 indicating the last programmed state of bit 4 on port 3. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 94: [Source:]Digital:datan[:Type]:Bitm:monitor

    :DATAn and :BITm are the keywords used to write data to port n and bit m. The port number n and bit number m must be the last character of the keyword without spaces. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 95: [Source:]Digital:datan[:Type]:Handshake:delay

    200 ?s to 1.5 ms 2ms to 15ms Discrete MIN | MAX | DEF Comments – This command is related to the handshake mode in use. Chapter 3 describes the handshake modes and timing. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 96: [Source:]Digital:datan[:Type]:Handshake:delay

    0 and .015. [SOURce:]DIGital:DATAn:LWORd:HANDshake:DELay? queries for the delay between data output and the control line for data output at the 32-bit port n and returns a decimal number between 0 and .015. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 97: [Source:]Digital:datan[:Type]:Handshake[:Mode]

    (CTL) line, the flag (FLG) line, and when data is transferred in either direction between the Keysight E1458A Digital I/O Module and a peripheral on 8-bit port n. [SOURce:]DIGital:DATAn:WORD:HANDshake[:MODE] <mode> selects the handshake mode used on the 16-bit port n.
  • Page 98: [Source:]Digital:datan[:Type]:Handshake[:Mode]

    The port number n must be the last character of the keyword without spaces. – NONE deletes all automatic data handshaking between the Keysight E1458A Digital I/O Module and the peripheral. For custom handshaking, the control and the flag lines are controlled by the DIGital:CONTroln and MEAS:DIGital:FLAGn commands.
  • Page 99 The port number n must be the last character of the keyword without spaces. – Related Commands: [SOURce:]DIGital:HANDshaken:[DELay] [SOURce:]DIGital:CONTroln:POLarity [SOURce:]DIGital:CONTroln[:VALue] [SOURce:]DIGital:FLAGn:POLarity – *RST Condition: Mode is NONE on all ports. Example DIG:DATA3:HAND? returns the handshake mode set on port 3. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 100: [Source:]Digital:datan[:Type]:Monitor

    The port number n must be the last character of the keyword without spaces. – The keyword LW32 may be used instead of LWORd. – Related Commands: [SOURce:]DIGital:DATAn[:type]:POLarity – *RST Condition: Mode is NONE on all ports. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 101: [Source:]Digital:datan[:Type]:Polarity

    :DATAn is the keyword used for commands relating to the data lines at port n. The port number n must be the last character of the keyword without spaces. – Related Commands: [SOURce:]DIGital:DATAn:POLarity? [SOURce:]DIGital:DATAn[:VALue] [SOURce:]DIGital:DATAn:BITm – *RST Condition: POLarity = POSitive Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 102: [Source:]Digital:datan[:Type]:Polarity

    32-bit port n whenever the port is ready to start a new handshake. [SOURce:]DIGital:DATAn:LW64:TRACe <name> writes the named block of data to the 64-bit port whenever the port is ready to start a new handshake. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 103: [Source:]Digital:datan[:Type][:Value]

    [SOURce:]DIGital:DATAn:LW64[:VALue] [<base>]<value> writes data to the 64-bit port. Values can be binary, octal, decimal, or hexadecimal. [SOURce:]DIGital:DATAn:LW96[:VALue] [<base>]<value> writes data to the 96-bit port. Values can be binary, octal, decimal, or hexadecimal. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 104: [Source:]Digital:datan[:Type][:Value]

    [SOURce:]DIGital:DATAn[:BYTE][:VALue]? returns the programmed state of 8-bit port n as a decimal number between 0 and 255. [SOURce:]DIGital:DATAn:WORD[:VALue]? returns the programmed state of 16-bit port n as a decimal number between -32768 and 32767. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 105 The port number n must be the last character of the keyword without spaces. – Related Commands: [SOURce:]DIGital:DATAn:BITm [SOURce:]DIGital:DATAn:POLarity – *RST Condition: All ports are set for data input. Example DIG:DATA3? returns the decimal equivalent of the data lines on 8-bit port 3. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 106: [Source:]Digital:flagn:polarity

    0 through 11 Example SOURCE:DIGITAL:FLAG0:POLarity? uses long commands to query the state of the logical true condition on port 0. DIG:FLAG0:POL? performs the same function as the example above with short commands. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 107: [Source:]Digital:handshaken:delay

    1.5 ms > <time> < 2.0 ms The controller uses a rounded-up value for <time> if these values are specified. – Related Commands: [SOURce:]DIGital:HANDshaken[:MODE] [SOURce:]DIGital:CONTroln:POLarity [SOURce:]DIGital:CONTroln[:VALue] [SOURce:]DIGital:FLAGn:POLarity – *RST Condition: Delay is set to 2 µs. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 108: [Source:]Digital:handshaken:delay

    8-bit port n. The port number n must be the last character of the keyword without spaces. Example DIG:HAND0:DEL? queries the delay time between data valid and the assertion of the control line to TRUE on 8-bit port 0. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 109: [Source:]Digital:handshaken[:Mode]

    (CTL) line, the flag (FLG) line, and when data is transferred in either direction between the Keysight E1458A Digital I/O Module and a peripheral on 8-bit port n. This form of the HANDshake command operates only on 8-bit ports.
  • Page 110: [Source:]Digital:handshaken[:Mode]

    -- When digital I/O module is programmed to input data, the I/O line is set high. – :IOn is the keyword used for commands relating to the I/O line at port n. The port number n must be the last character of the keyword without spaces. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 111: [Source:]Digital:trace:catalog

    <block_data> is of the form <#digits><length><block> where: <#digits> tells how many digits are used to define <length>; <length> tells how many bytes are to be transferred in <block>; <block> contains the actual data to transfer. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 112: [Source:]Digital:trace[:Data]

    The maximum length for <name> is 12 characters. Example DIG:TRACe? first_block reads data from a block named first_block. If the previous command example is sent, this command will return the string #210ABCDEFGHIJ. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 113: [Source:]Digital:trace:define

    MEMory:VME:STATe OFF command has been used, this command will create blocks in the system memory. Example DIG:TRAC:DEF first_block, 256 defines a 256-byte user memory block named first_block and fills each byte with a zero. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 114: [Source:]Digital:trace:define

    <name> must have been previously defined by a DIGital:TRACe:DEFine command. The maximum length for <name> is 12 characters. Example DIG:TRACe:DEL first_block deletes a user memory block named first_block. [SOURce:]DIGital:TRACe:DELete:ALL [SOURce:]DIGital:TRACe:DELete:ALL deletes all previously defined user memory data blocks. Parameters None Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 115: Status Subsystem

    7, for the Questionable Signal status register it is bit 3, and for the Standard Event registers it is bit 5. This subsystem is provided for compatibility. The Keysight E1458A Digital I/O Module does not use the Operation status or Questionable status registers.
  • Page 116: Status:operation:enable

    Parameter Type Range of Values Default <mask> Numeric or non-decimal numeric 0 through 32767 None The non-decimal numeric forms are the # H, # Q, or # B formats specified by IEEE-488.2. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 117: Status:questionable:enable

    Keysight E1458A Command Reference STATus:QUEStionable:ENABle? STATus:QUEStionable:ENABle? returns the mask set for the Questionable status register. STATus:QUEStionable[:EVENt]? STATus:QUEStionable[:EVENt]? returns the contents of the Questionable status event register. Reading the register clears all bits in the register. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 118: System Subsystem

    Default <module> Numeric None Comments – The <module> is the instrument number. Because each Keysight E1458A Digital I/O Module is a single instrument, <module> is always 1. – The command returns the following string: 96-Channel Digital I/O SYSTem:CTYPe? SYSTem:CTYPe? <module> returns the module number and manufacturer.
  • Page 119: System:error

    SYSTem:VERsion? returns the SCPI version to which this instrument complies. Comments – Returns a decimal value in the form: YYYY.R; where YYYY is the year, and R is the revision number within that year. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 120: Ieee 488.2 Common Commands

    IEEE 488.2 Common Commands The following table lists the IEEE 488.2 Common (*) commands that can be executed by the Keysight E1458A 96-Channel Digital I/O Module. For more information on Common commands, refer to ANSI/IEEE Standard 488.2-1987. These commands apply to many instruments and are not documented in detail here.
  • Page 121 Remove Macros Removes all macros. LMC? List Macros Lists macros by name. *DMC Define Macro Defines a macro. *GMC? Menu Query Gets results of menu query. *PMC Purge Macros Purges all system macros. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 122: Command Quick Reference

    Sets the state (ON or OFF) of the assigned VME memory. When this is OFF, all memory commands refer to the base system memory. Returns the current state (0 or 1) of the add-on VME memory. VME:STATe? Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 123 Returns a decimal value indicating the programmed state of the data lines on the selected port. DIGital:DATAn[:type][:VALue]? Sets logical true level of the flag line on the selected port. DIGital:FLAGn:POLarity <POS | NEG> Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 124 Returns contents of Condition register. STATus:OPERation:CONDition? Sets mask for Enable register. :OPERation:ENABle <mask> Returns mask set in Enable register. :OPERation:ENABle? Returns the content of the Event register. :OPERation[:EVENt]? Clears Enable registers. :PRESet Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 125 Returns a string description of the module. :CTYPe? <number> Returns a string of the model number. :ERRor? Returns the contents of the system error register. :VERsion? Returns the SCPI version to which this instrument complies. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 126 Keysight E1458A Command Reference Command Quick Reference Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 127: Specifications

    Keysight E1458A 96-Channel Digital I/O Module User Guide Specifications Logic Levels: Typical Data Line Current vs. Data Line Voltage TTL Compatible, 5V max Data Lines: Iout (High): -5.2 mA @ Vout (High): 2.5 V (Pullup Enabled) Iout (Low): 48 mA @ Vout (Low): 0.5V...
  • Page 128 Specifications Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 129: Keysight E1458A Register Information

    (4016). The address of a module is determined by its logical address (set by the address switches on the module) times 64 (4016). In the case of the Keysight E1458A Digital I/O Module, the factory setting is 144 or 9016, so the addresses start at 1FE40016.
  • Page 130 Keysight E1458A Register Information Addressing the Registers Figure B-1 Register Address Location Within A16 Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 131 Addressing the Registers Keysight E1458A Register Information Figure B-2 A16 Address Space in the E1405/E1406 Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 132: The Base Address

    This address consists of a base address plus a register offset. The base address used in register-based programming depends on whether the A16 address space is outside or inside the Keysight E1405/E1406 Command Module. A16 Address Space Outside the Command Module When the Keysight E1405/E1406 Command Module is not part of your VXIbus system (Figure B-1), the Keysight E1458A’s base address is computed as:...
  • Page 133: Register Offset

    E40016 + 0416 = E40416 1FE40016 + 0416 = 1FE40416 58,368 + 4 = 58,372 2,089,984 + 4 = 2,089,988 Table B-1 shows the general programming method for accessing the Keysight E1458A Digital I/O Module’s registers using different computers. Table B-1. System...
  • Page 134: Register Definitions

    Keysight E1458A Register Information Register Definitions Register Definitions You can program the Keysight E1458A 96-Channel Digital I/O Module using its hardware registers. The procedures for reading or writing to a register depend on your operating system and programming language. Whatever the access method, you will need to identify each register with its address.
  • Page 135 Registers have been documented as 8-bit bytes. If you access them using 16-bit transfers from a Motorola CPU, the high and low byte will be swapped. The Keysight command modules (E1405/E1406) use Motorola CPUs. Motorola CPUs place the higher weighted byte in the lower memory location and the lower weighted byte in the higher memory address;...
  • Page 136: Register Descriptions

    Keysight E1458A Register Information Register Descriptions Register Descriptions The following pages detail each register in the Keysight E1458A Digital I/O Module. Registers are listed by name in the order shown in the register map, Table B-2. Manufacturer Identification Register The Manufacturer Identification Register is a 16-bit read-only register with the Most Significant Byte (MSB) at address 0016 and Least Significant Byte (LSB) at address 0116.
  • Page 137: Card Interrupt Status Register

    The following table shows the register bit patterns. base+ 0816 base+0916 In set to 1 indicates an interrupt was generated by the port controller n. These bits are cleared after a soft or hard reset. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 138: Port Interrupt Control Register

    — Bits (0-3). Unused IL0 and IL1 (Interrupt Level). Both bits must be left at 0 to initialize the Keysight E1458A Digital I/O Module for interrupt operation. IP (Interrupt pending). When equal to 1, indicates an interrupt is pending. This is a read/write bit.
  • Page 139: Port Transfer Control Register

    (low to high) transition caused the interrupt. If bit 4 is set to 1, a falling-edge (high to low) transition caused the interrupt. Refer to the Port Normalization Register for more information. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 140: Port Control/Status Register

    RES line by writing to this bit. Set bit 5 equal to 1 to change RES to the high state. The peripheral will then operate normally. To reset the peripheral, set bit 5 to 0, putting RES in the low state. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 141: Port Data Register

    If you write to the Port Data Register, the data is latched for output, but the data lines are not affected until I/O is again set for output. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 142: Port Handshake Register

    Port Handshake Register The Port Handshake Register determines the type of handshake protocol used for the port data transfers and how the data is transferred from the Keysight E1458A Digital I/O Module to the mainframe on the VXIbus. The ports affected by this register are set by the BB1 and BB0 bits in the Card Status/Control Register.
  • Page 143: Port Delay Register

    RM (0,1)(Range Multiplier). You can specify the range of delay time, Td, by selecting the one of the range multipliers in Table B-5. Table B-5. Range Multipliers. Range RM1 (Bit 1) RM0 (Bit 0) Multiplier 1 ms µ µ µ Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 144: Port Normalization Register

    BB1 and BB0 bits in the Card Status/Control Register. base+3816, base+3916, base+3A16, base+3B16 ICTL IFLG IPIR — — — — Bits 0 - 3. Unused. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 145: Port State Sense Register

    D0-D7 correspond to data lines Dn_0 through Dn_7. Bit 7 is the most significant bit. The values of these bits are not affected by the Port Normalization Register. A 1 indicates a data line in the TTL High condition. Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 146: A Register-Based Output Algorithm

    The algorithm follows a flag-driven output procedure initiated by the computer. The computer polls the Keysight E1458A Digital I/O Module to see if the data has been accepted by the peripheral by checking the Port Transfer/Control Register, bit 0 (referred to as the acknowledge flag --- hence, the name of flag-driven).
  • Page 147: A Register-Based Input Algorithm

    The algorithm follows a flag-driven input procedure initiated by the computer. The computer polls the Keysight E1458A Digital I/O Module to see if the data has been transmitted by the peripheral by checking the Port Transfer/Control Register, bit 0 (referred to as the acknowledge flag --- hence, the name flag-driven).
  • Page 148: Programming Example

    – Handshaking a port System Configuration The following example programs were developed with the module at logical address 144. The C language programs were developed on an Keysight V382 using ANSI C programming language and SICL (Standard Instrument Control Library).
  • Page 149 (id == 0){ errnum = igeterrno(); printf ("iopen failed: error = %d,%s\n\n",errnum,igeterrstr(errnum)); exit (-1); } /* get base address */ Continued on next page. base_addr = imap(id,I_MAP_VXIDEV,0,0,NULL); if (base_addr == NULL){ errnum = igeterrno(); Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 150 = count++; if (count == 100) { printf("DRR bit not ready "); exit (-1); } data_byte = ibpeek(base_addr + port_data_3); printf(("port data register value = %02X\n",data_byte); /* disable port handshake */ Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 151 Programming Example Keysight E1458A Register Information iwpoke((base_addr + card_stat),bank_2); ibpoke((base_addr + port_xfr_1),0x00); iwpoke((base_addr + card_stat),bank_3); ibpoke((base_addr + port_xfr_3),0x00); return 0; } Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 152 Keysight E1458A Register Information Programming Example Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 153: Keysight E1458A Error Messages

    Inconsistent parameter value or block not found. -240 Hardware Error Hardware error detected during power-on cycle. Return digital I/O module to Keysight Technologies for repair. -410 Query Interrupted Data is not read from the output buffer before another command is issued.
  • Page 154 Duplicate memory block name The memory block name specified already exists. 2030 Invalid number of bytes for TRACE The number of bytes specified in a trace does not match the [:type] set. access TYPE Keysight E1458A 96-Channel Digital I/O Module User Guide...
  • Page 156 This information is subject to change without notice. © Keysight Technologies, 1996-2019 Printed in Malaysia Edition 3, October 2019 *E1458-90002* E1458-90002 www.keysight.com...

This manual is also suitable for:

E1458a

Table of Contents