Summary of Contents for Microchip Technology dsPICDEM MCHV-2
Page 1
MCHV-2 Development Board User’s Guide 2012 Microchip Technology Inc. DS52074A...
Page 2
Select Mode, Total Endurance, TSHARC, UniWinDriver, 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
2012 Microchip Technology Inc. DS52074A-page 3...
Page 4
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 4...
• The unit is designed to be connected to the AC mains supply via a standard non- locking plug. As the unit has no mains switch, this plug constitutes the means of disconnection from the supply and thus the user must have unobstructed access to this plug during operation. 2012 Microchip Technology Inc. DS52074A-page 5...
Page 6
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 6...
B.3 Debugging the Application ................67 B.4 Programming an Application ................ 69 B.5 Determining Device Support and Reserved Resources ......70 B.6 Troubleshooting ................... 70 B.7 Settings Dialog and Info Tab ................ 70 2012 Microchip Technology Inc. DS52074A-page 7...
Page 8
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 8...
Page 9
MCHV-2 Development Board. ® • Appendix B. “Debugging and Troubleshooting with MPLAB 8” – This appendix provides debug and programming guidance for MPLAB 8 users. 2012 Microchip Technology Inc. DS52074A-page 9...
Curly braces and pipe Choice of mutually exclusive errorlevel {0|1} character: { | } arguments; an OR selection Ellipses... Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... 2012 Microchip Technology Inc. DS52074A-page 10...
Plug-In Module (PIM) for Internal Op amp Configuration Information Sheet (DS52062) This document provides device specific information for the dsPIC33EP256MC506 Internal Op amp configuration PIM. To obtain any of these documents, visit the Microchip web site at www.microchip.com. 2012 Microchip Technology Inc. DS52074A-page 11...
Page 12
MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager and general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 device programmer and the PICkit™ 3 development programmers. 2012 Microchip Technology Inc. DS52074A-page 12...
Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (July 2012) This is the initial released version of the document. 2012 Microchip Technology Inc. DS52074A-page 13...
Page 14
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 14...
BOARD USER’S GUIDE Chapter 1. Introduction OVERVIEW The Microchip dsPICDEM MCHV-2 Development Board is intended to aid the user in the rapid evaluation and development of a wide variety of motor control applications ® using PIC24 Microcontrollers (MCUs) and dsPIC Digital Signal Controllers (DSCs).
Page 16
MCHV-2 Development Board User’s Guide FIGURE 1-1: dsPICDEM™ MCHV-2 DEVELOPMENT BOARD 2012 Microchip Technology Inc. DS52074A-page 16...
Page 17
FIGURE 1-2: SYSTEM BLOCK DIAGRAM PFC Stage Board Power Module Board Voltage HALL Hall VAC Voltage Non-isolated Feedback Sensors Sensors Feedback ICSP™ connector Circuitry Circuitry and Motor) VBUS PFC Circuitry VAC Zero Current Crossing Feedback ® dsPIC Circuitry PFC Current PIC24 MCU Power PFC PWM...
Page 18
MCHV-2 Development Board User’s Guide 1.1.1 Features This section provides some of the key features of the dsPICDEM MCHV-2 Development Board. Motor Control Interfaces: • Three-phase inverter bridge with a power rating of 400V/6.5A (J17) • Hall sensors/Quadrature Encoder Interface (QEI) for sensored motor control algorithms (J9) •...
Page 19
Built-In Power Supplies: - 15V power supply, maximum power available 11W - 3.3V power supply, maximum power available 2W Additional Protection Circuitry: - 250 VAC/15A fuse - In-rush current limiter - EMI filter 2012 Microchip Technology Inc. DS52074A-page 19...
Page 20
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 20...
BOARD USER’S GUIDE Chapter 2. Getting Started BOARD COMPONENTS The dsPICDEM MCHV-2 Development Board consists of two stages: • PFC Stage The first stage is integrated by the Power Factor Correction (PFC) circuitry, the full-bridge rectifier, the 15V power supply, and the 3.3V power supply.
MCHV-2 Development Board User’s Guide USER INTERFACE The dsPICDEM MCHV-2 has the following components to interact with the user. Figure 2-2 shows a photograph of the front of the system. • Input/Output Control Switches (Figure 2-2): - One isolated push button (S1) - Isolated reset push button (RESET) - Isolated 10 kΩ...
If possible, all wires should be stripped and tinned with solder before connecting to the dsPICDEM™ MCHV-2 Development Board terminals. 2012 Microchip Technology Inc. DS52074A-page 23...
Page 24
Corresponding tables that describe each connection are provided in the relevant section. FIGURE 2-5: dsPICDEM™ MCHV-2 DEVELOPMENT BOARD CONNECTIONS The power connections are listed in Table 2-1. 2012 Microchip Technology Inc. DS52074A-page 24...
Page 25
If the motor position is sensed with a Quadrature Encoder, connect the ter- minals phase A, phase B, and Index to the connection nodes HA, HB, and HC (7, 8, and 9 in Figure 2-5), respectively. 2012 Microchip Technology Inc. DS52074A-page 25...
Page 26
Note: The Microchip serial emulator driver (mchpcdc.inf) should be installed on your PC in order to activate the USB-to-Serial emulator. The emulator can be obtained from the dsPICDEM MCHV-2 Development Board product page: http://www.microchip.com/mchv2 4. Connect the USB cable to the mini-USB female connector labeled “Program/Debug”...
Output window. 3. Once the build sequence is complete, MPLAB X will program the target device and begin executing the application code in Debug mode, as shown in Figure 2-7. 2012 Microchip Technology Inc. DS52074A-page 27...
Page 29
Repeatedly click the button to step through the code. 5. Select Debug>Reset click the Reset icon to reset the program again. 6. Select Debug>Finish Debug Session or click the Finish Debug Session icon to exit Debug mode. 2012 Microchip Technology Inc. DS52074A-page 29...
Page 30
Alternatively, click the Make and Program Device icon to build the application and program the device (this action does not release the device from reset). At this point, the application code will run independently. 2012 Microchip Technology Inc. DS52074A-page 30...
Page 31
Project Dashboard window of MPLAB X. The project dashboard window also displays other useful information such as Starter Kit on Board V , target device ID, and target device ID revision. 2012 Microchip Technology Inc. DS52074A-page 31...
Page 32
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 32...
® This chapter describes the demonstration software that is preloaded on the dsPIC device that is included with the dsPICDEM MCHV-2 Development Board. This demon- stration software, which is based on application note AN1162, demonstrates how to use the dsPICDEM™ MCHV-2 Development Board for controlling an AC induction motor (ACIM).
Page 34
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 34...
DC bus capacitance. The initial nominal cold resistance is 1 Ohm, which reduces once current flows and the device heats up. • BR1 – A single-phase bridge rectifier to convert the incoming AC into DC suitable for input to the power conditioning stage. 2012 Microchip Technology Inc. DS52074A-page 35...
Page 36
IGBT is turned off. • The power factor corrector design is based on the application note AN1106, for more information on this application note please refer to one of the following Microchip Web sites: www.microchip.com/smps www.microchip.com/motor 2012 Microchip Technology Inc. DS52074A-page 36...
DSC, the isolation circuitry, the communication ports, the Starter Kit program- mer, etc. It also generates the 3.3 volts for powering the analog circuits and the analog reference for the Analog-To-Digital Converter (ADC) module. 2012 Microchip Technology Inc. DS52074A-page 37...
Page 38
If possible, all wires should be stripped and tinned with solder before connecting to the dsPICDEM MCHV-2 Development Board terminals. 2012 Microchip Technology Inc.
Page 39
If possible, all wires should be stripped and tinned with solder before connecting to the dsPICDEM MCHV-2 Development Board terminals. Note: The user should only access the power terminals when the system is fully discharged (see the “Safety Notice”...
PFC current (buffered) Device programming clock line Device programming data line Reference voltage (half of AV voltage) PIM_REC_NEUTR Reconstructed motor neutral line voltage Analog supply Analog supply PIM_POT Potentiometer signal PIM_POT Potentiometer signal 2012 Microchip Technology Inc. DS52074A-page 40...
Page 41
PFC PWM output HA/QEA Hall sensor / QEI input PIM_IB+ IB shunt signal PIM_IA+ IA shunt signal HB/QEB Hall sensor / QEI input PIM_HALLC/INDX/STP_PWM Hall sensor / QEI input PIM_PFC_PWM PFC PWM output 2012 Microchip Technology Inc. DS52074A-page 41...
Page 42
3.3V digital rail. This auxiliary 3.3V digital rail is applied to the system through R106. The circuit is shown in Appendix A. “Board Layout and Schematics”. Note: It is the responsibility of the user to populate these components if an external power supply is used. 2012 Microchip Technology Inc. DS52074A-page 42...
Page 43
PIC24 MCU or dsPIC DSC logic levels. R85 limits the current going to the ADC pin (< 6mA). C51, R79 and R84 form the low-pass filter. The phase M2 and M3 has the exact same circuitry as shown in the schematic. 2012 Microchip Technology Inc. DS52074A-page 43...
Page 44
Plug-In Module. A block diagram describing the matrix board interface is shown in Figure 4-1. FIGURE 4-1: MATRIX BOARD BLOCK DIAGRAM Shunt resistor signals (Direct) Reconstructed motor neutral voltage Feedback signals Matrix Plug-In Module (Hall sensor/Phase voltage/Shunt resistor) Board DC bus voltage Potentiometer 2012 Microchip Technology Inc. DS52074A-page 44...
Hardware The dsPICDEM MCHV-2 Development Board uses discrete op amps (U13) to amplify the shunt resistor signals. Alternatively, some of the PIC24 MCUs or dsPIC DSCs include on-board op amps that can be used for this purpose. To accommodate these two basic configurations, the dsPICDEM MCHV-2 Development Board comes with two matrix boards.
Page 46
Connects Hall B/QEB sensor signal to MONITOR_2 Connects DC bus shunt current feedback to MONITOR_3 Connects Phase M3 voltage feedback to MONITOR_3 Connects Hall C/INDEX sensor signal to MONITOR_3 Connects the POT voltage to MONITOR_3 2012 Microchip Technology Inc. DS52074A-page 46...
Page 47
PGD1/EMUD1 signals is provided by the digital isolators U3, U6, U22 and U7. 4.2.11 Board Connectors Figure 4-2 provides the locations of the connectors. The Power Module Stage Board connectors are listed in Table 4-4. FIGURE 4-2: POWER MODULE BOARD CONNECTORS 2012 Microchip Technology Inc. DS52074A-page 47...
Page 48
Fault (Overcurrent or Overvoltage condition) Output VAC zero crossing signal Output PFC shunt signal Output PWM signal for the PFC IGBT Input Ground, digital rail Output PWM fault Output Output PFC shunt signal Output 2012 Microchip Technology Inc. DS52074A-page 48...
PFC IGBT. To provide additional air flow, a conventional AC muffin fan can be used (Comair-rotron part number 028021 or 028023). An alternative bonded fin heat sink with fans attached is also an option (C&H Technology, Inc. part number CH5117F). 2012 Microchip Technology Inc. DS52074A-page 49...
Page 50
MCHV-2 Development Board User’s Guide NOTES: 2012 Microchip Technology Inc. DS52074A-page 50...
4) the Output window will display communication status between MPLAB IDE and the Starter Kit on Board on the Starter Kit on Board tab. FIGURE B-1: STARTER KIT ON BOARD AS DEBUG TOOL 2012 Microchip Technology Inc. DS52074A-page 65...
MCHV-2 Development Board User’s Guide 4. Select Debugger>Program to program the application code into the target PIC24 MCU or dsPIC DSC device on the dsPICDEM MCHV-2 Development board. The debug programming progress will be visible in the Starter Kit on Board tab of the Output window.
See the MPLAB IDE Help for more information on this dialog. 5. A breakpoint set in code will appear as a red hexagon with a “B” as shown in Figure B-3. 2012 Microchip Technology Inc. DS52074A-page 67...
Page 68
Once code is halted, hovering over a variable opens a tool tip window that contains the current value of the variable. Note: This feature must be configured. Select Edit>Properties and click the Tooltips tab, and select the “Enable Variable Mouseover Values” check box. 2012 Microchip Technology Inc. DS52074A-page 68...
1. Disable Starter Kit on Board as a debug tool by selecting Debugger>Select Tool>None. 2. Select Starter Kit on Board as the programmer in the Programmer>Select Programmer menu. 3. Select Programmer>Program. At this point, the application code will run independently. 2012 Microchip Technology Inc. DS52074A-page 69...
• Firmware Version: The version of firmware on the Starter Kit on Board. • Debug Exec Version: The version of the debug executive that is loaded into the target device program memory to enable debug operation. 2012 Microchip Technology Inc. DS52074A-page 70...
Page 71
Safety Notice.............. 5 Overview ............15 System Connections ..........24 Hall Sensors............. 43 Troubleshooting ............31 Hardware Components ..........35 Warranty Registration ..........11 Interface Components..........22 WWW Address............12 Internet Address............12 2012 Microchip Technology Inc. DS52074A-page 71...
Need help?
Do you have a question about the dsPICDEM MCHV-2 and is the answer not in the manual?
Questions and answers