Summary of the content on the page No. 1
Programmer’s Guide
Publication number 16500-97018
First edition, December 1996
For Safety information, Warranties, and Regulatory
information, see the pages behind the Index
ª Copyright Hewlett-Packard Company 1987, 1990, 1993, 1994, 1996
All Rights Reserved
HP 16500C/16501A
Logic Analysis System
Summary of the content on the page No. 2
ii
Summary of the content on the page No. 3
In This Book Introduction to Programming 1 Programming Over HP-IB 2 Programming Over RS-232-C 3 This programmer’s guide contains general information, mainframe level commands, and programming examples for Programming Over LAN 4 programming the HP 16500C/16501A Logic Analysis System. This guide Programming and focuses on how to program the system 5 Documentation Conventions over the HP-IB interface, but also briefly explains how to use the RS-232-C and Message Communication LAN interfaces. The L
Summary of the content on the page No. 4
Part 1 Part 1 consists of chapters 1 through 8 and contains general information about programming basics, HP-IB, RS-232-C, and LAN interface requirements, documentation conventions, status reporting, and error messages. If you are already familiar with IEEE 488.2 programming and HP-IB or RS-232-C, you may want to just scan these chapters. If you are new to programming logic analyzers you should read part 1. Chapter 1 is divided into two sections. The first section, "Talking to the Instrument,
Summary of the content on the page No. 5
Contents Part 1 General Information 1 Introduction to Programming Introduction 1–2 Talking to the Logic Analysis System 1–3 Talking to Individual System Modules 1–4 Initialization 1–4 Instruction Syntax 1–6 Output Command 1–6 Device Address 1–7 Instructions 1–7 Instruction Terminator 1–8 Header Types 1–9 Duplicate Keywords 1–10 Query Usage 1–11 Program Header Options 1–12 Parameter Data Types 1–13 Selecting Multiple Subsystems 1–15 Receiving Information from the Logic Analysis System 1–16 Respon
Summary of the content on the page No. 6
Contents 2 Programming Over HP-IB Interface Capabilities 2–3 Command and Data Concepts 2–3 Talk/Listen Addressing 2–3 HP-IB Bus Addressing 2–4 Local, Remote, and Local Lockout 2–5 Bus Commands 2–6 3 Programming Over RS-232-C Interface Operation 3–3 RS-232-C Cables 3–3 Minimum Three-Wire Interface with Software Protocol 3–4 Extended Interface with Hardware Handshake 3–5 Cable Examples 3–6 Configuring the Logic Analysis System Interface 3–7 Interface Capabilities 3–8 RS-232-C Bus Addressing 3–9 Lo
Summary of the content on the page No. 7
Contents 5 Programming and Documentation Conventions Truncation Rule 5–3 Infinity Representation 5–4 Sequential and Overlapped Commands 5–4 Response Generation 5–4 Syntax Diagrams 5–4 Notation Conventions and Definitions 5–5 The Command Tree 5–6 Tree Traversal Rules 5–8 Command Set Organization 5–10 Subsystems 5–10 Program Examples 5–12 6 Message Communication and System Functions Protocols 6–3 Syntax Diagrams 6–5 Syntax Overview 6–7 7 Status Reporting Event Status Register 7–4 Service Request E
Summary of the content on the page No. 8
Contents 8 Error Messages Device Dependent Errors 8–3 Command Errors 8–3 Execution Errors 8–4 Internal Errors 8–4 Query Errors 8–5 Part 2 Commands 9 Common Commands *CLS (Clear Status) 9–5 *ESE (Event Status Enable) 9–6 *ESR (Event Status Register) 9–7 *IDN (Identification Number) 9–9 *IST (Individual Status) 9–9 *OPC (Operation Complete) 9–11 *OPT (Option Identification) 9–12 *PRE (Parallel Poll Enable Register Enable) 9–13 *RST (Reset) 9–14 *SRE (Service Request Enable) 9–15 *STB (Status Byte)
Summary of the content on the page No. 9
Contents MESE (Module Event Status Enable) 10–16 MESR (Module Event Status Register) 10–18 RMODe 10–19 RTC (Real-time Clock) 10–20 SELect 10–21 SETColor 10–23 STARt 10–24 STOP 10–25 XWINdow 10–26 11 SYSTem Subsystem DATA 11–5 DSP (Display) 11–6 ERRor 11–7 HEADer 11–8 LONGform 11–9 PRINt 11–10 SETup 11–12 12 MMEMory Subsystem AUToload 12–7 CATalog 12–8 CD (Change Directory) 12–9 COPY 12–10 DOWNload 12–11 IDENtify 12–13 INITialize 12–14 LOAD[:CONFig] 12–15 LOAD :IASSembler 12–16 MKDir (Make
Summary of the content on the page No. 10
Contents REName 12–22 STORe [:CONFig] 12–23 UPLoad 12–24 VOLume 12–25 13 INTermodule Subsystem :INTermodule 13–5 DELete 13–6 HTIMe 13–7 INPort 13–8 INSert 13–9 OUTDrive 13–10 OUTPolar 13–10 OUTType 13–11 PORTEDGE 13–12 PORTLEV 13–13 SKEW 13–14 TREE 13–15 TTIMe 13–17 14 TGTctrl Subsystem :TGTctrl 14–5 ALL 14–6 AVAILable 14–7 BITS 14–8 CURSTate 14–9 DRIVe 14–9 LASTstate 14–10 NAMe 14–11 PULse 14–12 SIGNal 14–12 SIGSTatus 14–13 STATEs 14–14 STEP 14–15 TOGgle 14–15 TYPe 14–16 Contents–6
Summary of the content on the page No. 11
Contents Part 3 Programming Examples 15 Programming Examples Transferring the Mainframe Configuration 15–3 Checking for Intermodule Measurement Completion 15–6 Sending Queries to the Logic Analysis System 15–7 Getting ASCII Data with PRINt? ALL Query 15–9 Reading the disk with the CATalog? ALL query 15–10 Reading the Disk with the CATalog? Query 15–11 Printing to the disk 15–12 Index Contents–7
Summary of the content on the page No. 12
Contents–8
Summary of the content on the page No. 13
Part 1 1 Introduction to Programming 1-1 2 Programming Over HP-IB 2-1 3 Programming Over RS-232-C 3-1 4 Programming Over LAN 4-1 5 Programming and Documentation Conventions 5-1 6 Message Communication and System Functions 6-1 7 Status Reporting 7-1 8 Error Messages 8-1 General Information
Summary of the content on the page No. 14
Summary of the content on the page No. 15
1 Introduction to Programming
Summary of the content on the page No. 16
Introduction This chapter introduces you to the basics of remote programming and is organized in two sections. The first section, "Talking to the Logic Analysis System," concentrates on initializing the bus, program syntax and the elements of instruction syntax. The second section, "Receiving Information from the Logic Analysis System," discusses how queries are sent and how to retrieve query results from the system. The programming instructions explained in this book conform to IEEE Std 488.2
Summary of the content on the page No. 17
Talking to the Logic Analysis System In general, computers acting as controllers communicate with the instrument by sending and receiving messages over a remote interface, such as HP-IB, RS-232-C, or Ethernet LAN. When programming the HP 16500C with the HP 16501A Expansion Frame connected, most of the remote operation of the expansion frame is transparent. The only time a programming command is affected by the presence of the expansion frame is when the number of slots is specified or returned
Summary of the content on the page No. 18
Introduction to Programming Talking to Individual System Modules Talking to Individual System Modules Talking to individual system modules within the HP 16500C Logic Analysis System is done by preceding the module commands with the SELECT command and the number of the slot in which the desired module is installed. The mainframe is selected in the same way as an installed module by using the SELECT 0 command. Example To select the module in slot 3 use the following: OUTPUT XXX;":SELECT 3" See Als
Summary of the content on the page No. 19
Introduction to Programming Initialization Example This BASIC statement would load the configuration file "DEFAULT " (if it exists) into the system. OUTPUT XXX;":MMEMORY:LOAD:CONFIG ’DEFAULT ’" Example This program demonstrates a simple HP BASIC command structure used to program the Logic Analysis System. 10 CLEAR XXX !Initialize instrument interface 20 OUTPUT XXX;":SYSTEM:HEADER ON" !Turn headers on 30 OUTPUT XXX;":SYSTEM:LONGFORM ON" !Turn long form on 40 DIM Card
Summary of the content on the page No. 20
Introduction to Programming Instruction Syntax Instruction Syntax To program the system remotely, you must have an understanding of the command format and structure. The IEEE 488.2 standard governs syntax rules pertaining to how individual elements, such as headers, separators, parameters and terminators, may be grouped together to form complete instructions. Syntax definitions are also given to show how query responses will be formatted. Figure 1-1 shows the three main syntactical parts of a