Making a State Compare Measurement
This program example acquires a state listing, copies the listing to the
compare listing, acquires another state listing, and compares both listings to
find differences.
This program is written so that you can run it with the E2433 Logic Analyzer
Training Board. This example is the same as the "State Compare" example in
chapter 3 of the Logic Analyzer Training Kit.
10 ! *********** STATE COMPARE EXAMPLE ********************************
20 ! for the Agil ent 1670G-series Logic Analyzer
30 !
40 !
50 !************ SELECT THE Agilent 1670G MODULE ****************
60 ! Select the module slot in which the Agilent 1670G is installed.
70 !
80 OUTPUT 70 7;":SYSTEM:HEADE R OFF"
90 OUTPUT 70 7;":SELECT 1"
100 !
110 !************** CONFIGURE THE STATE ANALYZER ***********************
120 ! Name Ma chine 1 "STATE," configure Machi ne 1 as a state analyzer in
130 ! Compare mode, and assign pod 1 to Machine 1.
140 !
150 OUTPUT 70 7;":MACHINE1:NAM E ’STATE’"
160 OUTPUT 70 7;":MACHINE1:TYP E COMPARE"
170 OUTPUT 70 7;":MACHINE1:ASS IGN 1"
180 !
190 ! ******************************************************************
200 ! Remove all labels previously set up, make a label "SCOUNT," specify
210 ! positive logic, and assign the lower 8 bits of pod 1 to the label.
220 !
230 OUTPUT 70 7;":MACHINE1:SFO RMAT:REMOVE ALL"
240 OUTPUT 70 7;":MACHINE1:SFO RMAT:LABEL ’SCOU NT’, POS, 0,0,25 5"
250 !
260 ! ******************************************************************
270 ! Make the "J" clock the Master clock and specify the falling edge.
280 !
290 OUTPUT 70 7;":MACHINE1:SFO RMAT:MASTER J, F ALLING"
300 !
310 ! ******************************************************************
320 ! Specify two sequence le vels, the trigge r sequence level , specify
330 ! FF hex for the "a" term which will be the trigger term, and store
Programming Examples
Making a State Compare Measurement
43–9