Page 2 - Chapter 3
2 Contents Chapter 3 HP E1459A SCPI Command Reference .................................................................... 39 DIAGnostic:SYSReset Subsystem ............................................................................. 41 DIAGnostic:SYSReset[:STATe]? .....................................
Page 3 - Appendix A
Contents 3 STATus:QUEStionable:CONDition? ................................................................. 66STATus:QUEStionable:ENABle <mask> .......................................................... 66STATus:QUEStionable:ENABle? ................................................................
Page 9 - Reader Comment Sheet; BUSINESS REPLY MAIL; HEWLETT-PACKARD COMPANY
NO POSTAGE NECESSARY IF MAILED IN THE UNITED STATES fold here Please fold and tape for mailing Reader Comment Sheet HP E1459A / Z2404B 64-Channel Isolated Input / Interrupt Module User’s Manual Edition 3 You can help us improve our manuals by sharing your comments and suggestions. In appreciation of...
Page 11 - Chapter 1; Installing and Configuring the HP E1459A; ) provides 64 isolated digital input; Functional Description; Figure 1-1 shows the functional block diagram for the module.
Installing and Configuring the HP E1459A 11 Chapter 1 Installing and Configuring the HP E1459A The HP E1459A 64-Channel Isolated Digital Input/Interrupt module (formerly known as the HP Z2404B 1 ) provides 64 isolated digital input channels configured as four 16-bit ports. The module is used for sen...
Page 14 - Programmable; Hz. The 4 to 4.5 clock period requirements of
14 Installing and Configuring the HP E1459A Watchdog Timer The HP E1459A provides a programmable timer facility which, in the event of time-out, will generate a "system wide" reset to all other card-cage modules. This timer may be disabled by the SCPI command DIAG:SYSR:ENAB OFF. Input Level ...
Page 15 - Input Edge; Caution
Installing and Configuring the HP E1459A 15 Caution The user MUST ensure, based upon the programmed debounce period and internal delays, that data to be captured has propagated the debouncers and is fully setup prior to the assertion of the externally generated capture clock. The module has two prim...
Page 16 - Edge Detection
16 Installing and Configuring the HP E1459A Edge Detection Examples Figure 1-3 demonstrates a typical example. A channel that has been programmed to detect both positive and negative edge transitions posts a marker at the occurrence of a positive edge. Before user software can service this interrupt...
Page 17 - Input Data Capture
Installing and Configuring the HP E1459A 17 Input Data Capture The state of any channel, within any channel group, may be captured for subsequent processing (as data) by an externally sourced capture clock (XTRIG0N - XTRIG3N, the external trigger inputs for each port). Data channels may be intersper...
Page 18 - Front Panel Markers
18 Installing and Configuring the HP E1459A Front Panel Markers All "Data Available" and "Edge Detect" marker bits are physically available via the HP E1459A front panel. These outputs are TTL/HC compatible and may be used to trigger other system-wide events or to provide logging inf...
Page 19 - Configuring for Installation; Logical Address dip switch
Installing and Configuring the HP E1459A 19 Configuring for Installation Before installing the module you should verify that the following jumpers and switches are set correctly. • Logical Address dip switch • Interrupt priority jumper positions • Input threshold levels • Reset time of the Watchdog ...
Page 20 - Setting the Logical; Note
20 Installing and Configuring the HP E1459A Setting the Logical Address Each module within the VXIbus mainframe must be set to a unique logical address. The setting is controlled by an 8 pin dip switch. This allows for values from 0 to 255. The factory setting of this switch is decimal 144. No two m...
Page 21 - Setting Input
Installing and Configuring the HP E1459A 21 Setting Input Threshold Levels The threshold levels for each channel can be set independently. A six pin plug with a two pin shorting jack is provided for each channel. The channel can be identified from the silk-screen on the board. Each jumper is labeled...
Page 22 - Connecting User
22 Installing and Configuring the HP E1459A Connecting User Inputs The HP E1459A Isolated Digital Input/Interrupt module consists of a component module and a terminal block. User inputs for each channel consists of a low and a high connection for each channel. The inputs will only detect signals of ...
Page 24 - Installing the HP
24 Installing and Configuring the HP E1459A Installing the HP E1459A in a VXIbus Mainframe The HP E1459A may be installed in any C-size VXIbus mainframe slot (except slot 0). Refer to Figure 1-8 to install the module in a mainframe. Figure 1-8. Installing the HP E1459A in a VXIbus Mainframe WARNING ...
Page 25 - Terminal Block; Wiring Guidelines; Be sure the wires make solid connections in the screw terminals.
Installing and Configuring the HP E1459A 25 Terminal Block The HP E1459A includes both the input / interrupt module and a screw-type standard terminal block. User inputs to the terminal block are to the High and Low for each channel, +5Volt, Ground, Data Valid (DAV0 - DAV3), External Trigger (XTRIG0...
Page 26 - Wiring a Terminal; Continued on Next Page
26 Installing and Configuring the HP E1459A Wiring a Terminal Block The following illustrations show how to connect field wiring to the terminal block. Continued on Next Page
Page 29 - Chapter 2
Using the HP E1459A Module 29 Chapter 2 Using the HP E1459A Module This chapter provides examples of using and programming the HP E1459A using the Standard Commands for Programmable Instrumentation (SCPI). For detailed information on all the SCPI commands for this module, refer to Chapter 3. Appendi...
Page 30 - Clock Source is Internal; and Module ID
30 Using the HP E1459A Module Power-on / Reset States At power-on or reset (*RST) the HP E1459A is set to the following conditions: • Watchdog timer is off (disabled). • Clock Source is Internal • Input Debounce Time is 18.0 µ S. • DAV (Data Available) Event interrupts are disabled for all ports. • ...
Page 32 - type; Digital Input
32 Using the HP E1459A Module Digital Input The HP E1459A is capable of simple digital inputs on any of the individual four ports or combined Ports 0 and 1 or Ports 2 and 3. The MEASure command subsystem (see Chapter 3 for details) provides two commands for reading the current value of the input por...
Page 34 - Edge Detected Event Detection; Polling the Port; SRQ Interrupt
34 Using the HP E1459A Module Edge Detected Event Detection The HP E1459A can respond to two types of events: Edge Events (either negative edge, positive edge, or both) and Data Available. Figures 2-1 and 2-2 show the general flow of commands necessary to program the HP E1459A to detect events. Figu...
Page 35 - HP E1459A Edge Event Detection Flowchart
Using the HP E1459A Module 35 Figure 2-1. HP E1459A Edge Event Detection Flowchart Unmask all 16 bits of Port. (Either Positive, Negative, or both.) Optionally, set the Debounce Time Enable the Edge Detection Wait for the Event to Occur. Do one of the following: 1. Poll the Port Summary Register 2. ...
Page 36 - HP E1459A Data Available Event Detection Flowchart
36 Using the HP E1459A Module Figure 2-2. HP E1459A Data Available Event Detection Flowchart Optionally, set the Debounce Time Enable the DAV Detection Wait for the Event to Occur. Do one of the following: 1. Poll the Port Summary Register 2. Poll the Status Subsystem 3. Use SRQ to interrupt INPut n...
Page 37 - Edge Interrupt
Using the HP E1459A Module 37 Example 3: Edge Interrupt This example repeatedly polls the Port 0 Port Summary Edge Detection Register to determine when an edge event occurs. When an event occurs, the program reads the values of the Positive and Negative Edge Registers and returns the values. The val...
Page 39 - HP E1459A SCPI Command Reference; Common Command Format; Command; ) and the second level from the third level (; Abbreviated
HP E1459A SCPI Command Reference 39 Chapter 3 HP E1459A SCPI Command Reference The Standard Commands for Programmable Instruments (SCPI) commands described in this chapter are only available in the downloadable SCPI driver for the HP Command Modules such as the HP E1406. If you are not using a comma...
Page 41 - DIAGnostic:SYSReset Subsystem; None
HP E1459A SCPI Command Reference 41 DIAGnostic:SYSReset Subsystem The DIAGnostic:SYSReset Subsystem controls and monitors the Watchdog Timer. Refer to Chapter 1 for detailed information on the Watchdog Timer. Syntax DIAGnostic:SYSReset [:STATe]? page 41 :ENABle <state> page 41 :ENABle? page 42...
Page 42 - Parameters; Comments
42 HP E1459A SCPI Command Reference DIAGnostic:SYSReset:ENABle? Returns the state of the Watchdog Timer as either a (unsigned) 1, or 0. Parameters None Comments Returns a 1 if the Watchdog Timer is enabled. Returns a 0 if the Timer is not enabled.
Page 43 - DISPlay:MONitor Subsystem; Syntax
HP E1459A SCPI Command Reference 43 DISPlay:MONitor Subsystem The DISPlay:MONitor subsystem turns on the monitor mode. Parameters related to the state of the data and control lines are shown on an external terminal 1 . Refer to the Command Module’s Users’s Guide for supported terminal types. The DIS...
Page 44 - Returns the state of the automatic display mode as either +0 or +1.
44 HP E1459A SCPI Command Reference DISPlay:MONitor:PORT? [MINimum | MAXimum | DEFault] Returns the number of the current display Port as +0, +1, +2, or +3. Parameters None Comments • When sent with no parameter, this query returns a decimal number indicating the Port being monitored. If AUTO was se...
Page 46 - INPut Subsystem; Specifies the input circuitry clock source for Port n.; are always clocked by the internal clock.; Example
46 HP E1459A SCPI Command Reference INPut Subsystem The INPut Subsystem configures the input de-bounce circuitry and specifies the input clock source. Syntax INPut n :CLOCk[:SOURce] < source > page 46 :CLOCk[:SOURce]? page 47 :DEBounce:TIME < time > | MINimum | MAXimum | DEFault page 47 ...
Page 49 - MEASure Subsystem
HP E1459A SCPI Command Reference 49 MEASure Subsystem The MEASure commands are used for the Isolated Digital Input part of the HP E1459A. These commands return data corresponding to the current value of the input signals. Refer to Chapter 2 for more examples of using the MEASure Subsystem. Syntax ME...
Page 51 - MEMory Subsystem; This command accesses the SCPI memory subsystem.; The macro was previously defined using the *DMC Common Command.
HP E1459A SCPI Command Reference 51 MEMory Subsystem This command accesses the SCPI memory subsystem. MEMory:DELete:MACRo < name> Deletes the MACRO command defined by the name <name>. Parameters Comments • The macro was previously defined using the *DMC Common Command. • The maximum leng...
Page 52 - SENSe Subsystem; DAV; New data is available on the specified digital input port(s).; NEDGe; For details on using the SENSe Subsystem, refer to Chapter 2.; indicates the event did occur 0 indicates the event did not occur.
52 HP E1459A SCPI Command Reference SENSe Subsystem The SENSe Subsystem configures Event Detection in the HP E1459A Module. The HP E1459A has an event detector for each 16 bit Port to detect positive or negative edge transitions and whether new data is available: DAV New data is available on the spe...
Page 53 - The external clock source is selected with the; A 0 means the DAVailable Event is disabled, 1 means it is enabled.
HP E1459A SCPI Command Reference 53 [SENSe:]EVENt:PORT n:DAVailable:ENA Ble <state> Enables a Data Available interrupt to occur when new data is latched into Port n by an external clock source. Parameters Comments • The clock source for Port n must be set to EXTernal and the event must be enab...
Page 54 - A 0 means an edge event was not detected a 1 means an edge event was; registers for that port.
54 HP E1459A SCPI Command Reference [SENSe:]EVENt:PORT n:EDGE? Returns the status of the Edge Detect Event for Port n as either a a (unsigned) 0 or a 1. Parameters Comments • A 0 means an edge event was not detected; a 1 means an edge event was detected. • An edge event must have been enabled by the...
Page 55 - A 0 means the Edge Event is not enabled a 1 means it is enabled.
HP E1459A SCPI Command Reference 55 [SENSe:]EVENt:PORT n:EDGE:ENABle? Returns the state of the Edge Event Enable for Port n as a (unsigned) 0 or a 1. Parameters Comments • A 0 means the Edge Event is not enabled; a 1 means it is enabled. [SENSe:]EVENt:PORT n:NEDGe? Returns the value of the Negative ...
Page 56 - Sets the Negative Edge Detection Mask for Port n.
56 HP E1459A SCPI Command Reference [SENSe:]EVENt:PORT n:NEDGe:ENABle <mask> Sets the Negative Edge Detection Mask for Port n. Parameters Comments • Each bit enables the corresponding channel negative edge detect for Port n. A 1 means the mask is enabled for that bit, a 0 means the mask is dis...
Page 57 - Sets the Positive Edge Detection Mask for Port n.
HP E1459A SCPI Command Reference 57 [SENSe:]EVENt:PORT n:PEDGe? Returns the value of the Positive Edge Detect Register for all 16 bits of Port n. Parameters Comments • The value returned is in the range of -32768 to +32767. A 0 in any bit position indicates a positive edge event was not detected for...
Page 60 - STATus Subsystem
60 HP E1459A SCPI Command Reference STATus Subsystem The STATus subsystem controls the SCPI-defined Operation and Questionable Status registers, Standard Event register, and the Status Byte register. Each is comprised of a condition register, an event register, an enable mask, and transition filters...
Page 64 - STATus:PRESet sets the value of the enable mask to 0.
64 HP E1459A SCPI Command Reference STATus:OPERation:PSUMmary:ENA Ble < mask> Sets the value of the OPERation Status Port Summary Enable Register. Parameters Comments • This mask determines which Operation Status Port Summary Events are summed and reported in bit 9 of the Operation Status Regi...
Page 65 - Presets the Status system registers and conditions.; Resets the following registers and conditions:
HP E1459A SCPI Command Reference 65 STATus:OPERation:PSUMmary[:EVENt]? Returns the value of the Operation Status Port Summary Event Register as a signed 16 bit integer and then clears the register to 0. Parameters None Comments • This is a destructive read so that all register bits are cleared after...
Page 68 - SYSTem Subsystem; Returns the module description.; Returns the module card type.
68 HP E1459A SCPI Command Reference SYSTem Subsystem The SYSTem Subsystem returns module-specific information. This information includes module type and description, and error messages. Syntax SYSTem :CDEScription? < number > page 68 :CTYPe? < number > page 68 :ERRor? page 69 :VERsion? p...
Page 69 - *RST does not affect the error buffer; Returns the SCPI version to which this module complies.
HP E1459A SCPI Command Reference 69 SYSTem:ERRor? Queries the error register for the error value and string to identify the error. The errors are held in an error buffer and read on a First-In-First-Out basis. Parameters None Comments • Returns the error number and string. If no errors are in the er...
Page 71 - Command Quick Reference
HP E1459A SCPI Command Reference 71 Command Quick Reference Command Subsystem Description See Also DIAG:SYSR:STAT? :ENAB < state > :ENAB? Returns the value of the Watchdog Timer state (1=asserted, 0=not asserted).Turns the Watchdog Timer ON or OFF.Returns the enabled state of the Watchdog Time...
Page 73 - Between Channels or Between any terminal anc chassis: 125V AC or DC.; Minimum Pulse Width: 100; S using register access.
HP E1459A Specifications 73 Appendix A HP E1459A Specifications Max Input Voltage:Between High and Low terminal of Each Channel: 60V DC. Between Channels or Between any terminal anc chassis: 125V AC or DC. Module Size/Device Type: C, Register-based. Connectors Used: P1 and P2. Number of Slots: 1 VXI...
Page 75 - Appendix B; HP E1459A Register Definitions; Overview
HP E1459A Register Definitions 75 Appendix B HP E1459A Register Definitions Overview The HP E1459A Isolated Digital Input/Interrupt module is a register-based slave device. There are 64 isolated inputs which can be used for detecting rising and/or falling edges independently. Each 16 channels has a ...
Page 76 - Addressing the Registers
76 HP E1459A Register Definitions Addressing the Registers To read or write to specific registers you must address a particular register within a module. The registers within a module are located using a fixed offset. The module address is based upon the module's logical address. There are two basic...
Page 77 - Register Definitions
HP E1459A Register Definitions 77 For example, for the HP 75000 Series C Mainframe with an HP E1406 Command Module, VXI A16 address space starts at 1F0000 h ( h = HEX). In the HP E1406 Command Module, the A16 space is divided so modules are addressed only at locations beginning with C000 h within A1...
Page 78 - Manufacturer ID; ) is a read only register. For the Isolated Digital; Device Type; ) is a read only register. For the Isolated
78 HP E1459A Register Definitions Manufacturer ID Register ID register (base = 00 h ) is a read only register. For the Isolated Digital Input/Interrupt, a read of the ID register returns FFFF h since the multiplexers are manufactured by Hewlett-Packard and are A16 only, register-based devices. Manuf...
Page 79 - through 2E
HP E1459A Register Definitions 79 READE IRQ = When "1" it indicates that an INTRX line has transitioned from being asserted.D IRQ = When "1" it indicates that a DAVX line had been asserted.M = MODID bit = "0" module has been selected. Bit 0 is the reset bit. Writing a "1&...
Page 80 - The Edge Interrupt Status Register (base + 06; Data Available; The Data Available Status Register (base + 08
80 HP E1459A Register Definitions Bit 14 is the MODID bit. When a "0" is returned in bit 14 then the module has been selected with a high state on the P2 MODID line. If a "1" is returned then the module has not been selected. This bit is read only. Edge Interrupt Status Register The ...
Page 81 - Watchdog Timer
HP E1459A Register Definitions 81 Watchdog Timer Control/Status Register The Watchdog Timer Control/Status Register (base + 0A h ) can be read or written. A read of this register will automatically "pet" the Watchdog Timer and will return a "1" in bit zero when the Watchdog Timer is ...
Page 83 - Channel Data
HP E1459A Register Definitions 83 Channel Data Register Port 0/2 The Channel Data Register for Port 0/2 (base + 12 h ) is read only. This register returns the current (last) data that has been clocked into the edge detection circuitry based on either the internal or external trigger source. If bit 4...
Page 84 - Negative Edge
84 HP E1459A Register Definitions Negative Edge Detect Register Port 0/2 The Negative Edge Detect Register for Port 0/2 (base + 16 h ) is read only. This register captures any high to low transitions with a "1" in this register for any channel that has been enabled. A channel is enabled by s...
Page 85 - Debounce Clock; counter is used to generate the
HP E1459A Register Definitions 85 Debounce Clock Register Port 0 and Port1/ Port 2 and Port 3 The Debounce Clock Register (base + 1E h ) can be read or written. This register controls the clock rate to the debouncers. There are only two programmable counters for all four ports. Port 0 and Port 1 sha...
Page 86 - Command Register
86 HP E1459A Register Definitions Command Register Port 1/3 The Command Register for Port 1/3 (base + 20 h ) can be read or written. It contains three bits used to control operating characteristics of the port. If bit 4 of the Control/Status Register is low ("0"), Port 1 data is accessed. If...
Page 88 - Positive Edge
88 HP E1459A Register Definitions Positive Edge Detect Register Port 1/3 The Positive Edge Detect Register for Port 1/3 (base + 24 h ) is read only. If bit 4 of the Control/Status Register is low ("0"), Port 1 data is accessed. If bit 4 is high ("1"), Port 3 data will be accessed. Th...
Page 89 - Negative Mask; Refer to that register for an explanation of its operation.
HP E1459A Register Definitions 89 Negative Mask Register Port 1/3 The Negative Mask Register for Port 1/3 (base + 2A h ) can be read or written. If bit 4 of the Control/Status Register is low ("0"), Port 1 data is accessed. If bit 4 is high ("1"), Port 3 data will be accessed. The op...
Page 91 - Power On/Reset Conditions
HP E1459A Register Definitions 91 Power On/Reset Conditions A soft reset is generated when the reset bit in the control register is set active and then released. A hard reset is generated when the SYSRESET line on the backplane is active. In either of these cases all control bits will be set to "...
Page 92 - Output and Edge; Edge Interrupt Example
92 HP E1459A Register Definitions /* read and print the module’s Device Type Register */ errStatus = viIn16(E1459,VI_A16_SPACE,0x02,&dt_reg);if (VI_SUCCESS > errStatus){ printf(“ERROR: viIn16() returned 0x%x\n”,errStatus);return errStatus;} printf(“Device Type register = 0x%4X\n”, dt_reg); /*...
Page 94 - ! get data register port 1
94 HP E1459A Register Definitions 620 OUTPUT Vxi_address;"VXI:WRITE 128,4,32" 630 !640 LOOP650 DISABLE INTR 7660 !665 !int enabled, port 0/1 select670 OUTPUT Vxi_address;"VXI:WRITE 128,4,32" 680 !690 OUTPUT Vxi_address;"VXI:READ? 128,18" ! get data register port 0 700 ENTER V...
Page 96 - DAV Interrupt Example
96 HP E1459A Register Definitions 1650 OUTPUT Vxi_address;"DIAG:INT:ACT ON"1660 OUTPUT Vxi_address;"*OPC?"1670 ENTER Vxi_address;Done1680 !1690 ENABLE INTR 7;21695 ! int enabled, select port 01700 OUTPUT Vxi_address;"VXI:WRITE 128,4,32" 1710 !1720 RETURN1730 END DAV Interrupt...
Page 98 - Mixed Interupt Example
98 HP E1459A Register Definitions 860 OUTPUT Vxi_address;"VXI:READ? 128,8" ! get dav status register 870 ENTER Vxi_address;A880 !890 A=BINAND(A,15)900 PRINT "DAV Status: ";A910 !915 ! get dav data register, port 0920 OUTPUT Vxi_address;"VXI:READ? 128,18" 930 ENTER Vxi_address...
Page 99 - DATA REGISTERS for each port.
HP E1459A Register Definitions 99 DATA REGISTERS for each port. 100 CLEAR SCREEN110 DIM A$[40]120 Vxi_address=70900130 !140 CLEAR 7150 OUTPUT Vxi_address;"*RST;*CLS" ! reset E1406 160 !170 REPEAT180 OUTPUT Vxi_address;"SYST:ERR?"190 ENTER Vxi_address;Error200 PRINT "E1406 Reports...
Page 105 - Appendix C; Error Messages
Error Messages 105 Appendix C Error Messages The following table lists error message and possible cause associated with the HP E1459A Module. Error Description -104, “Data type error” <mask> is not in decimal format. -109, “Missing parameter” A command does not include a required parameter (pa...
Page 107 - Symbols
Index Index 107 Symbols *CLS , 70 *DMC , 70 *EMC , 70 *EMC? , 70 *ESE , 70 *ESE? , 70 *ESR? , 70 *GMC? , 70 *IDN? , 70 *LMC? , 70 *OPC , 70 *OPC? , 70 *PMC , 70 *RCL , 70 *RMC , 70 *RST , 70 *SAV , 70 *SRE , 70 *SRE? , 70 *STB? , 70 *TRG , 70 *TST? , 70 *WAI , 70 A Abbreviated Commands , 39 Address,...