Text preview for : HP E1330B Users & Programming.pdf part of Agilent HP E1330B Users & Programming Agilent HP E1330B Users & Programming.pdf



Back to : HP E1330B Users & Program | Home

HP 75000 Series B




HP E1330B
Quad 8-Bit Digital I/O Module
User's Manual and SCPI Programming Guide



Where to Find it - Online and Printed Information:

System installation (hardware/software) ............VXIbus Configuration Guide*
HP VIC (VXI installation software)*

Module configuration and wiring .......................This Manual
SCPI programming .............................................This Manual
SCPI example programs .....................................This Manual, Driver Disk
SCPI command reference ..................................This Manual
Register-Based Programming.............................This Manual

VXIplug&play programming ............................VXIplug&play Online Help
VXIplug&play example programs .....................VXIplug&play Online Help
VXIplug&play function reference......................VXIplug&play Online Help
Soft Front Panel information ..............................VXIplug&play Online Help

VISA language information................................HP VISA User's Guide

HP VEE programming information....................HP VEE User's Manual

*Supplied with HP Command Modules, Embedded Controllers, and VXLink.






Manual Part Number: E1330-90007
Printed in U.S.A. E0597
Contents
HP E1330B User's Manual
Warranty ....................................................................................................................... 5
Safety Symbols ............................................................................................................. 6
WARNINGS ................................................................................................................. 6
Declaration of Conformity............................................................................................ 7
Reader Comment Sheet ................................................................................................ 9

Chapter 1
Getting Started ............................................................................................................. 11
Using This Chapter ..................................................................................................... 11
Technical Description ................................................................................................. 11
Instrument Definition.................................................................................................. 13
Downloading SCPI Drivers ........................................................................................ 13
Programming the Digital I/O Module......................................................................... 13
SCPI Command Format Used in This Manual .................................................... 14
Specifying SCPI Commands ............................................................................... 14
Initial Operation .......................................................................................................... 16

Chapter 2
Configuring the HP E1330B Digital I/O Module ...................................................... 17
Using This Chapter ..................................................................................................... 17
Setting the Address Switch ......................................................................................... 18
Enabling Pull-ups........................................................................................................ 19
Selecting the Interrupt Line ........................................................................................ 20
Combining the Flag Lines........................................................................................... 21
Digital I/O Module Peripheral Pinout......................................................................... 22
Configuring for Isolated Digital I/O ........................................................................... 25
Connecting to a GPIO Peripheral ............................................................................... 26
Using with External Pull-ups...................................................................................... 28
Typical Connection..................................................................................................... 29

Chapter 3
Using the HP E1330B Digital I/O Module ................................................................. 31
Using This Chapter ..................................................................................................... 31
Addressing the Module............................................................................................... 31
Operation Overview.................................................................................................... 32
Default and Reset States ............................................................................................. 33
Setting the Polarity...................................................................................................... 33
Setting the Handshake Mode ...................................................................................... 34
Handshake Timing .............................................................................................. 34
Inputting Data Bytes and Bits..................................................................................... 35
Input .................................................................................................................... 35
Outputting Data Bytes and Bits .................................................................................. 36
Output .................................................................................................................. 36
Multiple Port Operations ............................................................................................ 37
Using Trace Memory .................................................................................................. 38


Contents 1
Chapter 4
Understanding the HP E1330B Digital I/O Module ................................................. 41
Using This Chapter ..................................................................................................... 41
Port Description .......................................................................................................... 41
Data Lines ........................................................................................................... 41
The FLG Line (Input) .......................................................................................... 42
The CTL Line (Output) ....................................................................................... 42
The I/O Line (Output) ......................................................................................... 42
The STS Line ...................................................................................................... 43
The PIR Line ....................................................................................................... 43
The RES Line ...................................................................................................... 43
Default and Reset States ............................................................................................. 43
Setting the Polarity...................................................................................................... 43
Using the Handshake Modes ...................................................................................... 44
Handshake Modes ............................................................................................... 45
Inputting Data Bytes and Bits..................................................................................... 50
Bit Input ............................................................................................................... 50
Byte Input ............................................................................................................ 50
Outputting Data Bytes and Bits .................................................................................. 51
Bit Output ............................................................................................................ 51
Byte Output ......................................................................................................... 52
Multiple Port Operations ............................................................................................ 53
Multiple Port Handshaking ................................................................................. 53
Multiple Port Input/Output .................................................................................. 54

