MCP1631HV Digitally Controlled Programmable Current Source Reference Design © 2009 Microchip Technology Inc.
Note the following details of the code protection feature on Microchip devices: • Microchip products meet the specification contained in their particular Microchip Data Sheet. • Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. • There are dishonest and possibly illegal methods used to breach the code protection feature.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Table of Contents Preface ........................................................................................................................... 1 Introduction............................................................................................................ 1 Document Layout .................................................................................................. 1 Conventions Used in this Guide .............
MCP1631HV Digitally Controlled Programmable Current Source Reference Design NOTES: DS51798A-page iv © 2009 Microchip Technology Inc.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Preface NOTICE TO CUSTOMERS All documentation becomes dated, and this manual is no exception. Microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. Please refer to our web site (www.microchip.com) to obtain the latest documentation available. Documents are identified with a “DS” number.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler...
Preface RECOMMENDED READING This user's guide describes how to use the MCP1631HV Digitally Controlled Programmable Current Source Reference Design. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources. MCP1631 Data Sheet, "High-Speed, Microcontroller-Adaptable, Pulse Width Modulator", DS22063A This data sheet provides detailed information regarding the MCP1631/MCP1631V, MCP1631HV and MCP1631VHV product families.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design DOCUMENT REVISION HISTORY Revision A (May 2009) • Initial Release of this Document. DS51798A-page 4 © 2009 Microchip Technology Inc.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Chapter 1. Product Overview 1.1 INTRODUCTION The MCP1631HV Digitally Controlled Programmable Current Source Reference Design is used to drive and dim one or more power LEDs in a series or parallel topology (depending on the LED’s capability). The reference design may also be used to charge one to four cell NiMH/NiCd or one to two cell Li-Ion battery packs.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design 1.2 WHAT IS THE MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN? This board utilizes Microchip’s MCP1631HV-3.3 (high-speed PIC® MCU PWM TSSOP-20, 3.3V supply version). The MCP1631HV Digitally Controlled Programmable Current Source Reference Design is a complete stand-alone constant current LED power supply with a dimming ratio of 10:1. The board is capable of delivering a maximum of 1 Amp @ 8.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Chapter 2. Installation and Operation 2.1 INTRODUCTION The MCP1631HV Digitally Controlled Programmable Current Source Reference Design demonstrates Microchip’s MCP1631HV high-speed Pulse Width Modulator (PWM) used in LED lighting and multi-chemistry battery charger applications. When used in conjunction with a microcontroller, the MCP1631HV will control the power system duty cycle to provide output voltage or current regulation.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design 2.3 GETTING STARTED The MCP1631HV Digitally Programmable Current Source Reference Design is fully assembled and tested for driving and dimming power LEDs. At the output, one or more LEDs can be connected in parallel or series topology. With the default firmware, the board can drive a 700 mA load with 9V overvoltage protection. This board requires an external voltage source within a range of +3.5V to +16V input.
Installation and Operation The MCP1631HV Digitally Programmable Current Source Reference Design firmware may be re-programmed with the charger profile for Li-Ion or NiMH/NiCd battery packs. Firmware profile pre-proccessor definitions are : • #define LION_SUPPORT DISABLED • #define NIMH_SUPPORT DISABLED • #define LED_DRIVER_SUPPORT ENABLED Setting one of the profiles to ENABLED and the other two to DISABLED will select the ENABLED profile at compile time.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design I 5.0 1.0 VBAT 0.8 T/10 3.0 0.6 2.0 0.4 1.0 Amps Volts,°C/10 4.0 0.2 IOUT 0.0 0 20 40 60 80 0.0 100 Time (min) FIGURE 2-3: DS51798A-page 10 NiMH Three-Cell (3.6V/600 mAh) Charged at Maximum 0.75C. © 2009 Microchip Technology Inc.
Installation and Operation 2.3.1 Power Input and Output Connection 2.3.1.1 POWERING THE MCP1631HV DIGITALLY PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN 1. Prepare the power supply to be connected to the input terminal block, J1. The input voltage source should be limited to the 0V to +16V range. For nominal operations, the recommended input voltage should be between +3.5 and +16 volts with a 12W input supply. 2. Connect the positive side of the input source (+) to pin +VIN of J1.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design 2.3.1.3 USING THE REFERENCE BOARD The push button is used to switch the output ON or OFF (Standby). The first pressing of the power button will turn on the board and drive the output at 10% of programmed current (70 mA for the default firmware). The GREEN LED will flash with a 1 second period, indicating that it is in normal operating mode. The board is capable of a 10:1 dimming ratio.
Installation and Operation 2.3.1.5 MCP1631 PROGRAMMABLE CURRENT SOURCE AS BATTERY CHARGER The MCP1631HV Digitally Controlled Programmable Current Source Reference Design reference board is provided with the LED driver firmware programmed into the U2 microcontroller. The reference board package also has compiled firmware *.hex files included for Li-Ion and NiMH/NiCd battery packs. There are two versions of charger firmware. One is for Li-Ion cells (00234R1-LiIon_Charger.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design 2.3.1.5.3 How the MCP1631HV Digitally Controlled Programmable Current Source Reference Design Operates in Charger Mode Follow the instructions in Section 2.3.1.5.1 “How to Connect and Charge a Battery with the MCP1631HV Digitally Controlled Programmable Current Source Reference Design” to connect a battery pack at the board. In the Standby (OFF) state, the GREEN LED will be lit.
Installation and Operation 2.3.1.6 VIEW THE STATE OF MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN The MCP1631HV Digitally Controlled Programmable Current Source Reference Design is able to show, using an oscilloscope, the system state. To use this feature, connect the scope probe to test point TP1. Testpoint TP1 is output pin U2-8 of the PIC16F616 microcontroller. There are nine status waveforms listed below.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design NOTES: DS51798A-page 16 © 2009 Microchip Technology Inc.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Appendix A. Schematic and Layouts A.1 INTRODUCTION This appendix contains the following schematics and layouts for the MCP1631HV Digitally Controlled Programmable Current Source Reference Design: • • • • Board Schematic Board – Top Solder Pads and Silk-Screen Layers Board – Top Copper Layer Board – Bottom Copper Layer © 2009 Microchip Technology Inc.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design BOARD – SCHEMATIC M A.2 1 2 3 4 5 6 7 8 2 1 3 DS51798A-page 18 © 2009 Microchip Technology Inc.
Schematic and Layouts A.3 BOARD – TOP SOLDER PADS AND SILK-SCREEN LAYERS © 2009 Microchip Technology Inc.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design A.4 BOARD – TOP COPPER LAYER DS51798A-page 20 © 2009 Microchip Technology Inc.
Schematic and Layouts A.5 BOARD – BOTTOM COPPER LAYER © 2009 Microchip Technology Inc.
MCP1631HV Digitally Controlled Programmable Current Source Reference Design NOTES: DS51798A-page 22 © 2009 Microchip Technology Inc.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Appendix B. Bill Of Materials (BOM) TABLE B-1: Qty BILL OF MATERIALS Reference Description Manufacturer Part Number 3 C1, C2, C4 CAP CERAMIC 10UF 25V X5R 1206 Panasonic® - ECG ECJ-3YB1E106M 1 C10, C12 CAP 1500PF 50V CERM CHIP 0805 Panasonic - ECG ECJ-2VB1H152K 1 C3 CAP CER 2.2UF 25V X7R 0805 Murata Electronics® North America GRM21BR71E225KA7 3L 1 C5 CAP .
MCP1631HV Digitally Controlled Programmable Current Source Reference Design TABLE B-1: Qty BILL OF MATERIALS (CONTINUED) Reference Description Manufacturer Part Number 1 R21 RES 3.92K OHM 1/8W 1% 0805 SMD 1 R24 RES 0.0 OHM 1/8W 5% 0805 SMD Panasonic - ECG ERJ-6GEY0R00V 1 R4 RES 39.2K OHM 1/8W 1% 0805 SMD Panasonic - ECG ERJ-6ENF3922V 2 R6, R7 RES 1.00K OHM 1/8W 1% 0805 SMD Panasonic - ECG ERJ-6ENF1001V 1 U1 MCP1631HV 3.3V 20 Pin TSSOP High Speed PWM Microchip Technology Inc.
MCP1631HV DIGITALLY CONTROLLED PROGRAMMABLE CURRENT SOURCE REFERENCE DESIGN Appendix C. Demo Board Firmware C.1 SUMMARY DEVICE FIRMWARE FLOWCHART - LED DRIVER For the latest version of the MCP1631HV Digitally Controlled Programmable Current Source Reference Design LED Driver firmware, visit our web site at www.microchip.com. START Initialize: Processor, Parameters (ILEDmin = 70 mA, ILEDmax = 700 mA), Timers, Sample ADC() No S1 Pressed? Yes ILEDmin Yes OVP Test VOUT> 9.
Demo Board Firmware C.2 SUMMARY DEVICE FIRMWARE FLOWCHART - LI-ION CHARGER For the latest version of the MCP1631HV Digitally Controlled Programmable Current Source Reference Design Li-Ion Charger firmware, visit our web site at www.microchip.com. START Yes S1 pressed > 2s ? Initialize: Processor, Parameters, Timers; SampleADC() Yes No OVP Test VBATT >4.4V/Cell? S1 pressed? No Yes No No Precondition Current Mode I=200 mA Calibrate LiIon() VBATT > 3.
Demo Board Firmware C.3 SUMMARY DEVICE FIRMWARE FLOWCHART - NIMH/NICD CHARGER For the latest version of the MCP1631HV Digitally Controlled Programmable Current Source Reference Design NiMH/NiCd Charger firmware, visit our web site at www.microchip.com. START Initialize: Processor, Parameters, Timers; SampleADC() S1 pressed? No Yes Yes ChargeTimer=0? Shutdown No Yes Is VBATT > 1.8V / Cell? No Cell temp > 40oC? Shutdown Yes No No Is VBATT > 0.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.