Keil Logo

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 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

Note

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.