This manual may contain references to HP or Hewlett-Packard. Please note that HewlettPackard's former test and measurement, semiconductor products and chemical analysis
businesses are now part of Agilent Technologies. We have made no changes to this
manual copy. The HP XXXX referred to in this document is now the Agilent XXXX.
For example, model number HP8648A is now model number Agilent 8648A.
About this Manual
We’ve added this manual to the Agilent website in an effort to help you support your
product. This manual provides the best information we could find. It may be incomplete
or contain dated information, and the scan quality may not be idea l. If we find a better
copy in the future, we will add it to the Agilent website.
Support for Your Product
Agilent no longer sells or supports this product. You will find any other available
product information on the Agilent Test & Measurement website:
www.tm.agilent.com
Search for the model number of this product, and the resulting product page will guide
you to any available information. Our service centers may be able to perform calibration
if no repair parts are needed, but no other support from Agilent is available.
Program mer’ s Guid e
Publication number 16550-97000
First edition, May 1993
For Sa f ety informatio n, Wa rranties , and Re gulatory
information, see the pages behind the index
• Copyright Hewlett-Packard Compa ny 1987, 1990, 1993
All Rights Reserved
HP 16550A 100-MHz S tate/
500-MHz Timing Logic Analyzer
ii
In This Book
This guide, combined with the HP
16500B/16501A Programmer’s Guide,
provid es you with the info rma tion
needed to program the HP 16550A logic
a nalyzer module. Eac h module has its
own reference to supplement the
mainframe manual since not all
mainframes will be c onfigured with the
same modules.
This manua l is orga nized in th ree parts.
Part 1 consists of chapters 1 and 2 which
contain general information and
instruc tions to help yo u get s tarted .
Chapter 1 also contains:
Mainframe system commands that are
•
frequently used with the logic
a nalyzer module
HP 16550A Logic Analyzer command
•
tree
Alphab etic co m m and-to-subsystem
•
directory
Chapter 2 contains module level
commands .
Part 2 consists of chapters 3 through 15
which contain the subsystem commands
for the logic analyzer and chapter 16
which contains information on the
SYSTem:DATA and SYSTem:SETup
commands for this module.
1
2
3
4
5
6
7
8
9
10
11
12
13
Programming the HP 16550B
Module Level Commands
MACHine Subsystem
WLISt Subsystem
SFORmat Subsystem
STRigger (STRace) Subsystem
SLISt Subsystem
SWAVeform Subsystem
SCHart Subsystem
COMPare Subsystem
TFORmat Subsystem
TTRigger (TTRace) Subsystem
TWAVeform Subsystem
14
TLISt Subsystem
iii
Part 3, chapter 17, contains program examples of actual tasks that show you
how to get started in programming the HP HP 16550A logic analyzer. These
exam ples are written in HP BASIC 6.2; however, the program co ncepts can
be used in any other popular programming language that allows
communications with either the HP-IB or RS-232C buse s.
Error messages for the HP 16550A are included in generic system error
me ssages and are in the HP 16500B/16501A Programmer’s Guide.
iv
15
SYMBol Subsystem
16
17
DATA and SETup Commands
Programming Examples
Index
v
vi
Contents
11 Programmin g th e HP 16550AProgrammin g th e HP 16550A
Selecting the Modu le 1 –3
Programmer’s the Logic Analyze r 1–3
Mainframe Commands 1–5
Command Set Organization 1–8
Module S tatus Reporting 1–13
MESE<N> 1–14
MESR<N> 1–16
22 Module Level Commands Module Level Commands
ARMLine 2–5
MACHine 2–5
WLISt 2–6
33MACHine SubsystemMACHine Subsystem
MACHine 3–4
ARM 3–5
ASSign 3–6
LEVelarm 3–7
NAME 3–8
REName 3–8
RESource 3–9
TYP E 3–10
44WLISt SubsystemWLISt Subsystem
WLISt 4–4
DELay 4–5
INSe rt 4 –6
LINE 4 –7
MINus 4–8
OSTate 4–9
OTIMe 4–9
OVERlay 4–10
PLUS 4–11
RANGe 4–12
SYMBol 15–5
BASE 15–5
P ATTern 15–6
RANGe 15–7
REMove 15–8
WIDTh 15–8
Contents–6
1616 DATA and SETup CommandsDATA and SETup Commands
Introduction 16–2
Data Format 16–3
SYSTem:DATA 16–4
Section Header De scription 16– 6
S e ction Data 16–6
Data Preamble Description 16–6
Acquisition Data Description 16–11
Time Tag Data Description 16–13
Glitch Da ta Description 1 6–15
SYSTem:SETup 16–17
1717 Progr amming Exampl esProgramming Examples
Making a Timing analyzer measurement 17–3
Making a State analyzer measurement 17–5
Making a State Compare measurement 17–9
Transferring the logic analyzer configuration 17–14
Transferring the logic analyzer acquired data 17–17
Checking for measurement completion 17–21
Sending queries to the logic analyzer 17–22
Contents
IndexIndex
Contents–7
Contents–8
Part 1
11 Introduction to Programming 1-1
22 Module Leve l C o m m ands 2-1
General
Information
1
P rogra mming the
HP 16550A
1–1
Introduction
This chapter introduces you to the ba sic command structure used to
program the logic analyzer. Also included is an example program tha t
sets up the timing analyzer for a ba sic timing measureme nt.
Additional program examples are in chapter 17.
1–2
Programming the HP 16550A
Selecting the Module
Sele cting 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 :SELec t followed by the
numeric reference for the slot location of the logic analyzer ( 1 through 10
refers to slot A through J respectively). For example, if the logic analyzer is
in slot E, th en the command:
:SELect 5
would s elect this mo dule. For more information on the s elect command,
refer to the HP 16500B/16501A P rogrammer’s G uide m anual.
Programmer’s 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
•
as sign labels
•
sets p od thresh olds
•
specify a trigger condition
•
set u p the display
•
specify acquisitio n ty pe
•
start acquiring data
•
1–3
Programming the HP 16550A
Programmer’s the Logic Analyzer
The following exam ple program s ets up the logic analyzer to make a simple
timing analyzer measurement.
The three Xs (XXX) a fter the "OUTPUT" stateme nts in the previous
example refer to the device address required for programming over either
H P-IB or RS-232C . Ref er to your control ler manual a nd p rogra mming
languag e reference manual for inf ormation on initializing the interface.
Program CommentsProgram Comments
Line 10 selects the logic analyzer in slot C.
Line 20 names machine (analyzer) 1 "TIMING ".
Lin e 3 0 specifies machine 1 is a timing analyzer.
Line 40 ass igns pods 1 a nd 2 to machine 1.
Line 50 sets up the Timing Format menu by assigning the label COUNT, and
as signing 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.
Lin e 9 0 inserts th e label "CO UNT" in th e Timing Waveform menu.
Line 100 specifies the Single run mode.
Line 110 starts data acquisition.
For more inform atio n on th e specific logic analyz er comma nds, refe r to
chapters 2 through 16.
1–4
Mainframe Commands
These commands are part of the HP 16500B/16501A mainframe system and
are m entione d here only for referenc e. F or more information on these
comm ands, refe r to the HP 16500B/16501A Programmer’s G uide .
CARDcage? Que ry CARDcage? Que ry
The CARDcage query returns a string of integers which identifies the
modules that are ins talled in the mainframe. The returned string is in two
parts. Th e first five two-digit numbers identify the card type . T he
identification number for the HP 16550A logic analyzer is 32. A "− 1" in the
first part of th e string indicates no card is installed in the slot.
The five, single-digit numbers in the second part of the string indicate which
slots have cards installed, w hich card has th e controlling software for the
module, a nd where the master card is loca ted.
Example12,11,− 1,− 1,32,2,2,0,0,5
Programming the HP 16550A
Mainframe Commands
A return ed strin g o f 12,11,-1,-1,32,2,2,0,0,5 means that an
o scilloscope time b as e card (ID num be r 11) is loaded in slot B and the
o scilloscope acquisition card (ID num be r 12) is loaded in slot A. The nex t
two slots ( C and D) are empty ( − 1) . Slot E contains a logic analyzer
module (ID number 32) .
The next group of numbers (2,2,0,0,5) indicate that a two-card module
is installe d in slots A and B with the master card in slot B. The "0" indicate s
an empty slot, or the module s o ftware is not recognize d or, is not loaded.
The last digit (5) in this group indic ates a s ingle module card is loaded in
slot E. Complete info rmation for the CARDcage query is in the
HP 16500B/16501A Programmer’s Guide manual.
1–5
Programming the HP 16550A
Mainframe Commands
MENU Command/query MENU Command/query
The MENU co m mand selects a new displayed menu. The first parameter
(X) specifies the desired module. The optional, second parameter specifies
the desired menu in the module. It defaults to 0 if it is not spe cified). The
query returns the currently selected and displayed menu.
For the HP 16550A 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 — Wa v eform 1
•
X,6 — Wa v eform 2
•
X,7 — Listing 1
•
X,8 — Listing 2
•
X,9 — Mixed D isplay
•
X,10 — Compare 1
•
X,11 — Compare 2
•
X,12 — Chart 1
•
X,13 — Chart 2
•
The menus of an "OFF" machine are not available when only one analyzer is
turned on. The Mixed Display is available only when one or both analyzers
are state analyzers.
SELect Command/querySELect Command/query
The S ELect command se lects which module or intermodule will have pa rser
control. S ELect 0 selects the intermodule, SELect 1 through 5 s elects
mo d ule s A throug h E re spe c tively. V alues − 1 and − 2 select software
options 1 a nd 2. The SELect query returns the currently selected module.
STARt Command STARt Command
1–6
Programming the HP 16550A
Mainframe Commands
The STARt command starts th e spec ified module or intermodule. If the
specified module is configure d for in termodule, STA Rt will sta rt all modu les
configured for intermod ule.
STOP Command STOP Command
The STOP command stops the specified module or intermodule. If the
specified module is configure d for in termodule, STOP will stop all modules
configured for intermod ule.
STARt and STOP are Overla pped Commands. Overlapped Commands allow
execution of subsequent commands while the logic analyzer operations
initiated by the Overla pped Command are still in prog ress . For mo re
information, see *OP C a nd *WAI c omma nds in Chapter 5 of the HP
16500B/16501A P rogrammer’s Guide .
RMODe Command/query RMODe Command/query
The RMODe co m m and sp ecifies the run mode (s ingle or repetitive) for a
module or intermodule. If the selected module is configured for
intermodule, the intermo dule run mode w ill be set b y this comma nd. The
RMODe q uery retur ns the current setting .
SYSTem:ERRor? Query SYSTem:ERRor? Query
The SYSTem:ERRor query ret ur ns t he oldest err or in t he err or queue. In
orde r to return all the errors in the e rror que ue, a simple F OR/NEXT loop
can be written to query the queue until all errors are returned. Once all
errors are retu rne d, the qu ery will return zero s.
The SYSTem:PRINt command init iat es a print of t he screen or li st ing buff er
over t he cur rent printer communicat ion int erface. The SYSTem:PRINt query
sends the screen or listing buffer data over the current controller
communication interface.
MMEMory Subsystem MMEMory Subsystem
The MM EM o ry S ub system provides access to both internal disc drives for
lo ading and storing c onfiguration s.
INTermodule Subsystem INTermodule Subsystem
1–7
Programming the HP 16550A
Mainframe Commands
The INTermodule Subsystem commands are used to specify intermodule
arming between multiple modules.
1–8
Figure 1-1
Programming the HP 16550A
Command Set Organization
Command Set Organization
1–9
Programming the HP 16550A
Command Set Organization
The command se t for the HP 16550A is divided into module-level commands
and subsystem commands. Mo dule-level commands are listed in Chapter 2,
"Module Level Commands" and ea ch of the subsys tem commands are
covered in their individual chapters starting with Chapter 3, "MACHine
Subsystem."
Each of these cha pters contains a de scription of the subsystem, syntax
diagrams, and the commands in alphabe tical order. The commands a re
sho wn in long form and short form using upper and lowercas e letters. For
example, LABe l in dicates th at the long form of th e c ommand is LABEL an d
the short form is LAB. Each of the commands co ntain a description of the
com mand a nd its argum ents, the comm and syntax, and a progra m m ing
example.
Figure 1-1 on the following page shows the command tree for the
HP 16550A logic analyzer module. The (x) following the S ELect command
at the top of the tre e rep rese nts the slot n umber where the logic analyze r
module is installed. The number may range from 1 through 10, representing
slots A through J, respectively.
1–10
HP 16550A Command Tree
Programming the HP 16550A
Command Set Organization
CommandWhere Used
ACCumulate SCHart, SWAVeform, T WAVeform
ACQModeTFORmat
ACQuisitionSTRigger, SWAVeform, TTRigger, TWAVeform
ARMMACHine
ARMlineModule Level Commands
ASSignMACHine
BASESYMBol
BRANchSTRigger, TTRigger
CENterSWAVeform, TWAVeform
CLEarCOMPare, STRigger , TTRigger
CLOCkSFORmat
CLRPatternSLISt, SWAVeform, TLI St, TWAVeform
CLRStatSWAVefor m , T WAVeform
CMASkCOMPare
COLumnSLISt, TLISt
COPYCOMPare
DATACOMPare, SLISt, TLISt
DELaySWAVeform , T WAVeform, WLISt
FINDCOMPare, STRigger, TTRigger
GLEDgeTTRigger
HAXisSCHart
INSertSWAVefor m, T WAVeform, WLISt
LABelSFORmat, TFORmat
LEVelarmMACHine
LINECOMPare, SLISt, TLISt, W LISt
WLISt
XPATternSLISt, TLISt, TWAVeform
XSEarchSLISt, TLISt, TWAVefor m
XSTateSLISt, TLI St, WLISt
XTAGSLISt, TLISt
XTIMeTWAVefor m , WLISt
1–12
HP 16550A Command Tree (continued)
Table 1-1
Alphabetical Command-to-Subsystem Directory
Table 1-1 (continued)
Alphabetical Command-to-Subsystem Directory
Figure 1-2
Programming the HP 16550A
Command Set Organization
1–13
Programming the HP 16550A
Module Status Reporting
Module Status R eporting
Each module reports its status to the Module Event Status Register
(MESR<N>), which in turn reports to the C omb ined Event Status Re g ister
(CESR) in the HP 16500B/16501A mainframe (see HP 16500B/16501A
Programmer’s Guide chapter 6) . The Module Event Status Register is
enabled by the Module Event Status Enable Register ( MESE<N>).
The M ESE<N> and MESR<N> instructions are not use d in conjunction with
the SELect command, so they are not listed in the HP 16550A’s command
tree.
The following descriptions of the M ESE<N> and MESR<N> instructions
provide the modu le specific information needed to enable and inte rpret the
contents of the registers.
Module Status Reporting
1–14
Loading...
+ 271 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.