µVision4 User's Guide

Technical Support

On-Line Manuals

µVision4 User's Guide

About µVision User Interface Creating Applications Utilities Debugging Using the Debugger Simulation Start Debugging Application Program Execution Debug Windows and Dialogs Breakpoints Window Call Stack and Locals Window Code Coverage Command Window Disassembly Window Event Viewer Execution Profiler Instruction Trace Window Logic Analyzer Setup Setup in Detail Restrictions Using the Logic Analyzer Memory Map Memory Window Performance Analyzer Registers Window Serial Window Symbols Window System Viewer Adding System Viewer Windows Toolbox Trace Data Window Trace Navigation Watch Window Expressions Constants System Variables Peripheral Variables I/O Ports Serial Ports Program Variables (Symbols) Fully Qualified Symbols Non-Qualified Symbols Literal Symbols Using Symbols Line Numbers Bit Addresses Type Specifications Operators Memory Type Specifiers Differences Between µVision4 and C Expression Examples Tips and Tricks Review Peripherals and CPU Configuration Simulate I/O Ports Simulate Interrupts and Clock Inputs Simulate external I/O Devices Assign Serial I/O to a PC COM Port Check Illegal Memory Access Command Input from File Preset I/O Ports or Memory Contents Write Debug Output to a File Keyboard Shortcuts TPIU Initialization after RESET (Cortex-M) Debug Commands Debug Functions Simulation Flash Programming Dialogs Example Programs Command Line Appendix

Expressions

Many debug commands accept numeric expressions as parameters. A numeric expression is a number or a complex expression that contains numbers, debug objects, or operands. An expression can consist of any of the following components:

ComponentDescription
ConstantsConstants are fixed numeric values or character strings.
System VariablesSystem variables alter or affect the way µVision4 operates.
Peripheral VariablesPeripheral register variables allow access to the simulated on-chip peripherals.
Program Variables (Symbols)Program variables are those variables in your target program. They are often called symbols or symbolic names.
Line NumbersLine numbers reference code addresses of executable programs. When you compile or assemble a program, the compiler and assembler include line number information in the generated object module.
Bit AddressesBit addresses reference bit-addressable data memory.
Type SpecificationsType specifications let you specify the data type of an expression or sub-expression.
OperatorsOperators include +, -, *, and /. Operators may be used to combine sub-expressions into a single expression. You may use all operators that are available in the C programming language.
Memory Type SpecifiersMemory type specifiers that can be used with debugging commands in 80x51 microcontrollers.
Difference between µVision4 and CDifferences to be aware of.
Expression ExamplesCode snippets explaining the usage of expressions you can enter in the Command Window.