User manual
dsPICDEM™ 2
DEVELOPMENT BOARD
USER’S GUIDE
© 2005 Microchip Technology Inc. DS51558A-page 81
Chapter 13. Using the dsPIC30F4013
13.1 INTRODUCTION
This chapter assumes you have chosen the dsPIC30F4013 for your application. The
dsPICDEM 2 Development Board supports a dsPIC30F4013 device in a 40-pin PDIP
package, as shown in Figure 13-1. This device provides thirteen 12-bit A/D (100 ksps)
channels, two UARTs, an SPI module, an I
2
C module, a CAN module and 30 I/O pins.
A sample application program provides a software baseline for building your own
embedded solution.
FIGURE 13-1: 40-PIN PDIP dsPIC30F4013
13.2 HIGHLIGHTS
This chapter discusses:
• Board Setup for the dsPIC30F4013 Sample Application
• Device Programming
• Observing the Sample Application
• In-Circuit Debugging
• Summary
13.3 BOARD SETUP FOR THE dsPIC30F4013 SAMPLE APPLICATION
The dsPICDEM 2 Development Board supports dsPIC30F devices that have multiple
peripheral devices multiplexed on some pins. Therefore, the jumper set up of various
headers depends on which of the dsPIC30F peripherals are used by the application.
This section demonstrates how the board is set up for the dsPIC30F4013 device to
support the dsPIC30F4013 example software in the dsPICDEM 2 Development Kit CD.
Follow these steps to configure the hardware on the dsPICDEM 2 Development Board
for the sample application.
PGD/EMUD/AN7/RB7
PGC/EMUC/AN6/OCFA/RB6
C1RX/RF0
C1TX/RF1
IC1/INT1/RD8
OC3/RD2
AN8/RB8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
MCLR
V
DD
V
SS
AN0/V
REF
+/CN2/RB0
AN1/V
REF
-/CN3/RB1
AN2/SS1
/LVDIN/CN4/RB2
OC4/RD3
EMUC1/SOSCO/T1CK/U1ARX/CN0/RC14
EMUD1/SOSCI/T2CK/U1ATX/CN1/RC13
OSC2/CLKO/RC15
OSC1/CLKI
AN5/IC8/CN7/RB5
AN4/IC7/CN6/RB4
AN3/CN5/RB3
AV
DD
AV
SS
IC2/INT2/RD9
V
SS
V
DD
EMUC3/SCK1/RF6
U1RX/SDI1/SDA/RF2
EMUD3/U1TX/SDO1/SCL/RF3
V
SS
V
DD
U2RX/CN17/RF4
U2TX/CN18/RF5
AN12/COFS/RB12
AN10/CSDI/RB10
AN11/CSDO/RB11
AN9/CSCK/RB9
EMUC2/OC1/RD0
EMUD2/OC2/RD1
INT0/RA11
dsPIC30F4013
U1A1