Publication number 16557-97001
First edition, April 1998
For Safety information, Warranties, and Regulatory
information, see the pages behind the Index
Copyright Hewlett-Packard Company 1987, 1990, 1993, 1994, 1998
All Rights Reserved
HP 16557D State/Timing Logic
Analyzer
ii
In This Book
Programming the HP 16557D
1
This guide, combined with the
HP 16500/16501A Programmer’s
, provides you with the information
Guide
needed to program the HP 16557D logic
analyzer module. Each module has its
own reference to supplement the
mainframe manual since not all
mainframes will be configured with the
same modules.
This manual is organized in three parts.
Part 1 consists of chapters 1 and 2 which
contain general information and
instructions to help you get started.
Chapter 1 also contains:
Mainframe system commands that are
•
frequently used with the logic analyzer
module
HP 16557D logic analyzer command
•
tree
Alphabetic command-to-subsystem
•
directory
Chapter 2 contains module-level
commands.
Part 2 consists of chapters 3 through 16
which contain the subsystem commands
for the logic analyzer and chapter 17
which contains information on the
SYSTem:DATA and SYSTem:SETup
commands for this module.
2
3
4
5
6
7
8
9
10
11
12
13
Module Lev el Commands
MACHine Subsystem
WLISt Subsystem
SFORmat Subsystem
STRigger ( S TR ace) Subsystem
SLISt Subsystem
SWAVeform Subsystem
SCHart Subsystem
COMPare Subsystem
TFORmat Subsystem
TTRigger (TTR ace) Subsystem
TWAVeform Subsystem
14
TLISt Subsystem
iii
Part 3, chapter 18, contains program examples of actual tasks that show you
how to get started in programming the HP 16557D logic analyzer. These
examples are written in HP BASIC 6.2; however, the program concepts can
be used in any other popular programming language.
Error messages for the HP 16557D are included in generic system error
messages and are in the
HP 16500/16501A Programmer’s Guide
.
iv
15
SYMBol Subsystem
16
17
18
SPA Subsystem
DATA and S ETup Commands
Programming Examples
Index
v
vi
Contents
Part 1 General Information
1 Programming the HP 16557D
Selecting the Module 1–3
Programming the Logic Analyzer 1–3
Mainframe Commands 1–5
Command Set Organization 1–8
Module Status Reporting 1–12
MESE<N> 1–13
MESR<N> 1–15
Data Format 17–3
SYSTem:DATA 17–4
Section Header Description 17–6
Section Data 17–6
Data Preamble Description 17–7
Acquisition Data Description 17–12
Time Tag Data Description 17–14
SYSTem:SETup 17–14
Contents–8
Part 3 Programming Examples
18 Programming Examples
Making a Timing Analyzer Measurement 18–3
Making a State Analyzer Measurement 18–5
Making a State Compare Analyzer Measurement 18–9
Transferring the Logic Analyzer Configuration 18–14
Checking for Measurement Completion 18–18
Sending Queries to the Logic Analyzer 18–19
Index
Contents
Contents–9
Contents–10
Part 1
1 Introduction to Programming
2 Module Level Commands
General Information
1
Programming the HP 16557D
Introduction
This chapter introduces you to the basic command structure used to
program the logic analyzer. Also included is an example program that
sets up the timing analyzer for a basic timing measurement.
Additional program examples are in chapter 18.
1–2
Programming the HP 16 557D
Selecting the Module
Selecting the Module
Before you can program the logic analyzer, you must first "select" it. This
directs your commands to the logic analyzer.
To select the module, use the system command :SELect followed by the
numeric reference for the slot location of the logic analyzer (1 through 10
referring to slots A through J respectively). For example, if the logic analyzer
is in slot E, then the command:
:SELect 5
would select this module. For more information on the select command,
refer to the
your HP Sales Office.
HP 16500/16501A Programmer’s Guide
. It is available through
Programming the Logic Analyzer
A typical logic analyzer program will do the following:
select the appropriate module
•
name a specified analyzer
•
specify the analyzer type
•
assign pods
•
assign labels
•
sets pod thresholds
•
specify a trigger condition
•
set up the display
•
specify acquisition type
•
start acquiring data
•
1–3
Programming the HP 16557D
Programming the Logic Analy z er
The following example program sets up the logic analyzer to make a simple
timing analyzer measurement.
The three Xs (XXX) after the "OUTPUT" statements in the previous example
refer to the device address required for programming over either HP-IB or
RS-232-C. Refer to your controller manual and programming language
reference manual for information on initializing the interface.
Program Comments
Line 10 selects the logic analyzer in slot C.
Line 20 names machine (analyzer) 1 "TIMING".
Line 30 specifies machine 1 is a timing analyzer.
Line 40 assigns pods 1 and 2 to machine 1.
Line 50 sets up the Timing Format menu by assigning the label COUNT, and
assigning a polarity and channels to the label.
Line 60 selects the trigger pattern for the timing analyzer.
Line 70 sets the range to 100 ns (10 times s/div).
Line 80 changes the onscreen display to the Timing Waveforms menu.
Line 90 inserts the label "COUNT" in the Timing Waveform menu.
Line 100 specifies the Single run mode.
Line 110 starts data acquisition.
For more information on the specific logic analyzer commands, refer to
chapters 2 through 17.
1–4
Programming the HP 16 557D
Mainframe Commands
Mainframe Comm ands
These commands are part of the HP 16500/16501A mainframe system and
are mentioned here only for reference. For more information on these
commands, refer to the
CARDcage? Query
The CARDcage query returns a string of integers which identifies the
modules that are installed in the mainframe. The returned string is in two
parts. The first five two-digit numbers identify the card type. The
identification number for the HP 16557D logic analyzer is 34. A "−1" in the
first part of the string indicates no card is installed in the slot.
The five single-digit numbers in the second part of the string indicate which
card has the controlling software for the module; that is, where the master
card is located.
HP 16500/16501A Programmer’s Guide
.
Example
12,11,−1,−1,34,2,2,0,0,5
A returned string of
oscilloscope time base card (ID number 11) is loaded in slot B and the
oscilloscope acquisition card (ID number 12) is loaded in slot A. The next
two slots (C and D) are empty (−1). Slot E contains a logic analyzer module
(ID number 34).
The next group of numbers (
installed in slots A and B with the master card in slot B. The "0" indicates an
empty slot, or the module software is not recognized or is not loaded. The
last digit (5) in this group indicates a one-card module is loaded in slot E.
Complete information for the CARDcage query is in the
Programmer’s Guide
12,11,-1,-1,34,2,2,0,0,5
2,2,0,0,5
.
) indicate that a two-card module is
means that an
HP 16500/16501A
1–5
Programming the HP 16557D
Mainframe C om m ands
MENU Command/query
The MENU command selects a new displayed menu. The first parameter (X)
specifies the desired module. The optional, second parameter specifies the
desired menu in the module. The second parameter defaults to 0 if it is not
specified. The query returns the currently selected and displayed menu.
For the HP 16557D Logic Analyzer:
X,0 — State/Timing
•
Configuration
X,1 — Format 1
•
X,2 — Format 2
•
X,3 — Trigger 1
•
X,4 — Trigger 2
•
X,5 — Waveform 1
•
X,6 — Waveform 2
•
X,7 — Listing 1
•
If a machine is turned off, its menus are not available. The Mixed Display is
available only when one or both analyzers are state analyzers.
SELect Command/query
The SELect command selects which module or intermodule will have parser
control. SELect 0 selects the intermodule, SELect 1 through 5 selects
modules A through E respectively. Values −1 and −2 select software options
1 and 2. The SELect query returns the currently selected module.
STARt Comman d
The STARt command starts the specified module. If the specified module is
configured for intermodule (group run), STARt will start all modules
configured as part of the intermodule run.
X,8 — Listing 2
•
X,9 — Mixed Display
•
X,10 — Compare 1
•
X,11 — Compare 2
•
X,12 — Chart 1
•
X,13 — Chart 2
•
X,14 — SPA 1
•
X,15 — SPA 2
•
1–6
Programming the HP 16 557D
Mainframe Commands
STOP Command
The STOP command stops the specified module. If the specified module is
configured as part of an intermodule run, STOP will stop all associated
modules.
STARt and STOP are overlapped commands. Overlapped commands allow
execution of subsequent commands while the logic analyzer operations
initiated by the overlapped command are still in progress. For more
information, see *OPC and *WAI commands in Chapter 5 of the
HP 16500/16501A Programmer’s Guide
RMODe Command/query
The RMODe command specifies the run mode (single or repetitive) for a
module. If the selected module is configured for intermodule, the
intermodule run mode will be set by this command. The RMODe query
returns the current setting.
SYSTem:ERRor? Query
The SYSTem:ERRor query returns the oldest error in the error queue. In
order to return all the errors in the error queue, a simple FOR/NEXT loop can
be written to query the queue until all errors are returned. Once all errors
are returned, the query will return zeros.
.
SYSTem:PRINt Command/query
The SYSTem:PRINt command initiates a print of the screen or listing buffer
over the current printer communication interface. The SYSTem:PRINt query
sends the screen or listing buffer data over the current controller
communication interface.
MMEMory Subsystem
The MMEMory Subsystem provides access to both internal disc drives for
loading and storing configurations.
INTermodule Subsystem
The INTermodule Subsystem commands are used to specify intermodule
arming between multiple modules.
1–7
Programming the HP 16557D
Command Set Organization
Command Set Organization
The command set for the HP 16557D is divided into module-level commands
and subsystem commands. Module-level commands are listed in Chapter 2,
"Module Level Commands" and each of the subsystem commands are covered
in their individual chapters starting with Chapter 3, "MACHine Subsystem."
Each of these chapters contains a description of the subsystem, syntax
diagrams, and the commands in alphabetical order. The commands are
shown in long form and short form using upper and lowercase letters. For
example, LABel indicates that the long form of the command is LABEL and
the short form is LAB. Each of the commands contain a description of the
command and its arguments, the command syntax, and a programming
example.
Figure 1-1 on the following page shows the command tree for the HP 16557D
logic analyzer module. The (x) following the SELect command at the top of
the tree represents the slot number where the logic analyzer module is
installed. The number may range from 1 through 10, representing slots A
through J, respectively.
1–8
Figure 1-1
Programming the HP 16 557D
Command Set Organization
HP 16557D Command Tree
1–9
Programming the HP 16557D
Command Set Organization
Table 1-1
Alphabetical Command-to-Subsystem Direct ory
CommandWhere Used
ACCumulateSCHart, SWAVef or m , TWAVeform
ACQModeTFORmat
ACQuisit io nSTRigger, SWAVeform, TTRig ger ,
TWAVeform
ARMMACHine
ARMLineModule Leve l Co m m ands
ASSignMACHine
AUTorangeSPA
BASESYMBol
BRANchSTRigger, TTRigger
BUCKetSPA
CENterSCHart, SWAVef or m , TWAVeform
CLEarCOMPare, STRigger, TT Ri gger
CLOCkSFORmat
CLRPatternSLISt, SWAVeform, TLISt, TWAVeform
CLRStatSW AVeform, TWAVeform
CMASkCOM Pare
COLu mnSLISt, TLISt
COPYCOMPare
DATACOMPare, SLISt, T LISt
DBLockModule Level Commands
DELaySWAVeform, TWAVeform, WLISt
EDGETTRigger
FINDCOMPare, STRigger, TTRigger
HAXisSCHart
HIGHSPA
HISTatisticSPA
HISTogramSPA
INSertSWAVeform, TW AVeform, WLISt
LABelSFORmat, SPA, TFORmat
LEVelarmMACHine
LINECOMPare, SLISt, TLISt, WLISt
LOWSPA
MASTerSFORmat
MENUCOMPare
MINusTWAVeform, WLISt
MLENgthSPA , ST Ri gger , S WAVeform, TTRigger,
TWAVeform
MMODeSLISt, TLISt, TWAV eform
MODESPA
CommandWhere Used
MOPQualSFORmat
MQUalSFORmat
NAMEMACHine
OCONditionTLISt, TWAVeform
OMARkerSPA
OPA T ternSLISt, TLISt, T WAVe form
OSEarchSLISt, TLISt, TWAVeform
OSTa teSLISt, TLISt, WLISt
OTAGSLISt, TLISt
OTHerSPA
OTIMeTWAVeform, WLISt
OVERlaySLISt, TWAVeform, WLISt
OVERViewSPA
OVSTatisticSPA
PATTernSYMBol
PLUSTWAVe form, WLISt
QUALifierSPA
RANGeCOMPare, SPA , ST Ri gger , SWAVeform,
SYMBol, TFO Rm at , TWAVeform, WL ISt
REMoveSFORmat , SLI St , SWAVeform, SYMBol ,
TFORmat, TLI St , TWAVeform, WL IS t
RENameMACHine
RESourceMACHine
RUNTilCOMPare, SLISt, TLISt, TWA V eform
SEQuenceSTRigger, TTRigger
SETCOMPare
SETHoldSFORmat
SLAVeSF ORmat
SOPQualSFORmat
SPERiodTFORmat, TWAVeform
SETHoldSFORmat
SLAVeSF ORmat
SOPQualSFORmat
SPERiodTFORmat, TWAVeform
SQUalSFORmat
STOReSTRigger
TAGSTRigger
TAKenbranc hSTRigger, SWAVeform
TAVerageSLISt, TLISt, TWAVeform
1–10
Table 1-1, continued
Alphabetical Command-to-Subsystem Direct ory, continued
VAXisSCHart
VRUNsSLISt, T LISt, T WAVeform
WIDThSYMBol
XCONditionTLISt, TWAVeform
XMARkerSPA
XOTagSLISt, TLISt
XOTim eS LISt, T LISt, T WAVeform, WL ISt
XPATternSLISt, TLIS t, TWAVeform
XSEa rchSLISt, TLISt, TWAVeform
XSTateSLISt, TLISt, WLI St
XTAGSLISt, TLISt
XTIMeTWAVeform, WLISt
1–11
Figure 1-2
Programming the HP 16557D
Module Status R eporting
Module Status Reporting
Each module reports its status to the Module Event Status Register
(MESR<N>), which in turn reports to the Combined Event Status Register
(CESR) in the HP 16500/16501A mainframe (see
Programmer’s Guide
enabled by the Module Event Status Enable Register (MESE<N>).
The MESE<N> and MESR<N> instructions are not used in conjunction with
the SELect command, so they are not listed in the HP 16557D’s command
tree.
The following descriptions of the MESE<N> and MESR<N> instructions
provide the module specific information needed to enable and interpret the
contents of the registers.
chapter 6). The Module Event Status Register is
HP 16500/16501A
Module Status Reporting
1–12
Loading...
+ 304 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.