DM240021 Microchip Technology, DM240021 Datasheet

KIT STARTER MPLAB FOR PIC24H

DM240021

Manufacturer Part Number
DM240021
Description
KIT STARTER MPLAB FOR PIC24H
Manufacturer
Microchip Technology
Series
MPLAB®r
Type
MCUr
Datasheet

Specifications of DM240021

Contents
Board, Cable, CD
Processor To Be Evaluated
PIC24H128GP504
Data Bus Width
16 bit
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC24
Silicon Core Number
PIC24H
Silicon Family Name
PIC24HJxxxGPxxx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC24H
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM240021
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM240021
Manufacturer:
MICROCHIP
Quantity:
12 000
®
MPLAB
Starter Kit for
PIC24H Microcontrollers
User’s Guide
© 2008 Microchip Technology Inc.
DS51780A

Related parts for DM240021

DM240021 Summary of contents

Page 1

... PIC24H Microcontrollers © 2008 Microchip Technology Inc. ® MPLAB Starter Kit for User’s Guide DS51780A ...

Page 2

... PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total Endurance, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... Application Functional Overview .................................................................. 25 4.2 Debug Functional Overview ......................................................................... 28 4.3 Board Components ...................................................................................... 29 Appendix A. Schematics A.1 Application Schematics ................................................................................ 34 A.2 Debug Schematics ....................................................................................... 37 Index ............................................................................................................................. 39 Worldwide Sales and Service .................................................................................... 40 © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’S GUIDE Table of Contents DS51780A-page iii ...

Page 4

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide NOTES: DS51780A-page iv © 2008 Microchip Technology Inc. ...

Page 5

... Chapter 4. Hardware – This chapter provides a functional overview of the starter kit and identifies the major hardware components. • Appendix A. Schematics – This appendix provides detailed schematic diagrams of the starter kit. © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’ ...

Page 6

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2008 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 7

... Assembler, Linker and Utilities for PIC24 MCUs and dsPIC User’s Guide (DS51317) This document helps you use Microchip Technology’s 16-bit language tools based on GNU technology. The language tools discussed are the MPLAB Assembler for dsPIC DSCs and PIC24 MCUs, MPLAB Object Linker for dsPIC DSCs and PIC24 MCUs, MPLAB Archiver/Librarian for dsPIC DSCs and PIC24 MCUs and other 16-bit device utilities ...

Page 8

... MPLAB SIM simulator, as well as general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 device programmer and the PICSTART development programmers. DS51780A-page 4 ® ® Plus and PICkit 1 and 2 © 2008 Microchip Technology Inc. ...

Page 9

... Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (November 2008) This is the initial release of this document. © 2008 Microchip Technology Inc. Preface DS51780A-page 5 ...

Page 10

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide NOTES: DS51780A-page 6 © 2008 Microchip Technology Inc. ...

Page 11

... Chapter 1. Introduction Thank you for purchasing Microchip Technology’s MPLAB Microcontrollers (MCUs). This kit is intended to introduce and demonstrate the features of the starter kit and the strong processing capabilities of PIC24H MCU devices. The starter kit demonstrates a low-cost hardware and software solution for processing sensor signals and interfacing audio and visual displays ...

Page 12

... As soon as the starter kit is powered through the USB cable, the preloaded demonstration starts. FIGURE 1-1: DS51780A-page 8 MPLAB STARTER KIT FOR PIC24H MCUs SETUP Starter Kit Speaker USB OLED PIC24H Display MCU Accelerometer MPLAB (1) Operating ® IDE © 2008 Microchip Technology Inc. ...

Page 13

... Section 3.8 “Troubleshooting”. When powered up, an audible welcome message is played while simultaneously displaying the Start-up screen on the OLED display (see Figure 2-1). FIGURE 2-1: © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’S GUIDE ® ...

Page 14

... TP12 and TP11. FIGURE 2-4: DS51780A-page 10 STARTER KIT HOME SCREEN b PIC24H Starter Kit Ext. Sensor Acc. Graph Orientation Games S1 S2 ACCELEROMETER GRAPH SELECTING THE EXTERNAL SENSOR OPTION b PIC24H Starter Kit Acc. Graph Ext. Sensor Orientation Games © 2008 Microchip Technology Inc. ...

Page 15

... Portrait, Landscape and Plane orientations (see Figure 2-8). The acceleration in each of the axes is displayed on the left side of the screen as a fraction of gravitational acceleration constant on earth 9.8 m/s FIGURE 2-7: © 2008 Microchip Technology Inc. Starter Kit Demo EXTERNAL SENSOR PROMPT b External Sensor Demo Connect External Sensor ...

Page 16

... The alien ships and the asteroids are destroyed when hit by the missiles from the Bomber Jet. See Figure 2-10 for an example of the display during game play. FIGURE 2-10: DS51780A-page 12 ORIENTATION PATTERNS +1g Landscape GAMES SCREEN b Games Home Bomber Jet Snake S1 S2 BOMBER JET GAME © 2008 Microchip Technology Inc. ...

