DM300023 Microchip Technology, DM300023 Datasheet

KIT DEMO DSPICDEM SMPS BUCK

DM300023

Manufacturer Part Number
DM300023
Description
KIT DEMO DSPICDEM SMPS BUCK
Manufacturer
Microchip Technology
Series
dsPIC™r
Datasheets

Specifications of DM300023

Main Purpose
DC/DC, Step Down
Outputs And Type
2, Non-Isolated
Voltage - Input
7 ~ 15V
Regulator Topology
Buck
Board Type
Fully Populated
Utilized Ic / Part
dsPIC30F2020
Processor To Be Evaluated
dsPIC30F202x/1010
Interface Type
RS-232
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Current - Output
-
Voltage - Output
-
Power - Output
-
Frequency - Switching
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM300023
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM300023
Manufacturer:
MICROCHIP
Quantity:
12 000
dsPICDEM™ SMPS Buck
Development Board
User’s Guide
© 2006 Microchip Technology Inc.
DS70181A

Related parts for DM300023

DM300023 Summary of contents

Page 1

... SMPS Buck © 2006 Microchip Technology Inc. Development Board User’s Guide DS70181A ...

Page 2

... Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... Chapter 4. Demonstration Program Operation 4.1 Demonstration Program ............................................................................... 37 4.2 Demonstration Code .................................................................................... 39 4.3 Other Code Examples .................................................................................. 40 Appendix A. Schematic and Layouts Index ............................................................................................................................. 45 Worldwide Sales and Service .................................................................................... 46 © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD Table of Contents USER’S GUIDE DS70181A-page iii ...

Page 4

... NOTES: DS70181A-page iv © 2006 Microchip Technology Inc. ...

Page 5

... SMPS Buck Development Board. • Appendix A. “Schematic and Layouts” – This section illustrates the dsPICDEM™ SMPS Buck Development Board layout and provides hardware schematic diagrams. © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD Preface NOTICE TO CUSTOMERS ® ...

Page 6

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2006 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 7

... Microchip consultant program member listing • Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives © 2006 Microchip Technology Inc. DS70181A-page 3 ...

Page 8

... Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 and PRO MATE Plus and PICkit DS70181A-page 4 ® II device programmers and the PICSTART ™ 1 development programmers. ® ® © 2006 Microchip Technology Inc. ...

Page 9

... Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com © 2006 Microchip Technology Inc. DS70181A-page 5 ...

Page 10

... SMPS Buck Development Board DOCUMENT REVISION HISTORY Revision A (October 2006) • Initial Release of this Document. DS70181A-page 6 © 2006 Microchip Technology Inc. ...

Page 11

... A/D conversion, PWM generation and general purpose I/O, precluding the need to perform these functions in external circuitry. FIGURE 1- AN4 Communication © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD ® SYNCHRONOUS BUCK CONVERTER BLOCK DIAGRAM BUCK CONVERTER 1 VIN ...

Page 12

... Buck Converter 2 output (VOUT2 connector for external loading 1.3.2 Input/Output Controls • Three 5 kΩ Potentiometers (R29,R30 and R35) • Two push button switches (S2 and S4) • Master Clear push button switch (S3) • LED indicator (LED3) DS70181A-page 8 2 C/SPI/UART) © 2006 Microchip Technology Inc. ...

Page 13

... MPLAB ICD 2 In-Circuit Debugger (DV164007). • LED power-on indicator (LED1) • On-board 5V DC, low-dropout regulator 1.3.4 Communication Ports • One RS232 port (J6) • MPLAB ICD 2 programming connector (J5) • SW2 selection of programming interface to the MPLAB ICD 2 Debugger/Programmer © 2006 Microchip Technology Inc. DS70181A-page 9 ...

Page 14

... SMPS Buck Development Board NOTES: DS70181A-page 10 © 2006 Microchip Technology Inc. ...

Page 15