Chapter 5
HP E1330B Digital I/O Module Command Reference ............................................. 57
Using This Chapter ..................................................................................................... 57
Command Types ......................................................................................................... 57
Common Command Format ................................................................................ 57
SCPI Command Format ...................................................................................... 57
Linking Commands ............................................................................................. 59
SCPI Command Reference ......................................................................................... 60
DISPlay Subsystem..................................................................................................... 61
:MONitor:PORT .................................................................................................. 61
:MONitor:PORT? ................................................................................................ 62
:MONitor[:STATe] ............................................................................................. 62
:MONitor[:STATe]? ............................................................................................ 63
MEASure Subsystem .................................................................................................. 64
:DIGital:DATAn[:type]:BITm? .......................................................................... 64
:DIGital:DATAn[:type]:TRACe ......................................................................... 65
:DIGital:DATAn[:type][:VALue]? ..................................................................... 66
:DIGital:FLAGn? ................................................................................................ 67
MEMory Subsystem ................................................................................................... 68
:DELete:MACRo ................................................................................................ 68
:VME:ADDRess .................................................................................................. 69
:VME:ADDRess? ................................................................................................ 69
:VME:SIZE ......................................................................................................... 70




2 Contents
Chapter 5
HP E1330B Digital I/O Module Command Reference (continued)
MEMory Subsystem (continued)
:VME:SIZE? ........................................................................................................ 70
:VME:STATe ...................................................................................................... 71
:VME:STATe? .................................................................................................... 71
[SOURce:] Subsystem ................................................................................................ 72
DIGital:CONTroln:POLarity .............................................................................. 74
DIGital:CONTroln:POLarity? ............................................................................ 74
DIGital:CONTroln[:VALue] .............................................................................. 75
DIGital:CONTroln[:VALue]? ............................................................................. 75
DIGital:DATAn[:type]:BITm ............................................................................. 76
DIGital:DATAn[:type]:BITm? ............................................................................ 77
DIGital:DATAn[:type]:HANDshake:DELay ..................................................... 78
DIGital:DATAn[:type]:HANDshake:DELay? .................................................... 79
DIGital:DATAn[:type]:HANDshake[:MODE] .................................................. 80
DIGital:DATAn[:type]:HANDshake[:MODE]? ................................................. 81
DIGital:DATAn[:type]:POLarity ........................................................................ 82
DIGital:DATAn[:type]:POLarity? ...................................................................... 82
DIGital:DATAn[:type]:TRACe .......................................................................... 83
DIGital:DATAn[:type][:VALue] ........................................................................ 84
DIGital:DATAn[:type][:VALue]? ...................................................................... 85
DIGital:FLAGn:POLarity ................................................................................... 86
DIGital:FLAGn:POLarity? ................................................................................. 86
DIGital:HANDshaken:DELay ............................................................................ 87
DIGital:HANDshaken:DELay? .......................................................................... 88
DIGital:HANDshaken[:MODE] ......................................................................... 88
DIGital:HANDshaken[:MODE]? ........................................................................ 89
DIGital:IOn? ........................................................................................................ 89
DIGital:TRACe:CATalog? ................................................................................. 90
DIGital:TRACe[:DATA] .................................................................................... 90
DIGital:TRACe[:DATA]? .................................................................................. 91
DIGital:TRACe:DEFine ...................................................................................... 91
DIGital:TRACe:DEFine? .................................................................................... 92
DIGital:TRACe:DELete:ALL ............................................................................. 92
DIGital:TRACe:DELete[:NAME] ...................................................................... 92
STATus Subsystem..................................................................................................... 93
:OPERation:CONDition? .................................................................................... 94
:OPERation:ENABle ........................................................................................... 94
:OPERation:ENABle? ......................................................................................... 94
:OPERation[:EVENt]? ........................................................................................ 94
:PRESet ............................................................................................................... 94
:QUEStionable:CONDition? ............................................................................... 95
:QUEStionable:ENABle ...................................................................................... 95
:QUEStionable:ENABle? .................................................................................... 95
:QUEStionable[:EVENt]? ................................................................................... 95




Contents 3
Chapter 5 (continued)
SYSTem Subsystem ................................................................................................... 96
:CDEScription? ................................................................................................... 96
:CTYPe? .............................................................................................................. 96
:ERRor? ............................................................................................................... 97
:VERSion? ........................................................................................................... 97
IEEE 488.2 Common Commands............................................................................... 98
Command Quick Reference........................................................................................ 99

Appendix A
HP E1330B Digital I/O Specifications ...................................................................... 103

