Microchip Technology DM300018 User Manual
dsPICDEM 2 Development Board User’s Guide
DS51558A-page 14
© 2005 Microchip Technology Inc.
Out-of-the-box, you can power up the dsPICDEM™ 2 Development Board and run the
sample application on the dsPIC30F4011 device. The objective of this process is to
acquaint you with the board and demonstrate how the dsPIC30F device interacts with
the hardware components used for the demo (see Section 2.4 “Out-of-the-Box
Demo”).
sample application on the dsPIC30F4011 device. The objective of this process is to
acquaint you with the board and demonstrate how the dsPIC30F device interacts with
the hardware components used for the demo (see Section 2.4 “Out-of-the-Box
Demo”).
Eventually, as you develop your own application, you will need to program and debug
the dsPIC30F device. The second phase of the getting-started process is programming
the device for stand-alone operation. For this process, you attach the MPLAB ICD 2
In-Circuit Debugger to the dsPICDEM 2 board, designate it as a programmer in MPLAB
IDE, build your program in MPLAB IDE and then program the device with MPLAB ICD
2. The procedures for this process are outline in Section 2.5 “Device Programming
Process”, using the dsPIC30F4011 device as an example.
the dsPIC30F device. The second phase of the getting-started process is programming
the device for stand-alone operation. For this process, you attach the MPLAB ICD 2
In-Circuit Debugger to the dsPICDEM 2 board, designate it as a programmer in MPLAB
IDE, build your program in MPLAB IDE and then program the device with MPLAB ICD
2. The procedures for this process are outline in Section 2.5 “Device Programming
Process”, using the dsPIC30F4011 device as an example.
To examine program operation on a step-by-step basis, you need to set up MPLAB ICD
2 as a debugger. For this process you attach the MPLAB ICD 2 In-Circuit Debugger to
the dsPICDEM 2 board, designate it as a debugger in MPLAB IDE, build your program
in MPLAB IDE and then program the device for debug mode with MPLAB ICD 2. The
procedures for this process are outline in Section 2.6 “In-Circuit Debugging
Process”, using the dsPIC30F4011 device as an example.
2 as a debugger. For this process you attach the MPLAB ICD 2 In-Circuit Debugger to
the dsPICDEM 2 board, designate it as a debugger in MPLAB IDE, build your program
in MPLAB IDE and then program the device for debug mode with MPLAB ICD 2. The
procedures for this process are outline in Section 2.6 “In-Circuit Debugging
Process”, using the dsPIC30F4011 device as an example.
2.4
OUT-OF-THE-BOX DEMO
As the first phase of your getting-started process, you only need to connect your PC to
the dsPICDEM™ 2 Development Board, apply power to the board and observe the
sample application on the board and on HyperTerminal
the dsPICDEM™ 2 Development Board, apply power to the board and observe the
sample application on the board and on HyperTerminal
®
.
2.4.1
dsPICDEM 2 Configuration
Out-of-the-box, the dsPICDEM™ 2 Development Board is configured to operate with
the dsPIC304011 device. When you use a different type of supported device you need
to reconfigure the board for that device. In general, you follow this process to reconfig-
ure the dsPICDEM™ 2 Development Board. For the out-of-the-box configuration, you
simply can verify these settings:
the dsPIC304011 device. When you use a different type of supported device you need
to reconfigure the board for that device. In general, you follow this process to reconfig-
ure the dsPICDEM™ 2 Development Board. For the out-of-the-box configuration, you
simply can verify these settings:
1.
Select a supported dsPIC30F device and plug it into the appropriate socket (not
necessary out of the box).
necessary out of the box).
2.
Note the hardware configuration for the dsPIC30F4011device:
This functionality:
Is set up by this hardware component:
Program/Debug device
Switch S2 switched OFF
Alternate Debugging
Switch S3 or S4 – all switches OFF
Temperature (A/D)
H10 set to M ALL
Potentiometer (A/D)
H13 set to M ALL
CAN
H2 open
UART1
H3 open
Alternate UART1
H4 set to M ALL
UART2
H5 open
LCD (SPI)
H1 set to M 40
SPI™ Controller ProgrammingH11 open
Switch S5 (INT0)
Switch S5 (INT0)
H6 set to M ALL
Switch S6 (INT1)
H7 set to M ALL
External connections
H8 or H9 open
LEDs D3 and D4 (I/O)
H12 set to M
Power Supply
Jumpers JP1 and JP2
Note:
Chapters 3-13 provide specific set-up instructions for each type of
dsPIC30F device supported by the dsPICDEM™ 2 Development Board.
dsPIC30F device supported by the dsPICDEM™ 2 Development Board.