DLP-FLASH2 LEAD-FREE USB-BASED FLASH PROGRAMMER/DEBUGGER 1.0 INTRODUCTION The DLP-FLASH2 is a complete in-circuit debugging and programming solution for Microchip's PIC16Fxx and PIC18Fxx PIC® MCUs. The DLP-FLASH2 can debug all PIC16 and PIC18 targets that support debug mode. It also provides in-circuit serial programming (ICSP) support for FLASHbased PIC microcontrollers. The DLP-FLASH2 unit is compatible with the CCS PCW debugger or the standalone ICD control software. The PCW debugger is integrated into the IDE of the PCW and PCWH compilers and provides very detailed debugging information at the C level. The standalone ICD control software ships with CCS compilers and allows you to quickly program target chips using ICSP. The ICD control software also facilitates updating the DLP-FLASH2's firmware without having to connect to a device programmer. The DLP-FLASH2 allows in-circuit programming of target microcontrollers. All that is needed for device programming on user target designs is a 6-pin header plus a few support components and power isolation if the target electronics draw in excess of 300mA at 5 volts or operate at a voltage other than 5 volts. The microcontroller can be soldered in place during the manufacturing process and programmed at a later date to ensure that the final product is shipped with the most recent firmware version. NOTE: The DLP-FLASH2 only works with CCS Software. The MPLAB® IDE is not supported. 2.0 DLP-FLASH2 FEATURES The DLP-FLASH2 is compatible with over 200 PIC microcontrollers. For a complete list of supported devices, visit the CCS website: http://www.ccsinfo.com/devices.php?page=icddevices • No additional cables or external power source are required – all power is taken from the host USB port. • USB based for compatibility with most PCs. • In-circuit programming; no more loading the target microcontroller into a device programmer. Rev. 1.1 (September 2007) 1 © DLP Design, Inc. The DLP-FLASH2 programmer is compatible with the family of CCS C compilers. The DLP-FLASH2 is directly supported by the IDE programming environment as well as by the ICD programming software available from CCS. 3.0 POWER CONSIDERATIONS The DLP-FLASH2 programmer board has the ability to supply 5-volt power—via the programming header—to the target microcontroller for programming and debug. The circuitry that is connected to Pin 5 of the DLP-FLASH2 programmer must not draw more than 300mA. If the target electronics draw more than 300mA on the 5-volt line or the target operates at a voltage other than 5 volts, then they must be externally powered and electrically isolated from the DLP-FLASH2 by removing the TPWR jumper. NOTE: If programming a microcontroller that is installed in target electronics, it will most likely be necessary to apply power to the target’s circuitry before programming. The DLP-FLASH2 programmer can supply a minimal amount of 5-volt power for either a circuit that requires very little power or for just a microcontroller. As a rule of thumb, if the microcontroller to be programmed is connected to target electronics, always apply power to the microcontroller and remove the TPWR jumper before connecting to the DLP-FLASH2. 4.0 QUICK-START GUIDE This guide requires the use of a Windows 2000/XP PC that is equipped with a USB port. If the DLPFLASH board is connected to your PC, unplug it at this time. 1. Download the CDM drivers from this page: www.dlpdesign.com/flash2/. Unzip the drivers into a folder on the hard drive. (Be sure to “Extract” the files from the archive so as to maintain the folder structure.) 2. Connect the DLP-FLASH programmer board to the PC. A USB extension cable of 10 feet or less in length can be used to allow more freedom of movement with the DLP-FLASH2. 3. This action initiates the loading of the USB drivers. When prompted, select the folder where the device drivers were stored in Step 1. Windows will then complete the installation of the device drivers for the DLP-FLASH2 board. The next time the DLP-FLASH2 module is attached, the host PC will immediately load the correct drivers without any prompting. Reboot the PC if prompted to do so. 4. At this point, the DLP-FLASH2 is ready for use. Run the CCS IDE software or the ICD control software. For additional information on how to use the CCS debugger, visit the CCS website: http://www.ccsinfo.com/content.php?page=debugger Rev. 1.1 (September 2007) 2 © DLP Design, Inc. 5.0 PROGRAMMER/DEBUGGER INTERFACE The DLP-FLASH2 programmer/debugger utilizes a 6-pin, 2mm female header for connection to the target device. The following shows the pinout for the programming interface connectors: Pin 1 Pin 2 Target Header DLP-FLASH2 Pin # Description Alternate Name 1 2 3 4 5 6 PGM PGC PGD Ground Target Power MCLR B3 B6 B7 TVDD Vpp The DLP-FLASH2 is powered by the host’s USB port and requires approximately 50 mA of current for normal operation. If the target provides its own power or operates at a power supply voltage other than 5 volts, then the TPWR jumper must be removed and the target must be self-powered. The DLP-FLASH2 does not use the Low Voltage Programming Mode. The source code for all C programs should set the NOLVP Fuse. The target chip oscillator must be running for the debugger to operate. Programming a *.hex file to a microcontroller’s program memory can be performed without the oscillator running. The B3 Pin is optional and is not used for programming. However, the Monitor feature of the debugger does use B3. It is possible to program and debug (without the Monitor) and allocate B3 to the target hardware. In this case, do not connect B3 to the target’s 6-pin connector. If the Monitor feature is not used; userstream can be disabled in the Configure tab, and the B3 Pin made available for connection to user electronics. To program and/or debug in circuit, two I/O pins (B6, B7) are reserved. If debugging is not required, then these pins may also be used in the target circuit. However, care must be taken to ensure that B6 and B7 are at high impedance during programming. Rev. 1.1 (September 2007) 3 © DLP Design, Inc. 6.0 DISCLAIMER Neither the whole nor any part of the information contained herein or the product described in this datasheet may be adapted or reproduced in any material or electronic form without the prior written consent of the copyright holder. This product and its documentation are supplied on an as-is basis, and no warranty as to their suitability for any particular purpose is either made or implied. DLP Design will not accept any claim for damages whatsoever arising as a result of use or failure of this product. Your statutory rights are not affected. This product or any variant of it is not intended for use in any medical appliance, device or system in which the failure of the product might reasonably be expected to result in personal injury. This document provides preliminary information that may be subject to change without notice. 7.0 CONTACT INFORMATION DLP Design, Inc. 1605 Roma Lane Allen, TX 75013 Phone: 469-964-8027 Fax: 415-901-4859 Email: [email protected] Internet: http://www.dlpdesign.com Rev. 1.1 (September 2007) 4 © DLP Design, Inc. D C B A 5 R15 47K TVDD 4 DLP-uCF88 TVDD 11 3 2 1 20 19 17 7 8 U5 PIC16LF88/SSOP20 4 RB4/SCK RB2/SDO/RX RA4/AN4 RB5/TX RA3/AN3/Vref+ RA2/AN2/VrefRA1/AN1 RA7/OSC1/CLKIN RA0/AN0 RA6/OSC2 RB0/INT RB1/SDI RB6/AN5/PGC RB7/AN6/PGD RB3/PGM RA5/MCLR/VPP C15 0.1uF TARGET BOARD - 16F88 13 14 10 4 18 9 12 Vpp/MCLR B2 B5 A7 PGM/B3 PGC/B6 PGD/B7 5 16 15 VDD VDD GND GND 5 6 A4 A3 A2 A1 A0 A6 B0 B1 B4 3 3 PGC/B6 Vpp/MCLR A0 A6 B5 A3 B0 B2 Vpp/MCLR B1 D2 2 1 3 5 7 9 11 13 15 J2 HEADER 8X2 1 3 5 TVDD TVDD A1 A7 B4 A2 A4 PGM/B3 B1 PGM/B3 PGD/B7 TVDD J3 2x3 Programming Header 2 4 6 2 4 6 8 10 12 14 16 R16 160 GRN LED 2 1 1 D C B A