Appendix B
HP E1330B Digital I/O Module Register Information ........................................... 105
Using This Appendix ................................................................................................ 105
Addressing the Registers .......................................................................................... 105
The Base Address .............................................................................................. 106
Register Offset ................................................................................................... 108
Reset and Registers ................................................................................................... 109
Register Definitions .................................................................................................. 109
Register Descriptions ................................................................................................ 111
Manufacturer Identification Register ................................................................ 111
Device Identification Register ........................................................................... 111
Card Status/ Control Register ............................................................................ 111
Port Interrupt Control Register .......................................................................... 112
Port Transfer Control Register .......................................................................... 113
Port Control/ Status Register ............................................................................. 114
Port Data Register ............................................................................................. 115
Port Handshake Register ................................................................................... 116
Port Delay Register ........................................................................................... 117
Port Normalization Register .............................................................................. 118
A Register-Based Output Algorithm ........................................................................ 119
A Register-Based Input Algorithm ........................................................................... 120
Programming Examples............................................................................................ 121
System Configuration ........................................................................................ 121
Resetting the Module ........................................................................................ 122
Reading the ID, Device Type, and Status Registers ......................................... 123
Writing an 8-Bit Byte ........................................................................................ 125
Writing a 16-Bit Word ...................................................................................... 127
Reading an 8-Bit Byte ....................................................................................... 128
Reading a 16-Bit Word ..................................................................................... 130
Debugging Basic Register-Based Programs ..................................................... 130
PIR Interrupts on the HP E1330 ........................................................................ 131
HP E1330B Non-data Line I/O ......................................................................... 136
Embedded Computer Example .......................................................................... 140

Appendix C
Error Messages .......................................................................................................... 143




4 Contents
Certification
Hewlett-Packard Company certifies that this product met its published specifications at the time of shipment from the factory. Hewlett-
Packard further certifies that its calibration measurements are traceable to the United States National Institute of Standards and
Technology (formerly National Bureau of Standards), to the extent allowed by that organization's calibration facility, and to the
calibration facilities of other International Standards Organization members.

Warranty
This Hewlett-Packard product is warranted against defects in materials and workmanship for a period of three years from date of shipment.
Duration and conditions of warranty for this product may be superseded when the product is integrated into (becomes a part of) other HP
products. During the warranty period, Hewlett-Packard Company will, at its option, either repair or replace products which prove to be
defective.
For warranty service or repair, this product must be returned to a service facility designated by Hewlett-Packard (HP). Buyer shall prepay
shipping charges to HP and HP shall pay shipping charges to return the product to Buyer. However, Buyer shall pay all shipping charges,
duties, and taxes for products returned to HP from another country
HP warrants that its software and firmware designated by HP for use with a product will execute its programming instructions when
properly installed on that product. HP does not warrant that the operation of the product, or software, or firmware will be uninterrupted
or error free.
Limitation Of Warranty
The foregoing warranty shall not apply to defects resulting from improper or inadequate maintenance by Buyer, Buyer-supplied pr oducts
or interfacing, unauthorized modification or misuse, operation outside of the environmental specifications for the product, or improper
site preparation or maintenance.
The design and implementation of any circuit on this product is the sole responsibility of the Buyer. HP does not warrant the Buyer's
circuitry or malfunctions of HP products that result from the Buyer's circuitry. In addition, HP does not warrant any damage that occurs
as a result of the Buyer's circuit or any defects that result from Buyer-supplied products.
NO OTHER WARRANTY IS EXPRESSED OR IMPLIED. HP SPECIFICALLY DISCLAIMS THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Exclusive Remedies
THE REMEDIES PROVIDED HEREIN ARE BUYER'S SOLE AND EXCLUSIVE REMEDIES. HP SHALL NOT BE LIABLE FOR
ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER BASED ON CONTRACT,
TORT, OR ANY OTHER LEGAL THEORY.

Notice
The information contained in this document is subject to change without notice. HEWLETT-PACKARD (HP) MAKES NO
WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. HP shall not be liable for errors
contained herein or for incidental or consequential damages in connection with the furnishing, performance or use of this material. This
document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be
photocopied, reproduced, or translated to another language without the prior written consent of Hewlett-Packard Company. HP assumes
no responsibility for the use or reliability of its software on equipment that is not furnished by HP.

U.S. Government Restricted Rights
The Software and Documentation have been developed entirely at private expense. They are delivered and licensed as "commercial
computer software" as defined in DFARS 252.227- 7013 (Oct 1988), DFARS 252.211-7015 (May 1991) or DFARS 252.227-7014 (Jun
1995), as a "commercial item" as defined in FAR 2.101(a), or as "Restricted computer software" as defined in FAR 52.227-19 (Jun
1987)(or any equivalent agency regulation or contract clause), whichever is applicable. You have only those rights provided for such
Software and Documentation by the applicable FAR or DFARS clause or the HP standard software agreement for the product involved




HP E1330B Quad 8-Bit Digital I/O User's Manual
Edition 7
Copyright