... RS232 connector (J6) 3 Programming/debugging connector (J5) 4 VOUT1 Connector (J1) 5 VOUT2 Connector (J3) 6 Expansion Header (J7) © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD ® CONNECTED TO MPLAB ICD 2 AND POWER SUPPLY 6 BUCK CONVERTER BOARD CONNECTORS Hardware Elements USER’ ...

Page 16

... An external load can be connected to VOUT2 through connector J1.See Figure A-4: “dsPICDEM™ SMPS Buck Development Board Schematic 3 of 3” 2.1.6 Expansion Header Header expansion connector that matches the dsPIC30F2020 device pins (see Table 2-2 for pin usage information). DS70181A-page ® ICD 2 to the dsPIC30F2020 © 2006 Microchip Technology Inc. ...

Page 17

... Microchip Technology Inc. DEVICE PINS IN EXPANSION CONNECTOR Assignment MCLR Master Clear (Reset) AN0/RB0 Analog Input 0 (Buck Converter 1 current) AN1/RB1 Analog Input 1 (Buck Converter 1 voltage) AN2/RB2 Analog Input 2 (Buck Converter 2 current) AN3/RB3 Analog Input 3 (Buck Converter 2 voltage) AN4/RB4 Analog Input 4 (Input Voltage) ...

Page 18

... Buck Converter 2 Input Select ON: Connects the Input power to buck converter 2 OFF: Input to buck converter 2 is left open DS70181A-page 14 Jumpers JP3 JP1 JP4 JP2 JP5 R29 R30 R35 Potentiometers JUMPER DESCRIPTIONS Description Ω /5W) using OC1/RD0 pin Switches © 2006 Microchip Technology Inc. ...

Page 19

... PWM test points that can be used to check the PWM signal and gate drive to buck converter 1 and 2. These test points are described in Table 2-5 and Table 2-6, respectively. © 2006 Microchip Technology Inc. JUMPER DESCRIPTIONS (CONTINUED) Description ...

Page 20

... Buck Switch PWM signal (Buck converter 2) Synchronous Switch PWM signal (Buck Converter 2) Buck Switch Gate Drive (Buck Converter 1) Synchronous Switch Gate Drive (Buck Converter 1) Buck Switch Gate Drive (Buck Converter 2) Synchronous Switch Gate Drive (Buck Converter 2) P3 P12 P11 Signal © 2006 Microchip Technology Inc. ...

Page 21

... Configuration bits). When SW2 is in the DEBUG position, PGC1/EMUC1 and PGD1/EMUD1 must be selected as the debugging pin pair in the Configuration bit settings window. Both programming and debugging are possible in this configuration. © 2006 Microchip Technology Inc. DS70181A-page 17 ...

Page 22

... SMPS Buck Development Board NOTES: DS70181A-page 18 © 2006 Microchip Technology Inc. ...

Page 23

... A workspace contains one or more projects and information on the selected device, debug tool and/or programmer, open windows and their location, and other IDE configuration settings. MPLAB IDE provides a Project Wizard to help create new projects. © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD USER’S GUIDE ...

Page 24

... From the Welcome screen, click Next> to display the Project Wizard Step One dialog as shown in the Figure 3-1. FIGURE 3-1: • From the Device: pull-down list, select dsPIC30F2020 and click Next>. The Project Wizard Step Two dialog displays as shown in Figure 3-2. DS70181A-page 20 PROJECT WIZARD, STEP 1, SELECT A DEVICE © 2006 Microchip Technology Inc. ...

Page 25

... With MPLAB LINK 30 Object Linker (pic30-Id.exe) selected in Toolsuite Con- tents, click Browse... and navigate to: C:\Program Files\Microchip\MPLAB ASM30 Suite\bin\pic30-id.exe • Click Next> to continue. The Project Wizard Step Three dialog displays as shown in Figure 3-3. © 2006 Microchip Technology Inc. PROJECT WIZARD STEP 2, SELECT LANGUAGE TOOLSUITE DS70181A-page 21 ...

Page 26

... Click Browse... and navigate to C:\DualBuck to place your project in the tutorial folder (create this folder if it does not already exist). • Click Next> to continue. The Project Wizard Step Four dialog displays as shown in Figure 3-4. DS70181A-page 22 PROJECT WIZARD, STEP 3, NAME YOUR PROJECT © 2006 Microchip Technology Inc. ...

Page 27

... When the summary screen displays, click Finish. • When the Save Workspace As window displays, type DualBuck.mcw in the “File name” field and save the workspace in C:\DualBuck (see Figure 3-5). © 2006 Microchip Technology Inc. PROJECT WIZARD, STEP 4, ADD FILES TO PROJECT DS70181A-page 23 ...

Page 28

... SMPS_PID_Control.s files in the Source Files folder, the p30f2020.inc file in the Header Files folder and the p30f2020.gld file in the Linker Scripts folder (Figure 3-6). FIGURE 3-6: DS70181A-page 24 SAVE WORKSPACE WINDOW ® MPLAB IDE PROJECT WINDOW © 2006 Microchip Technology Inc. ...

Page 29

... A project and workspace has now been created in MPLAB IDE. DualBuck.mcw is the workspace file and DualBuck.mcp is the project file. Double click the SMPS_PID_Controls.s file in the project window to open the file. MPLAB IDE should now look similar to Figure 3-7. ® FIGURE 3-7: MPLAB IDE WORKSPACE WINDOWS © 2006 Microchip Technology Inc. DS70181A-page 25 ...

Page 30

... This line causes a standard include file to be used. Microchip provides these files with all the Special Function Register (SFR) labels already defined for convenience. To build the code, select Build Options>Project from the Project menu. The Build Options dialog displays, as shown in Figure 3-8. FIGURE 3-8: DS70181A-page 26 BUILD OPTIONS © 2006 Microchip Technology Inc. ...

Page 31

... This sets aside RAM for the MPLAB ICD 2 to use during debugging. If this step is not done, the MPLAB ICD 2 will not function properly in Debug mode. • On the Project Manager toolbar, select “Debug” from the drop-down box (see Figure 3-9) FIGURE 3-9: © 2006 Microchip Technology Inc. ® LINK PROJECT FOR MPLAB ICD 2 DS70181A-page 27 ...

Page 32

... User’s Guide” (DS51331) for more details regarding the installation of MPLAB ICD 2). 3.4.1 Setup the Device Configuration • Use the Configure>Configuration Bits menu to display the configuration settings. • Set up the Configuration bits as shown in Figure 3-11. FIGURE 3-11: CONFIGURATION SETTINGS DS70181A-page 28 ® ICD 2 In-Circuit Debugger © 2006 Microchip Technology Inc. ...

Page 33

... Connect the MPLAB ICD 2 to the dsPICDEM™ SMPS Buck Development Board with the short RJ-11 (telephone) cable. • Apply +9V power to the board. FIGURE 3-12: © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD ® CONNECTED TO MPLAB ICD 2 IN-CIRCUIT DEBUGGER ...

Page 34

... The MPLAB ICD 2 may need to download the new firmware if this is the first time the MPLAB ICD 2 is being used with a dsPIC30F device. If any errors are shown, double click the error message to get more information. FIGURE 3-13: DS70181A-page 30 ® ENABLING MPLAB ICD 2 © 2006 Microchip Technology Inc. ...

Page 35

... Observe the process in the Output window. When “MPLAB ICD 2 Ready” displays, the device is programmed and ready to run. • Use the Debugger>Reset menu to reset the code, then Debugger>Run to run the code. © 2006 Microchip Technology Inc. SETTING PROGRAM MEMORY SIZE DS70181A-page 31 ...

Page 36

... SMPS Buck Development Board FIGURE 3-15: DS70181A-page 32 PROGRAMMING THE DSPIC30F2020 DEVICE © 2006 Microchip Technology Inc. ...

Page 37

... The instruction at this location is goto 0x000100. This code is added by the linker to make the program branch to the start of the code in the Lab1.c file. From location 0x000100 executable code starts. FIGURE 3-16: PROGRAM MEMORY WINDOW © 2006 Microchip Technology Inc. DS70181A-page 33 ...

