Maxim Integrated MAXQ2000 Скачать руководство пользователя страница 7

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 

Maxim

 (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

Содержание MAXQ2000

Страница 1: ...isplay ambient temperature is provided Overview The MAXQ2000 USB Thumb Evaluation Kit is a proven platform for conveniently evaluating the MAXQ2000 RISC microcontroller The evaluation EV kit board is a small thumb drive form factor with a USB interface Figure 1 By installing the MAX IDE assembly language Integrated Development Environment on a connected computer applications can be developed and d...

Страница 2: ...The autorun function stored on the stick may cause the setup program to run automatically depending on your operating system and its settings If the program does not start automatically explore the drive and double click the Setup exe file in the root directory This will bring up the MAXQ2000 EV kit main menu shown in Figure 2 Click on the USB Serial Drivers button at the right of the screen This ...

Страница 3: ...must be configured to use this COM port This configuration process is described in more detail below For now simply record the COM port assignment for later configuration Installing the MAX IDE The MAX IDE program is a full featured application development and debugging environment for MAXQ microcontrollers It works with all MAXQ EV kits and provides the following features Project based developmen...

Страница 4: ... COM4 This would also be a good time to check the Device Configuration File and the Desired JTAG Clock Frequency kHz set them to the values shown if they do not appear already Figure 4 Configuring the options for the MAX IDE Example Program There are several MAXQ2000 example applications provided on the USB flash drive in the folder examples One of these example programs is written in MAXQ assembl...

Страница 5: ... available the USB connector on the kit must be connected to a powered nonsuspended USB host Loading the Executable File There are several ways that an executable program file can be loaded into and run by the MAXQ2000 EV kit board For instance one can load a HEX formatted file using the Microcontroller Tool Kit MTK available on the provided USB flash drive or downloaded from the Maxim website How...

Страница 6: ...ar with the MAX IDE s capabilities this would be a good time to go exploring You can pause the program by clicking the pause button to the right of the run button Figure 6 Activating the pause button will cause several things to occur The MAX_IDE will halt the program and place a highlight bar over the next line of code to be executed Figure 7 The register contents shown in the table at the right ...

Страница 7: ...an be found in the MAXQ Development Tools Guide available from Maxim 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 LC...

Страница 8: ...latform for conveniently evaluating the MAXQ2000 RISC microcontroller The board is a small thumb drive form factor with a USB interface The EV kit includes a USB flash drive memory device containing the MAX IDE With MAX IDE and the kit board the user can develop and debug applications for the MAXQ2000 RISC microcontroller Several example programs and an evaluation copy of the IAR C compiler and to...

Страница 9: ...APPLICATION NOTE 4277 AN4277 AN 4277 APP4277 Appnote4277 Appnote 4277 2013 Maxim Integrated Products Inc Additional Legal Notices http www maximintegrated com legal Page 9 of 9 ...

Отзывы: