dsPICDEM? 80-Pin Starter Development Board User’s Guide
2.7.3
Set Breakpoint
1. To set a breakpoint, right click a code line and select Set Breakpoint from the
pop-up menu.
Note:
An alternate method is to simply double click the line. This feature may
need to be enabled in the Edit>Properties menu.
As an example, find the following line of code and set a breakpoint on this line:
Again:
btss
PORTA,#S1
A red stop sign should appear in the gutter (gray bar on the left) of the source
code window.
2. Press <F9> to run the code. The program halts on the instruction following the
breakpoint as shown in Figure 2-17.
Note:
The instruction on which the code halts could be elsewhere in the code if
the breakpoint is set on a branch or call instruction. Refer to Section 12
titled “Important Notes” in the Readme for MPLAB ICD 2.txt file located
in the C:\MPLAB IDE\READMES directory for additional operational
information on the MPLAB ICD 2.
FIGURE 2-17:
SETTING BREAKPOINT
In this example, every time <F9> is pressed to run the code, it sends one
character to the display and stops at the breakpoint. After the first four spaces,
the characters will start to appear on the LCD display.
2.8
SUMMARY
This tutorial demonstrates the main features of MPLAB IDE and MPLAB ICD 2 as they
are used with the dsPICDEM 80-Pin Starter Development Board. Upon completing this
tutorial, you should be able to:
DS51584B-page 24
?
?
?
?
?
?
?
?
Create a project using the Project Wizard
Assemble and link the code and set the Configuration bits
Set up MPLAB IDE to use MPLAB ICD 2
Program the chip with MPLAB ICD 2
View the code execution in program memory and source code
View registers in a Watch window
Set a breakpoint and make the code halt at a chosen location
Use the function keys to Reset, Run, Halt and Single Step the code
? 2006 Microchip Technology Inc.
相关PDF资料
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
DR-IAC5E INPUT MODULE AC 5VDC
DRIDC24A INPUT MODULE DC 34MA 24VDC
DRODC24 OUTPUT MODULE DC 13MA 24VDC
相关代理商/技术参数
DM300019 制造商:Microchip Technology Inc 功能描述:DEMO BOARD STARTER ((NW))
DM300020 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM MC1 Motor C RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300021 功能描述:开发板和工具包 - PIC / DSPIC High V Pwr Module RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300021 制造商:Microchip Technology Inc 功能描述:MODULE dsPICDEM MC1H 3 PHASE
DM300022 功能描述:开发板和工具包 - PIC / DSPIC Low V Pwr Module RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300023 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM SMPS Buck Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300024 功能描述:开发板和工具包 - PIC / DSPIC dsPICDEM 1.1 GP RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: