You are on page 1of 3

Setup

Home » Debugging » Debug Windows and Dialogs » Logic Analyzer » Setup

To setup the Logic Analyzer use the menu command Debug — Logic Analyzer. You may
enter the LA command in the command window to setup signals or remove all signals from
recording (see also Logic Analyzer — Setup in Detail).

The Setup... dialog defines variables for signal recording and configures the display output:

Current Logic Analyzer Signals lists the current configuration.

 Add a variable or VTREG for signal recording with New (Insert key). Delete (Delete key)
removes a selected signal.
 Select a signal name in this list to modify the following settings.

Signal Display configures the appearance of a selected signal.

 Display Type sets the graphical display output to: Analog, Bit (0 or 1), or State (signal
transitions).
 Color sets signal display color.
 When Hexadecimal Display is enabled signal values are shown as HEX values. When
disabled decimal values are shown.

BLUETRONICS INC (rajan@bluetronics.co.in) Page 1


Display Range configures the value range of a selected signal.

 Min Value and Max Value selects the display range for Analog display type. You may
use decimal or HEX values for the range selection.

Display Formula (Signal & Mask) >> Shift extracts specific bits from a signal value for
displaying.

 And Mask specifies a AND mask for the value display of a signal.
 Shift Right specifies a shift right factor for the value display of a signal.

Export / Import allows you to store and restore the current Logic Analyzer Setup.

 Export Signal Definitions creates a file with the current setup of the signal definitions.
 Import Signal Definitions restores a signal definition setup from a file.

Setup in Detail
Home » Debugging » Debug Windows and Dialogs » Logic Analyzer » Setup in Detail

Using the Logic Analyzer requires that you configure the signals to be recorded. The
following section provides detailed information and shows input examples to the
dialog Debug — Setup Logic Analyzer.

Analog Signals

The Display Type Analog is typically used for A/D or D/A converter VTREGs, but is also very
useful to display variables ("tone.y1", "AIN0", and "Signal" under Logic Analyzer are
configured with Display Type Analog).

 With Min Value and Max Value you select the maximum and minimum value shown in
the diagram in decimal or hexadecimal format.
 Mask specifies an AND mask used to strip-off bits that should be not displayed.
 Shift Right allows you to specify a shift factor that performs a division on the input value

Input Examples with Display Type Analog:

Variable "tone.y1", Min Value: -32000, Max Value: 32000

Variable "Signal", Min Value: 0, Max Value: 0x2E0, Mask: 0xFFF00, Shift Right: 8

Bit Signals

The Display Type Bit reduces a value to false (= 0) or true (= 1) and is typically used for a
single digital I/O pin but may be applied also to variables. ("CC1..." under Logic Analyzer is
configured with Display Type Bit). For efficient entry the Setup dialog converts inputs in

BLUETRONICS INC (rajan@bluetronics.co.in) Page 2


the format Identifier.Bitpos to the Display Type bit with corresponding Mask and Shift
Right value.

 Mask specifies an AND mask used to strip-off bits that should be not displayed.
 Shift Right allows you to specify a shift factor that performs a division on the input value

Input Examples with Display Type Bit:

Variable "PORT0.2"

Variable "PORT2", Mask: 0x10, Shift Right: 4 (Note input is identical to PORT2.4)

Variable "flag", Mask: 0xFF, Shift Right: 0

State Diagrams

The Display Type State shows the signal transitions shows value changes and is typical
used to show BUS signals ("ADC..." under Logic Analyzer is configured with Display
Type State).

 Mask specifies an AND mask used to strip-off bits that should be not displayed.
 Shift Right allows you to specify a shift factor that performs a division on the input value

Input Examples with Display Type Bit:

Variable "DTMF_Input", Mask: 0xF0, Shift Right: 4

Variable "Keys", Mask: 0xFF, Shift Right: 0

BLUETRONICS INC (rajan@bluetronics.co.in) Page 3

You might also like