Page 17

... Score screen after the snake grows a tail length of 25 rings or the snake hits any of the four walls (see Figure 2-13). FIGURE 2-13: After the Score screen appears, switch can be pressed at any time to return to the Games screen. © 2008 Microchip Technology Inc. Starter Kit Demo BOMBER JET GAME SCORE b Bomber Jet ...

Page 18

... A-law and are stored in the program memory of the PIC24H. The PIC24H decodes the compressed data and generates PWM signals which are demodulated before being output through the speaker. DS51780A-page 14 STARTER KIT BOARD Triaxial Analog ADC Accelerometer OC Speaker OLED PMP Display (128 x 64) Wide Range of Sensors PIC24H MCU ADC © 2008 Microchip Technology Inc. ...

Page 19

... Instructions are provided in the source file as to where user desired signal processing routines need to be added to process the sensor signal captured by the ADC. The characteristics of the external analog sensor that can be used are provided in Section 4.1.4 “Analog Conditioning Circuitry”. © 2008 Microchip Technology Inc. Starter Kit Demo DS51780A-page 15 ...

Page 20

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide NOTES: DS51780A-page 16 © 2008 Microchip Technology Inc. ...

Page 21

... Section 3.8 “Troubleshooting”. 2. When powered up, the application starts and runs as described in Section 2.1. To install the software: Run the CD-ROM enclosed with the starter kit and install the software as directed. © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’ ...

Page 22

... Debug executive code is automatically programmed in the upper program memory of the starter kit device when the starter kit is selected as a debug- ger. Debug code must be programmed into the target device to use the in-circuit debugging capabilities of the starter kit. DS51780A-page 18 4 © 2008 Microchip Technology Inc. ...

Page 23

... Watch windows, to aid in application code debugging. This section includes: • Editing Application Code • Using Breakpoints and Mouseovers • Using Watch Windows © 2008 Microchip Technology Inc. Develop an Application TOOLBAR BUTTONS Debug Toolbar Debugger Menu Program ...

Page 24

... See MPLAB IDE Help for more information on this dialog. DS51780A-page 20 EXAMPLE PROJECT Double click must be set up for breakpoints. See the Edit>Properties, ASM/C/BAS File Type tab, and the check box for “Double-click Toggles Breakpoint”. © 2008 Microchip Technology Inc. ...

Page 25

... Watch window. Or click the “Address” column and enter an absolute address. A Watch window populated with SFRs and Symbols will look like Figure 3-4. For more information on using Watch windows, see MPLAB IDE Help. FIGURE 3-4: © 2008 Microchip Technology Inc. Develop an Application EXAMPLE WATCH DS51780A-page 21 ...

Page 26

... MPLAB ICD 2 Help, found in MPLAB IDE under Help>Topics. The device reserved resource information found under “Resources Used By MPLAB ICD 2” is the same for the starter kit. DS51780A-page 22 ® DSCs and PIC24 MCUs, Full Version – More © 2008 Microchip Technology Inc. ...

Page 27

... Currently, there is only one (Info) tab on this dialog, displaying the following information: • Firmware Version: The version of firmware on the starter kit board. • Debug Exec Version: The version of the debug executive that is loaded into the device program memory to enable debug operation. © 2008 Microchip Technology Inc. Develop an Application DS51780A-page 23 ...

Page 28

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide NOTES: DS51780A-page 24 © 2008 Microchip Technology Inc. ...

Page 29

... APPLICATION FUNCTIONAL OVERVIEW The block diagram shown in Figure 4-1 illustrates the mainstream operation of the starter kit. FIGURE 4-1: Speaker Wide Range of Sensors © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’S GUIDE Chapter 4. Hardware STARTER KIT APPLICATION BLOCK DIAGRAM ...

Page 30

... Ohm impedance and rated power of 1W. See the schematics in Figure A-3. FIGURE 4-3: PWM DEMODULATION Pwm Signal From OCPWM DS51780A-page 26 DIRECTION OF ACCELERATION AND ASSOCIATED SPATIAL DIMENSIONS FOR THE TRIAXIAL ANALOG ACCELEROMETER +Z Gravity Vector Top Side +Y Low-pass Filter Demodulated Audio Signal © 2008 Microchip Technology Inc. ...

Page 31

... The anti-aliasing filter is a 2nd-order low-pass filter, with a cut-off frequency of ~500 Hz (483.78 Hz). The highest frequency of the base band sensor signal is assumed to be less than 500 Hz. The output of the low-pass filter is connected to the ADC input AN7 on the PIC24H MCU device. © 2008 Microchip Technology Inc. DIFFERENTIAL AMPLIFIER GAIN R f ...

Page 32

... Target clocking is also provided by the PIC18F67J50 MCU. A Microchip 25LC010A serial EEPROM is used to store the starter kit’s serial number and debug control information. DS51780A-page 28 3.3V LDO USB Mini-B Regulator Jack PIC18F67J50 Device PIC24H MCU 25LC010A Device Status LEDs saturation PNP transistor CE © 2008 Microchip Technology Inc. ...

Page 33

... Debug Status LED (D18) D5 System Power STATUS LED (D19) D6 PIC18F67J50 MCU (U2) D7 25LC010A SERIAL EEPROM (U3) A1 PIC24HJ128GP504 (MCU) (U5) A2 Speaker (SP2) Legend Debug components A# = Audio components © 2008 Microchip Technology Inc A11 A10 Ref A3 Audio Power Amplifier (U7) A4 Anti-Aliasing Low-Pass Filter (Speech) (U6 ...

Page 34

... FRC or the external 12 MHz signal as clock source. 4.3.2.2 SPEAKER (SP2) The speaker is connected to the Output Compare (OC) module. The OC module produces the PWM-modulated speech signal that is played through the speaker after filtering. DS51780A-page 30 SATURATION PNP TRANSISTOR SWITCH (Q1) CE © 2008 Microchip Technology Inc. ...

Page 35

... TP11 takes in the positive node and TP12 the negative node. 4.3.2.10 TRIAXIAL ANALOG ACCELEROMETER (U8) The starter kit features a triaxial analog accelerometer, BMA140, from Bosch Sensortec. © 2008 Microchip Technology Inc. AUDIO POWER AMPLIFIER GAIN ⎛ ⎞ R56 × ...

Page 36

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide NOTES: DS51780A-page 32 © 2008 Microchip Technology Inc. ...

Page 37

... Figure A-7: USB Interface/Target Power Switching and Debug Input and Control Schematics (Sheet • Figure A-8: USB Interface/Target Power Switching and Debug Input and Control Schematics (Sheet © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’S GUIDE ...

Page 38

... DD U8 BMA140 VDD1 AMUX 2 10 VDD2 X.OUT 3 9 GND1 Y.OUT 4 8 GND2 Z.OUT TEST AV DD R28 10R C25 0 10R R29 33 AUDIO_OUT 32 SWITCH_S2 31 30 TARGET_REFERENCE_CLOCK 29 SWITCHED_+3.3V 28 C24 0 SWITCH_S1 26 SENSOR 25 ACCEL_Z 24 ACCEL_Y 23 ACCEL_X TARGET_CLOCK TARGET_DATA ACCEL_X ACCEL_Y ACCEL_Z © 2008 Microchip Technology Inc. ...

Page 39

... C37 3300 pF LM4853MM_MSOP10 C33 R59 20K 1 R60 100K FIGURE A-4: DIFFERENTIAL AMPLIFIER AND LOW-PASS FILTER SCHEMATIC R51 1K TP11 1K R53 TP12 R57 100K © 2008 Microchip Technology Inc. R50 INV INB 8.45K C38 6 U6:B MCP61-I/SN 5600 pF R56 33K SWITCHED_+3. Left_IN Left_OUT ...

Page 40

... VDD1 9 CB6 PMCS1 12 RES RESET 13 A0 PMPA0 14 WR PMPWR 15 RD PMPRD 16 VCOMH VCOMH PMPD0 19 D1 PMPD1 20 D2 PMPD2 21 D3 PMPD3 22 D4 PMPD4 23 D5 PMPD5 24 D7 PMPD6 25 D6 PMPD7 26 IREF IREF 27 NC LED_OLED_HS1101A TP7 TP8 TP9 S1 TP10 © 2008 Microchip Technology Inc. ...

Page 41

... Microchip Technology Inc. RD7 49 RD6/SCK2 50 RD5/SDI2 51 RD4/SDO2 52 RD3 53 RD2 54 RD1 RD0 58 RE7 59 RE6 60 RE5 61 RE4 62 RE3 REG 63 RE2 64 Schematics RC7 32 RC6 31 RC0 30 RC1 29 RA4 28 RA5 RA0 24 RA1 23 RA2 22 RA3 ENV 18 USB V 17 DS51780A-page 37 ...

Page 42

... MPLAB Starter Kit for PIC24H Microcontrollers User’s Guide DS51780A-page © 2008 Microchip Technology Inc. ...

Page 43

... External Sensor Interface ........................................ 15 H Halt........................................................................... 19 Hardware Installation ............................................... 17 Host Computer Requirements.................................... 8 I Install........................................................................ 17 Internet Address......................................................... 4 M Microchip Internet Web Site ....................................... 4 MPLAB IDE .............................................................. 17 © 2008 Microchip Technology Inc. ® MPLAB STARTER KIT FOR PIC24H MICROCONTROLLERS USER’S GUIDE Index O 26 OLED Display Interface...................................... Operational Requirements ...

Page 44

... Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-572-9526 Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2008 Microchip Technology Inc. 01/02/08 ...

Related keywords