Microchip Technology ADM00317 Data Sheet

Page of 40
Quick Start Instructions
© 2011 Microchip Technology Inc.
DS51932B-page 13
1.5
CONNECTING TO THE EXPLORER 16 STARTER KIT
1.
Connect the MCP47X6 PICtail™ Plus Daughter Board to the J5 socket on the 
Explorer 16 Development Board as shown in Figure 1-2.
 
FIGURE 1-2:
Connecting the MCP47X6 PICtail™ Plus Daughter Board to the 
Explorer 16 Development Board.
1.5.1
 Programming the PIC24FJ128 MCU
The Explorer 16 Development Board contains the PIC24FJ128 MCU. The user can 
download the firmware to the MCU using the MPLAB ICD2 (or ICD3) programmer.
1.5.1.1
THE PIC24FJ128 MCU FIRMWARE FOR THE MCP47X6 PICtail™ PLUS 
DAUGHTER BOARD
The original firmware for the Explorer 16 Development Board is modified for the 
MCP47X6 PICtail™ Plus Daughter Board demonstration. The firmware uses most of 
the original code for the Explorer 16 Development Board except the I
2
C peripheral 
control routines for the PIC24FJ128 MCU.
The following four routines are added or modified from the original Explorer 16 
Development Board firmware: 
• PIC24ExplDemo_MCP4726_Main.c
• MCP47x6_I2C_Func.c
• Banner_MCP4726_MCP4716_MCP4706.c
• I2C_MCP4726.h
The source codes are compiled by using Microchip’s C30 Compiler and the hex code 
is programmed to the MCU using the MPLAB ICD 2. Figure 1-3 shows the connection 
between the MPLAB ICD 2 and the Explorer 16 Development Board. Figure 1-4 shows 
the MPLAB IDE programming environment.
MCP47x6
PICtail Plus
Daughter
Board
Explorer 16 Development Board (P/N DV164033)
S3: Select MCP4726
S6: Select MCP4716
S5: Select MCP4706
S4: Increment DAC Code