Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

DM300019 Datasheet(PDF) 26 Page - Microchip Technology

Part # DM300019
Description  Starter Development Board Userís Guide
PDF  50 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

DM300019 Datasheet(HTML) 26 Page - Microchip Technology

Back Button DM300019 Datasheet HTML 22Page - Microchip Technology DM300019 Datasheet HTML 23Page - Microchip Technology DM300019 Datasheet HTML 24Page - Microchip Technology DM300019 Datasheet HTML 25Page - Microchip Technology DM300019 Datasheet HTML 26Page - Microchip Technology DM300019 Datasheet HTML 27Page - Microchip Technology DM300019 Datasheet HTML 28Page - Microchip Technology DM300019 Datasheet HTML 29Page - Microchip Technology DM300019 Datasheet HTML 30Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 50 page
background image
dsPICDEM™ 80-Pin Starter Development Board User’s Guide
DS51584B-page 22
© 2006 Microchip Technology Inc.
2.7
DEBUGGING THE CODE
The MPLAB ICD 2 In-Circuit Debugger is used to run, halt and step the code. A
breakpoint can be set so that the program halts once the code has executed the
instruction at the breakpoint. The contents of the RAM and registers can be viewed
whenever the processor has been halted.
The MPLAB ICD 2 In-Circuit Debugger uses the following function keys to access the
main debugging functions:
In addition, there are more functions available by right clicking on a line of source code.
The most important of these are “Set Breakpoint” and “Run to Cursor”.
2.7.1
Display the Code
1. From the View menu, select the Program Memory menu.
2. On the Program Memory window, select the Symbolic tab, as shown in
Figure 2-14.
FIGURE 2-14:
PROGRAM MEMORY WINDOW
3. Press <F5> to halt the processor and press <F6> to reset. The program memory
now shows a green arrow pointing to the line of code at address 00000, the reset
location.
The instruction at this location is goto _reset. This code is added by the linker
to make the program branch to the start of the code in the Eg1_BlinkLed.s file.
The code uses the _reset label at the start of the executable code and declares
the label as global to have visibility outside the source file. See Example 2-1.
EXAMPLE 2-1:
CODE START-UP
The linker also provides values for the __SP_init and __SPLIM_init
constants to initialize the Stack Pointer (W15) since the linker determines what
RAM is available for the stack.
<F5>
Halt
<F6>
Reset
<F7>
Single Step
<F9>
Run
.global __reset
..text
__reset:
mov
#__SP_init, W15 Pointer
mov
#__SPLIM_init, W0
mov
W0, SPLIM



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com