Download Getting Started with dsPIC30F Digital Signal Controllers User's Guide
Transcript
Getting Started with dsPIC30F Digital Signal Controllers Chapter 5. The MPLAB ICD 2 In-Circuit Debugger 5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 MPLAB ICD 2 Overview ........................................................................... 43 Setting Up the MPLAB ICD 2 .................................................................... 44 Programming the dsPIC Device ............................................................... 46 Resetting the Code ................................................................................... 46 Stepping Through the Code ...................................................................... 47 Running the Code ..................................................................................... 48 The Debug Toolbar and Hotkeys .............................................................. 48 Breakpoints ............................................................................................... 49 Watch Window .......................................................................................... 50 Advanced Breakpoints .............................................................................. 52 Chapter 6. MPLAB ICE 4000 In-Circuit Emulator 6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 6.13 6.14 MPLAB ICE 4000 Overview ...................................................................... 55 Opening the Project .................................................................................. 57 Special Emulator Devices ......................................................................... 57 Selecting the MPLAB ICE 4000 ................................................................ 58 MPLAB ICE 4000 Settings ........................................................................ 59 Resetting the Code ................................................................................... 61 Stepping Through the Code ...................................................................... 61 Running the Code ..................................................................................... 62 The Debug Toolbar and Hotkeys .............................................................. 62 Breakpoints ............................................................................................... 63 Watch Window .......................................................................................... 64 Stopwatch ................................................................................................. 66 Trace Buffer .............................................................................................. 67 Complex Triggers ..................................................................................... 68 Chapter 7. The MPLAB ASM30 Assembler 7.1 7.2 7.3 MPLAB ASM30 Assembler Overview ....................................................... 71 Commonly Used Directives ...................................................................... 72 Example Code .......................................................................................... 75 Chapter 8. MPLAB C30 C Compiler 8.1 8.2 8.3 8.4 8.5 8.6 8.7 MPLAB C30 C Compiler Overview ........................................................... 81 MPLAB C30 C Compiler Projects ............................................................. 81 Creating a Project with the Project Wizard ............................................... 82 Setting the Build Options .......................................................................... 86 Building the Project ................................................................................... 87 Language Features ................................................................................... 87 Example Code .......................................................................................... 88 Chapter 9. The MPLAB LINK30 Linker 9.1 9.2 DS70151A-page iv MPLAB LINK30 Linker Overview .............................................................. 91 Linker Script Files ..................................................................................... 92 © 2005 Microchip Technology Inc.