Develop an Application
3.3
RUNNING THE EXAMPLE APPLICATION
The starter kit executes in either real-time (Run) or steps (Step Into, Step Over,
Animate). Real-time execution occurs when you select Run in MPLAB IDE. Once the
device code is halted, either by Halt or a breakpoint, you can step.
The toolbar buttons shown in Table 3-1 can be used for quick access to commonly
used debug operations:
TABLE 3-1:
TOOLBAR BUTTONS
Debugger Menu
Run
Halt
Debug Toolbar
Debugger Menu
Program
Read
DSK Toolbar
Animate
Step Into
Step Over
Reset
Breakpoints
To see how these options function, do the following:
1. Select Debugger>Reset>Processor Reset or click Reset to reset the program.
2. Select Debugger>Run or click Run . Observe how the application operates.
3. Select Debugger>Halt or click Halt to stop the program execution. A green solid
arrow will mark the line of code in the File window where the program halted.
4. Select Debugger>Step Into or click Step Into to step the program execution
once. The green solid arrow will move down one line of code in the File window.
Click the button several times to step through some code.
5. Select Debugger>Reset>Processor Reset click Reset to reset the program
again. The arrow will disappear, meaning the device is reset.
3.4
DEBUGGING THE EXAMPLE APPLICATION
For the example code given, everything works fine. However, when you are developing
code, it will likely not work the first time and may need to be debugged. MPLAB IDE
provides an editor and several debug features, such as breakpoints and Watch
windows, to aid in application code debugging.
This section includes:
? 2008 Microchip Technology Inc.
DS51780A-page 19
相关PDF资料
DM240311 BOARD DEV PIC24F16KA102 XLP
DM300018 BOARD DEMO DSPICDEM 2
DM300019 BOARD DEMO DSPICDEM 80L STARTER
DM300024 KIT DEMO DSPICDEM 1.1
DM330012 KIT USB STARTER FOR DSPIC33E
DM330013 MICROSTICK DSPIC33F/PIC24H BOARD
DNET1 SURGE SUPPRESSOR ETHERNET RJ45
DR-8094 RACK DOUBLE 84"X20.25"X36" BLK
相关代理商/技术参数
DM240311 功能描述:开发板和工具包 - PIC / DSPIC XLP 16-bit Dev Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240312 功能描述:开发板和工具包 - PIC / DSPIC PIC24FJ256DA210 Dev Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240313 功能描述:开发板和工具包 - PIC / DSPIC XLP 8-BIT Dev Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM240314 功能描述:显示开发工具 LCD Explorer Dev Brd RoHS:否 制造商:4D Systems 产品:4Display Shields 工具用于评估:?OLED-160-G1, ?OLED-160-G2 接口类型:Serial 工作电源电压:5 V
DM240315-2 功能描述:射频开发工具 Remote Control Demo Board RoHS:否 制造商:Taiyo Yuden 产品:Wireless Modules 类型:Wireless Audio 工具用于评估:WYSAAVDX7 频率: 工作电源电压:3.4 V to 5.5 V
DM240316 功能描述:位置传感器开发工具 Motion Sensor Demo Board RoHS:否 制造商:Microchip Technology 工具用于评估: 接口类型: 工作电压:
DM240316 制造商:Microchip Technology Inc 功能描述:DEMO BOARD PIC24F MCU MOTION
DM240415 功能描述:开发板和工具包 - PIC / DSPIC PIC24F Accessory Dev Starter Kit-Android RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: