
Figure 7. Program execution paused.
You can set a breakpoint by simply clicking on the line number to the left of the code window, or you can
single-step through lines of code using the Step Into button shown at the far left of
Figure 8
. The two buttons
to the right of the Step Into button are the Step Over and Step Out buttons, respectively. As their names
imply, they allow the user to step over or step out of subroutines. The rightmost button is the Run To Cursor
button. By placing the cursor at any line of the program and clicking this button, the program will run until that
line is next to execute.
Figure 8. Step buttons.
Further details on the capabilities of the MAX-IDE can be found in the MAXQ Development Tools Guide,
available from
(PDF, 864KB).
C Code Examples
There are two other example programs contained on the USB flash drive: Countdown and Temperature, both
contained under the Examples\IAR subdirectory on the Flash drive. The Countdown program uses an internal
timer to generate a 1s interval to count down from an initial value. The count is displayed on the LCD, and the
program halts when the value of 00:00 is reached. The Temperature program is a C language version of the
assembly program of the same name illustrated above. Both of these examples were coded using the IAR
compiler which is also contained on the USB flash drive.
A detailed description of loading the IAR compiler and executing these two example MAXQ2000 applications is
beyond the scope of this document. Nonetheless, a few general comments are worth noting.
Page 7 of 9