Agilent 16550A Data Sheet

Errata
16550A Programmers Guide 16550-97000
May 1993
Title & Document Type:
Manual Part Number:
Revision Date:
HP References in this Manual
This manual may contain references to HP or Hewlett-Packard. Please note that Hewlett­Packard'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
Contents–1
Contents
REMove 4–12 XOTime 4–13 XSTate 4–13 XTIMe 4–14
55SFORmat SubsystemSFORmat Subsystem
SFORmat 5–6 CLOCk 5–6 LABel 5–7 MASTer 5–9 MODE 5–10 MOPQual 5–10 MQUal 5–11 REMove 5–12 SETHold 5–12 SLAVe 5–14 SOPQual 5–15 SQUal 5–16 THReshold 5–16
66 STRigger ( STRace) SubsystemSTRigger ( STRace) Subsystem
Qualifier 6–7 STRigger (STRace) 6–9 ACQuisition 6–9 BRANch 6–10 CLEar 6–12 FIND 6–13 RANGe 6–14 SEQuence 6–16 STORe 6–17 TAG 6–18 TAKenbranch 6–19 TCONtrol 6–20 TERM 6–21 TIMER 6–22 TPOSition 6–23
Contents–2
77SLISt SubsystemSLISt Subsystem
SLISt 7–7 COLumn 7–7 CLRPattern 7–8 DATA 7–9 LINE 7– 9 MMODe 7–10 OPATtern 7–11 OSEarch 7–12 OSTate 7–13 OTAG 7–14 OVERlay 7–15 REMove 7–15 RUNTil 7–16 TAVerage 7–17 TMAXimum 7–18 TMINimum 7–18 VRUNs 7–19 XOTag 7–19 XOTime 7–20 XPATtern 7–20 XSEarch 7–21 XSTate 7–22 XTAG 7–23
Contents
88SWAVeform SubsystemSWAVeform Subsy stem
SWAVeform 8–4 ACCumulate 8–5 ACQuisition 8–5 CENTer 8–6 CLRPattern 8–6 CLRStat 8–7 DELay 8–7 INSert 8–8 RANGe 8–8 REMove 8–9
Contents–3
Contents
TAKenbranch 8–9 TPOSition 8–10
99 SCHart SubsystemSCHart Subsys t em
SCHart 9–4 ACCumulate 9–4 HAXis 9–5 VAXis 9–6
1010 COMPare SubsystemCOMPare Subsy st em
COMPare 10–4 CLEar 10–5 CMASk 10–5 COPY 10–6 DATA 10–6 FIND 10–8 LINE 10–9 MENU 10–10 RANGe 10–10 RUNTil 10–11 SET 10–13
1111 TFORmat SubsystemTFORmat Subsystem
TFORmat 11–4 ACQMode 11–5 LABel 11–6 REMove 11–7 THRes hold 11–8
1212 TTRigger ( TTRace) SubsystemTTRigger ( TTRace) Subsystem
Qualifier 12–6 TTRigger (TTRace) 12–8 ACQuisition 12–8 BRANch 12–9 CLEar 12–12 FIND 12–12
Contents–4
GLEDge 12–14 RANGe 12–15 SEQuence 12–17 SPERiod 12–18 TCONtrol 12–19 TERM 12–20 TIMER 12–21 TPOSition 12–22
1313 T WAVeform Subsy stemTWAVeform Subsystem
TWAVeform 13–7 ACCumulate 13–7 ACQuisition 13–8 CENTer 13–8 CLRPattern 13–9 CLRStat 13–9 DELay 13–10 INSert 13–11 MINus 13–12 MMODe 13–13 OCONdition 13–14 OPATtern 13–15 OSEarch 13–16 OTIMe 13–17 OVERlay 13–17 PLUS 13–18 RANGe 13–19 REMove 13–19 RUNTil 13–20 SPERiod 13–21 TAVerage 13–22 TMAXimum 13–22 TMINimum 13–23 TPOSition 13–23 VRUNs 13–24 XCO Ndition 13–25 XOTime 13–25
Contents
Contents–5
Contents
XPATtern 13–26 XSEarch 13–27 XTIMe 13–28
1414 TLISt SubsystemTLISt Subsystem
TLISt 14–7 COLumn 14–7 CLRPattern 14–8 DATA 14–9 LINE 14–9 MMODe 14–10 OCONdition 14–11 OPATtern 14–12 OSEarch 14–13 OSTate 14–14 OTAG 14–14 REMove 14–15 RUNTil 14–16 TAVerage 14–17 TMAXimum 14–17 TMINimum 14–18 VRUNs 14–18 XCO Ndition 14–19 XOTag 14–19 XOTime 14–20 XPATtern 14–20 XSEarch 14–21 XSTate 14–22 XTAG 14–23
1515 SYMBol Subsyst e mSYMBol Subsyst em
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.
Example 10 OUTPUT XXX;":SELECT 3"
20 OUTPUT XXX;":MACH1:NAME ’TIMING’" 30 OUTPUT XXX;":MACH1:TYPE TIMING" 40 OUTPUT XXX;":MACH1:ASSIGN 1" 50 OUTPUT XXX;":MACH1:TFORMAT:LABEL ’COUNT’,POS,0,0,255" 60 OUTPUT XXX;":MACH1:TTRIGGER:TERM A, ’COUNT’, ’#HFF’" 70 OUTPUT XXX;":MACH1:TWAVEFORM:RANGE 1E− 6" 80 OUTPUT XXX;":MENU 3,5" 90 OUTPUT XXX;":MACH1:TWAVEFORM:INSERT ’COUNT’" 100 OUTPUT XXX;":RMODE SINGLE" 110 OUTPUT XXX;":START" 120 END
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.
Example 12,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.
SYSTem:PRINt Command/query SYSTem:PRINt Command/query
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
Command Where Used
ACCumulate SCHart, SWAVeform, T WAVeform ACQMode TFORmat ACQuisition STRigger, SWAVeform, TTRigger, TWAVeform ARM MACHine ARMline Module Level Commands ASSign MACHine BASE SYMBol BRANch STRigger, TTRigger CENter SWAVeform, TWAVeform CLEar COMPare, STRigger , TTRigger CLOCk SFORmat CLRPattern SLISt, SWAVeform, TLI St, TWAVeform CLRStat SWAVefor m , T WAVeform CMASk COMPare COLumn SLISt, TLISt COPY COMPare DATA COMPare, SLISt, TLISt DELay SWAVeform , T WAVeform, WLISt FIND COMPare, STRigger, TTRigger GLEDge TTRigger HAXis SCHart INSert SWAVefor m, T WAVeform, WLISt LABel SFORmat, TFORmat LEVelarm MACHine LINE COMPare, SLISt, TLISt, W LISt
Command Where Used
MASTer SFORmat MENU COMPare MINus TWAVeform, WLISt MMODe SLISt, TLISt, TWAVeform MODE SFORmat MOPQual SFORmat MQUal SFORmat NAME MACHine OCONdition TLISt, TWAVeform OPATtern SLISt, TLISt, TWAVeform OSEarch SLISt, TLISt , TWAVeform OSTate SLISt, TLISt, WLI St OTAG SLISt, TLISt OTIMe TWAVef orm, WLI St OVERlay SLISt, TWAVeform, WLISt PATTern SYMBol PLUS TWAVeform, WLISt RANGe COMPare, STRigger,, SWAVeform, SYMBol,
TFORmat, TWAVeform, WLI St
REMove SFORmat, SLISt, SWAVefor m , S Y MBol,
TFORmat, TLISt, T WAVeform, WLISt REName MACHine RESource MACHine RUNTil COMPare, SLI St, TLISt, TWAVeform SEQuence STRigger, TTRigger SET COMPare
1–11
Figure 1-1 (continued)
Programming the HP 16550A
Command Set Organization
Command Where Used
SETHold SFORmat SLAVe SFORmat SOPQual SFORmat SPERiod TFORmat, TWAVeform SQUal SFORmat STORe STRigger TAG STRigger TAKenbranch STRigger, SWAVeform TAVerage SLISt, TLISt, TWAVeform TCONtrol STRigger, TTRigger TERM STRigger, TTRigger THReshold SFORmat, TFORmat TIMER STRigger, TTRigger TMAXimum SLISt, TLISt, TWAVeform TMINimum SLISt, TLISt, TWAVeform
Command Wher e Used
TPOSition STRigger, SWAVeform,
TTRigger, TWAVeform TYPE MACHine VAXis SCHart VRUNs SLISt, TLISt, TWAVeform WIDTh SYMBol XCONdition TLISt, TWAVef orm XOTag SLISt , TLISt XOTime SLISt, TLISt, TWAVeform,
WLISt XPATtern SLISt, TLISt, TWAVeform XSEarch SLISt, TLISt, TWAVefor m XSTate SLISt, TLI St, WLISt XTAG SLISt, TLISt XTIMe TWAVefor 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