User ManualTable of ContentsPreface7Introduction7Document Layout7Conventions Used in this Guide9Warranty Registration10Recommended Reading10The Microchip Web Site11Development Systems Customer Change Notification Service11Customer Support12Document Revision History12Chapter 1. Introduction131.1 Introduction131.2 Highlights131.3 dsPICDEM™ 2 Development Board131.4 dsPICDEM™ 2 Development Board Resources141.4.1 dsPIC30F Device Sockets151.4.2 MPLAB ICD 2 Header161.4.3 UART Connection161.4.4 CAN Connection161.4.5 Power Supply161.4.6 Reset Switch171.4.7 Device Clocking171.4.8 Analog and Digital Inputs171.4.9 Digital Outputs171.4.10 External Connections171.5 Sample Application Projects181.6 Host System Environment18Chapter 2. Getting Started192.1 Introduction192.2 Highlights192.3 Getting Started192.4 Out-of-the-Box Demo202.4.1 dsPICDEM 2 Configuration202.4.2 Connect PC and Start HyperTerminal Session212.4.3 Observe Sample Application222.5 Device Programming Process232.5.1 Connect MPLAB ICD 2232.5.2 Setting up MPLAB IDE232.5.3 Build the Project252.5.4 Run the Application252.6 In-Circuit Debugging Process252.6.1 Select MPLAB ICD 2 as Debugger252.6.2 Debugging the Code262.7 Summary26Chapter 3. Using the dsPIC30F2010273.1 Introduction273.2 Highlights273.3 Board Setup for the DSPIC30F2010 Sample Application273.4 Device Programming293.5 Observing the Sample Application303.6 In-Circuit Debugging313.6.1 Setting Up MPLAB ICD 2 for Debugging313.6.2 Examining the Code323.7 Summary32Chapter 4. Using the dsPIC30F2011334.1 Introduction334.2 Highlights334.3 Board Setup for the DSPIC30F2011 Sample Application334.4 Device Programming354.5 Observing the Sample Application364.6 In-Circuit debugging374.6.1 Setting Up MPLAB ICD 2 for Debugging374.6.2 Examining the Code384.7 Summary38Chapter 5. Using the dsPIC30F2012395.1 Introduction395.2 Highlights395.3 Board Setup for the DSPIC30F2012 Sample Application395.4 Device Programming415.5 Observing the Sample Application425.6 In-Circuit Debugging435.6.1 Setting Up MPLAB ICD 2 for Debugging435.6.2 Examining the Code445.7 Summary44Chapter 6. Using the dsPIC30F3010456.1 Introduction456.2 Highlights456.3 Board Setup for the DSPIC30F3010 Sample Application456.4 Device Programming476.5 Observing the Sample Application486.6 In-Circuit Debugging496.6.1 Setting Up MPLAB ICD 2 for Debugging496.6.2 Examining the Code506.7 Summary50Chapter 7. Using the dsPIC30F3011517.1 Introduction517.2 Highlights517.3 Board Setup for the DSPIC30F3011 Sample Application517.4 Device Programming537.5 Observing the Sample Application547.6 In-Circuit Debugging557.6.1 Setting Up MPLAB ICD 2 for Debugging557.6.2 Examining the Code567.7 Summary56Chapter 8. Using the dsPIC30F3012578.1 Introduction578.2 Highlights578.3 Board Setup for the dsPIC30F3012 Sample Application578.4 Device Programming598.5 Observing the Sample Application608.6 In-Circuit Debugging618.6.1 Setting Up MPLAB ICD 2 for Debugging618.6.2 Examining the Code628.7 Summary62Chapter 9. Using the dsPIC30F3013639.1 Introduction639.2 Highlights639.3 Board Setup for the DSPIC30F3013 Sample Application639.4 Device Programming659.5 Observing the Sample Application669.6 In-Circuit Debugging679.6.1 Setting Up MPLAB ICD 2 for Debugging679.6.2 Examining the Code689.7 Summary68Chapter 10. Using the dsPIC30F30146910.1 Introduction6910.2 Highlights6910.3 Board Setup for the DSPIC30F3014 Sample Application6910.4 Device Programming7110.5 Observing the Sample Application7210.6 In-Circuit Debugging7310.6.1 Setting Up MPLAB ICD 2 for Debugging7310.6.2 Examining the Code7310.7 Summary74Chapter 11. Using the dsPIC30F40117511.1 Introduction7511.2 Highlights7511.3 Board Setup for the DSPIC30F4011 Sample Application7511.4 Device Programming7711.5 Observing the Sample Application7811.6 In-Circuit Debugging7911.6.1 Setting Up MPLAB ICD 2 for Debugging7911.6.2 Examining the Code8011.7 Summary80Chapter 12. Using the dsPIC30F40128112.1 Introduction8112.2 Highlights8112.3 Board Setup for the DSPIC30F4012 Sample Application8112.4 Device Programming8312.5 Observing the Sample Application8412.6 In-Circuit Debugging8512.6.1 Setting Up MPLAB ICD 2 for Debugging8512.6.2 Examining the Code8612.7 Summary86Chapter 13. Using the dsPIC30F40138713.1 Introduction8713.2 Highlights8713.3 Board Setup for the DSPIC30F4013 Sample Application8713.4 Device Programming8913.5 Observing the Sample Application9013.6 In-Circuit Debugging9113.6.1 Setting Up MPLAB ICD 2 to Examine Code9113.6.2 Examining the Code9113.7 Summary92Chapter 14. Hardware9314.1 Hardware Overview9314.1.1 Power Supply9414.1.2 dsPIC30F Device Sockets9514.1.3 Oscillators9514.1.4 Programming/Debugging9514.1.5 LCD9614.1.6 CAN Port9714.1.7 RS-232 Port9714.1.8 External Interrupt Switches9814.1.9 LED Indicators9814.1.10 External Connection Headers9914.1.11 Analog Temperature Sensor9914.1.12 Analog Potentiometer9914.1.13 Reset Switch99Appendix A. Hardware Drawings and Schematics101A.1 Introduction101Appendix B. Writing to LCD109B.1 Overview109B.2 LCD Hardware Setup109B.3 LCD Software Specification109B.4 LCD Firmware Programming:110Appendix C. Board Errata111C.1 H7 and H6 Labelling Error111Index113Worldwide Sales and Service115Size: 3.6 MBPages: 115Language: EnglishOpen manual