Page 38

... Next, select PWMCON1 from the pull-down list and click Add SFR. • Repeat for the ADCON register. • You will be able to view these registers change as you step through the code. FIGURE 3-17: SOURCE CODE WINDOW FIGURE 3-18: WATCH WINDOW DISPLAY DS70181A-page 34 © 2006 Microchip Technology Inc. ...

Page 39

... Press <F9> to run the code. The program halts on the instruction following the breakpoint Note: An alternate method is to simply double click the line. This feature may need to be enabled using the Edit>Properties menu. FIGURE 3-19: SETTING BREAKPOINT © 2006 Microchip Technology Inc. DS70181A-page 35 ...

Page 40

... SMPS Buck Development Board NOTES: DS70181A-page 36 © 2006 Microchip Technology Inc. ...

Page 41

... PWM signal (the time when both MOSFETs are off). 7. Current-Limit Gain – This parameter limits the cumulative control gain when the current is approaching its upper limit. © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD USER’S GUIDE ...

Page 42

... Perform non-critical functions here (e.g. user application tasks) DS70181A-page 38 Fault-Check Routine Does Yes Disable Exist Outputs ? No Is Active ? No ADC Interrupt ADC Interrupt Routines: • Measure V OUT • Calculate PID Gain Parameters • Update PWM Duty Cycle END © 2006 Microchip Technology Inc. ...

Page 43

... All auxiliary functions are performed in the System Idle routine. This is the time avail- able to the CPU while the demo program is waiting for an ADC Interrupt. Non-critical functions can be performed in this loop. During this time the input voltage, fault timers and Soft Start flag are checked. © 2006 Microchip Technology Inc. DS70181A-page 39 ...

Page 44

... Development Board CD. Please refer to the Readme files located in each code exam- ple folder for details on what each code example demonstrates. Check the Microchip website (www.microchip.com) for the latest updates to these code examples and for additional code examples. DS70181A-page 40 © 2006 Microchip Technology Inc. ...

Page 45

... This Appendix provides a layout drawing of the printed circuit board followed by schematics for the dsPICDEM™ SMPS Buck Development Board. FIGURE A-1: dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD LAYOUT © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD USER’S GUIDE ...

Page 46

... SMPS BUCK DEVELOPMENT BOARD SCHEMATIC 0.1uF C12 C20 0.1uF 0.1uF C15 C8 0.1uF 0.01uF C11 500pF C10 0.01uF C23 500pF C13 DS70181A-page 42 0.1uF C19 C32 0.01uF C31 0.01uF C9 0.01uF C17 0.1uF C14 0.1uF C18 0.1uF © 2006 Microchip Technology Inc. ...

Page 47

... SMPS BUCK DEVELOPMENT BOARD SCHEMATIC IN4001 MBRS340 D4 18V 1N4746A D9 C35 1.0uF 18V 1N4746A C28 25V 470uF C37 25V 470uF © 2006 Microchip Technology Inc. 4.7K R17 JP2 1% 1K R10 4.7K R14 4.7K R13 1% 1K R11 10V uF 100 15V 470uF DS70181A-page 43 ...

Page 48

... SMPS Buck Development Board FIGURE A-4: dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD SCHEMATIC R20 18V 1N4746A D10 1.0uF 18V 1N4746A C33 25V C36 25V DS70181A-page R22 MBRS340 D8 4.7K R34 4.7K R19 C34 D11 470uF 470uF © 2006 Microchip Technology Inc. ...

Page 49

... Internet Address......................................................... 3 J Jerk Error Gain (J-Gain)........................................... 37 Jumper Descriptions ................................................ 14 K Kit dsPICDEM™ SMPS Buck Development Board Microchip Internet Web Site ....................................... 3 © 2006 Microchip Technology Inc. dsPICDEM™ SMPS BUCK DEVELOPMENT BOARD USER’S GUIDE Index P PID Control............................................................... 37 Power Stages............................................................. 8 Power Test Points .................................................... 16 Program/Debug Switch ...

Page 50

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2006 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords