Keil Logo


The LogicAnalyze command records the value changes of variables. The recorded signals are shown in the Logic Analyzer window.

Syntax Description
LA Displays statistics about each recorded signal. The number of changes is shown with the variable.
LA variable_name Starts signal recording for the specified variable or VTREG. Signal recording is only possible for scalar variables or VTREGs of the type char, unsigned char, int, unsigned int, long, or unsigned long. Refer to restrictions for further details.
LA KILL * Removes all signals from being recorded.
>LA Tone.y1            /* Start recording for y1 member of struct Tone */
>LA CC1_OUT            /* Start recording for CC1_OUT which is a PWM output signal */
>LA AN0                /* Start recording for VTREG AN0 which represents a A/D input */
>LA ADC_DAT            /* Start recording for ADC_DAT that represents the A/D output register */
>LA Signal             /* Start recording for the variable Signal */

/* After execution of the user program ... */

>LA                    /* display statistics for the signal recording */
  1: ''Tone.y1' nRec=211
  2: ''CC1_OUT' nRec=810
  3: ''AN0' nRec=5644
  4: ''ADC_DAT' nRec=400
  5: ''Signal' nRec=0

>LA KILL *             /* Remove all variables from signal recording */


  • The µVision Simulator might not provide exact timing on some communication peripheral pins. Read/write signals for UART, I²C, and CAN are not toggled. Instead, VTREGs are used to represent the communication stream.  Therefore, it is impossible to review changes of such communication signals.
  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.