Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. General-Purpose 3-Phase AC Industrial Motor Controller Designer Reference Manual MC3PHAC Motor Controller DRM006/D 4/2002 WWW.MOTOROLA.COM/SEMICONDUCTORS For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... General-Purpose 3-Phase AC Industrial Motor Controller Reference Design Designer Reference Manual Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does Motorola assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. "Typical" parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including "Typicals" must be validated for each customer application by customer's technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. Motorola and are registered trademarks of Motorola, Inc. DigitalDNA is a trademark of Motorola, Inc. 3-Phase AC Industrial Motor Controller MOTOROLA © Motorola, Inc., 2002 Designer Reference Manual 3 For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc. Designer Reference Manual To provide the most up-to-date information, the revision of our documents on the World Wide Web will be the most current. Your printed copy may be an earlier revision. To verify you have the latest information available, refer to the documentation library available at: Freescale Semiconductor, Inc... http://www.motorola.com/semiconductor Designer Reference Manual 3-Phase AC Industrial Motor Controller 4 MOTOROLA For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller List of Sections Section 1. Introduction and Setup . . . . . . . . . . . . . . . . . . 13 Freescale Semiconductor, Inc... Section 2. Operational Description . . . . . . . . . . . . . . . . . 33 Section 3. Pin Descriptions . . . . . . . . . . . . . . . . . . . . . . . 41 Section 4. Schematics and Parts List . . . . . . . . . . . . . . . 47 Section 5. Design Considerations . . . . . . . . . . . . . . . . . . 55 Appendix A. MC3PHAC Data Sheet . . . . . . . . . . . . . . . . 63 3-Phase AC Industrial Motor Controller MOTOROLA List of Sections For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 5 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... List of Sections Designer Reference Manual 6 3-Phase AC Industrial Motor Controller List of Sections For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Table of Contents Freescale Semiconductor, Inc... Section 1. Introduction and Setup 1.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 1.3 Brief Overview to 3-Phase Induction Motors . . . . . . . . . . . . . .14 1.4 About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.6 Warnings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 1.7 Setup Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Section 2. Operational Description 2.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 2.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 2.3 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4 User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4.1 Potentiometers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4.2 Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 2.4.3 Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 2.4.4 Indicator Lights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.4.5 Test Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.4.6 Optoisolated RS232 Interface . . . . . . . . . . . . . . . . . . . . . . .40 Section 3. Pin Descriptions 3.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 3.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 3.3 Control Board Signal Descriptions . . . . . . . . . . . . . . . . . . . . . .41 3-Phase AC Industrial Motor Controller MOTOROLA Table of Contents For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 7 Freescale Semiconductor, Inc. Table of Contents 3.3.1 3.3.2 3.3.3 40-Pin Connector J1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 Optoisolated RS232 DB-9 Connector J2 . . . . . . . . . . . . . . .45 Power Connector J3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 Freescale Semiconductor, Inc... Section 4. Schematics and Parts List 4.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 4.2 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 4.3 Parts Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 Section 5. Design Considerations 5.1 Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 5.2 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 5.3 Dead Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 5.4 Power-Up/Power-Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.5 Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.6 Fault Circuits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.7 On-Board Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 5.8 Optoisolated RS232 Interface. . . . . . . . . . . . . . . . . . . . . . . . . .60 Appendix A. MC3PHAC Data Sheet Designer Reference Manual 8 3-Phase AC Industrial Motor Controller Table of Contents For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller List of Figures Freescale Semiconductor, Inc... Figure Title 1-1 1-2 1-3 1-4 1-5 1-6 1-7 1-8 Board Photograph. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 Schematic View of a 3-Phase AC induction Motor . . . . . . . . . .16 3-Phase AC Motor Drive. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 System’s Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 System Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Dead Time vs. Resistance . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Retry Time vs. Resistance . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Voltage Boost vs. Resistance . . . . . . . . . . . . . . . . . . . . . . . . . .31 2-1 Reference PC Board Block Diagram . . . . . . . . . . . . . . . . . . . .34 3-1 40-Pin Ribbon Connector J1. . . . . . . . . . . . . . . . . . . . . . . . . . .42 4-1 4-2 4-3 MC3PHAC Reference Board Circuitry (Sheet 1 of 3) . . . . . . . .48 MC3PHAC Reference Board Circuitry (Sheet 2 of 3) . . . . . . . .49 MC3PHAC Reference Board Circuitry (Sheet 3 of 3) . . . . . . . .50 5-1 5-2 5-3 5-4 Overvoltage Fault Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 Overtemperature Fault Circuit . . . . . . . . . . . . . . . . . . . . . . . . .58 On-Board Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 RS232 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .60 3-Phase AC Industrial Motor Controller MOTOROLA Page List of Figures For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 9 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... List of Figures Designer Reference Manual 10 3-Phase AC Industrial Motor Controller List of Figures For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller List of Tables Freescale Semiconductor, Inc... Table Title 1-1 Resistance and Corresponding PWM Frequencies . . . . . . . . .30 2-1 2-2 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 Test Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40 3-1 3-2 40-Pin Ribbon Connector J1. . . . . . . . . . . . . . . . . . . . . . . . . . .43 Optoisolated RS232 DB-9 Connector J2 . . . . . . . . . . . . . . . . .45 4-1 Reference PC Board Parts List . . . . . . . . . . . . . . . . . . . . . . . .51 3-Phase AC Industrial Motor Controller MOTOROLA Page List of Tables For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 11 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... List of Tables Designer Reference Manual 12 3-Phase AC Industrial Motor Controller List of Tables For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Section 1. Introduction and Setup Freescale Semiconductor, Inc... 1.1 Contents 1.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 1.3 Brief Overview to 3-Phase Induction Motors . . . . . . . . . . . . . .14 1.4 About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.6 Warnings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 1.7 Setup Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.2 Introduction Motorola’s MC3PHAC motor control reference PC board is designed for use with optoisolation and power modules that are an integral part of the embedded motion control series of development tools. It may be used with custom power stages as well, and it is intended as a vehicle to evaluate the MC3PHAC motor control device. The MC3PHAC is designed to provide all of the necessary pulse-width modulated outputs and monitor the system parameters necessary to control a 3-phase induction motor. The reference PC board interfaces easily with power stages and optoisolator boards. Details of the interface are given in Section 3. Pin Descriptions. A photograph of the board is shown in Figure 1-1. Some applications for this system include: • Low horsepower, variable-speed HVAC compressors, blowers, and air handler motors • Garage door openers • Variable-speed pumps • Submersible pumps 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 13 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Introduction and Setup • Soft-start drive systems • Hot tub pump motors • Commercial laundry and dishwashers • Process control systems • Variable speed refrigeration compressors Figure 1-1. Board Photograph 1.3 Brief Overview to 3-Phase Induction Motors Various market studies indicate up to 90 percent of all industrial motor applications are induction type motors. Induction motors are sometimes referred to as the “workhorse” of industrial motors. An induction motor is the lowest cost motor for applications that require one-third or more horsepower when some form of ac is available. This is true partly because of the simple design of an induction motor. Three-phase motors are becoming more popular for consumer applications as well. There are many reasons for using an induction motor. Some of the reasons are: Designer Reference Manual 14 • Low cost • Simple to construct • High reliability 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Brief Overview to 3-Phase Induction Motors • High efficiency • No brushes to wear out • Operate well in extreme temperature conditions • Minimum maintenance In the case of the system described in this document, the ac power for the 3-phase induction motor is generated by an inverter, driven from a pulse-width modulator (PWM) within the MC3PHAC controller. Freescale Semiconductor, Inc... These advantages do not come without a price. An induction motor’s speed is difficult to control due to its complex mathematical model and its non-linear behavior when its core is saturated. Semiconductor-based control systems have enabled the use of induction motors for many applications requiring speed control. Induction motors are available in a wide range of sizes, from less than one watt to thousands of kilowatts. Common input voltage ranges are 230 and 460 volts for 60 Hz and input voltages of 380 volts when operating at 50 Hz. The motors are available in a variety of mounting styles. Mounting styles include C-face, foot mount, large flange, vertical, and custom mounts. Depending on the environment where the motor will reside, open, explosion proof, totally enclosed, fan-cooled, water-cooled, blower-cooled, and other enclosures are available. An ac induction motor consists of two windings. The windings are the rotor and stator assemblies. An induction motor can be thought of as a transformer with a fixed primary (stator) and a rotating secondary (rotor). The motor’s name “induction” comes from the fact that alternating currents are induced from the stator into the rotor by the rotating magnetic flux produced in the stator. The motor’s torque is developed from the interaction of the currents flowing in the rotor and the stator’s rotating magnetic field. The stator, or primary, windings connect to the 3-phase voltage source to produce a rotating magnetic field. The stator structure is constructed with steel laminations shaped to form poles that are wound with copper wire coils. The rotor is an assembly of laminations over a steel shaft core. Radial slots around the laminations periphery house copper or aluminum conductors at one end and are 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 15 Freescale Semiconductor, Inc. Introduction and Setup positioned in parallel to the shaft. The primary windings are connected to a 3-phase power source which produce a rotating magnetic field. In the case of a 3-phase induction motor, the primary or stator windings are spaced physically 120 degrees apart. If you view the rotor from one end, it appears to look like a squirrel cage. Sometimes an induction motor is referred to as a squirrel cage induction motor. Freescale Semiconductor, Inc... Figure 1-2 shows a schematic view of the construction of a 3-phase ac induction motor. ROTATING FIELD (ωs) STATOR TORQUE INDUC ED CU RREN T ωr ROTOR Figure 1-2. Schematic View of a 3-Phase AC induction Motor The magnetic field in the stator rotates at a synchronous speed around the parameter of the stator with the applied power’s frequency. The speed of an ac induction motor is controlled by the following factors: • The number of poles (winding sets) built into the motor • The frequency of the ac line voltage • The amount of torque loading, which causes slippage In actual practice, the rotor speed of the motor will always lag the rotating magnetic field of the stator. Typical slip values range from 2 percent to 5 percent of the theoretical rotational speed. Slip will always increase with the applied loading of the motor. Designer Reference Manual 16 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Brief Overview to 3-Phase Induction Motors Freescale Semiconductor, Inc... To put the rotation speed in equation form, the theoretical speed of the motor shaft is Vs = 120 (input frequency/number of poles). For a 60-Hz fixed frequency and a motor with four poles, the theoretical speed would be 1800 rpm. However, taking slip into consideration, using 4 percent slip, the actual speed of the motor would be 1728 rpm. A number of techniques can be used to control an ac induction motor. Ac induction motor drives are based on the fact that variable frequency and variable voltage waveforms can be generated. The most common ac induction motor drive utilizes a converter-inverter structure as shown in Figure 1-3. RECTIFIER AC TO DC INVERTER DC TO AC FILTER CAPACITOR MOTOR DC BUS AC INPUT CONTROLLER USER I/F OR SERIAL CONTROL GATE DRIVE MC3PHAC OPTIONAL OPTO Figure 1-3. 3-Phase AC Motor Drive As shown in Figure 1-3, the rectifier creates dc from the ac line while the inverter develops the variable-frequency, variable-voltage ac voltage from the dc bus. The controller is the intelligent heart of the system. It provides pulse-width modulated outputs used to drive the gate drive to the inverter. The controller also provides some form of user input/output (I/O) and reads the bus voltage and uses system fault information during its control tasks. Some systems optionally optoisolate the controller from the gate drives. 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 17 Freescale Semiconductor, Inc. Introduction and Setup Freescale Semiconductor, Inc... Many excellent text and reference books describe motors and their control techniques. A list containing several of them is presented here: • Motor Control Electronics Handbook, by Richard Valentine, McGraw-Hill, 1998, ISBN 0-07-066810-8 • DC Motors, Speed Controls, Servo Systems, by Electro-Craft Corp., 1980, ISBN 0-9601914-0-2 • Electric Machinery, by A. E. Fitzgerald, Charles Kingsley Jr., and Stephen D. Umans, McGraw-Hill, 1990, ISBN 0-07-021134-5 • Vector Control of AC Machines, by Peter Vas, Oxford University Press, 1994, ISBN 0-19-859370-8 • Power Electronics, by Ned Mohan, Tore Undeland, and William Robbins, John Wiley & Sons, 1995, ISBN 0-471-58408-8 • Power Electronics and Variable Frequency Drives, edited by Bimal Bose, IEEE Press, 1997, ISBN 0-7803-1084-5 • Electric Drives, an Integrative Approach, by Ned Mohan, University of Minnesota Printing Services, 2000, ISBN 0-9663530-1-3 1.4 About this Manual Key items can be found in the following locations in this manual: Designer Reference Manual 18 • Setup instructions are found in 1.7 Setup Guide. • Schematics are found in Section 4. Schematics and Parts List. • Pin assignments are shown in Figure 3-1. 40-Pin Ribbon Connector J1, and a pin-by-pin description is contained in 3.3 Control Board Signal Descriptions. • For those interested in the reference design aspects of the board’s circuitry, a description is provided in Section 5. Design Considerations. 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Features 1.5 Features Freescale Semiconductor, Inc... Some of the more noteworthy features of the reference PC board are: • Six motor control PWM outputs • Speed control potentiometer • Optoisolated half-duplex RS232 interface • Start/stop and forward/reverse switches • Eight jumper headers for system setup • MC3PHAC RESET switch • Two system fault inputs • Four analog inputs • Two software controlled LEDs • Regulated on-board power supply The reference PC board fits into the system’s configuration that is shown in Figure 1-4. OPTOISOLATED RS232 I/F MC3PHAC REFERENCE BOARD WORKSTATION (OPTIONAL) OPTOISOLATION BOARD HIGH-VOLTAGE POWER STAGE MOTOR Figure 1-4. System’s Configurations 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 19 Freescale Semiconductor, Inc. Introduction and Setup 1.6 Warnings This MC3PHAC reference PC board operates in an environment that includes dangerous voltages and rotating machinery. To facilitate safe operation, input power for the high-voltage power stages should come from a current limited dc laboratory power supply. If ac power is applied directly to the power stage, an isolation transformer should be used. Freescale Semiconductor, Inc... When operating high-voltage power stages directly from an ac line, power stage grounds and oscilloscope grounds are at different potentials, unless the oscilloscope is floating. Note that probe grounds and, therefore, the case of a floated oscilloscope, are subjected to dangerous voltages. Designer Reference Manual 20 • Before moving scope probes, making connections, etc., you must power down the high-voltage supply. • When high voltage is applied to the high-voltage power stage, using only one hand for operating the test setup minimizes the possibility of electrical shock. • Operation in lab setups that have grounded tables and/or chairs should be avoided. • Wearing safety glasses, avoiding ties and jewelry, using shields, and operation by personnel trained in high-voltage lab techniques are also advisable. 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Setup Guide 1.7 Setup Guide Freescale Semiconductor, Inc... Setup for and connections to the MC3PHAC reference PC board are straight forward. Output connections to an embedded motion control optoisolation board or high-voltage power stage are made via a 40-pin ribbon cable. The optoisolation board and power stage referred to in this manual ship as a set and can be ordered from Motorola or distribution partners as part number ECOPTHIVACBLDC. The reference PC board is powered through the 40-pin ribbon cable, regardless of whether it is connected to the optoisolation board or connected directly to a high-voltage power stage. A 12-volt/4-amp power supply provides power for the reference PC board side of the optoisolation board. Figure 1-5 depicts a completed system setup. MOTOR STANDOFFS 40-PIN RIBBON CABLE +12 Vdc MC3PHAC REFERENCE BOARD POWER STAGE 40-PIN RIBBON CABLE OPTOISOLATOR J1 J14 J1 J2 STANDOFFS HIGH-VOLTAGE MOTOR SUPPLY OPTIONAL FOR PC MASTER SOFTWARE Figure 1-5. System Setup 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 21 Freescale Semiconductor, Inc. Introduction and Setup A step-by-step procedure for setup of the reference PC board with an optoisolator board and high-voltage power stage is described here: 1. Mount four standoffs to the optoisolation board at the locations indicated in Figure 1-5. Standoffs, screws, and washers are included with the optoisolation board. 2. Plug one end of the 40-pin ribbon cable into the optoisolation board’s input connector J2, labeled “Control Board.” Freescale Semiconductor, Inc... 3. Mount the reference PC board on top of the standoffs. 4. In this configuration, the reference PC board is powered from the optoisolation PC board. Jumper JP10, located to the right and slightly below the RESET push button, must be removed. 5. Plug the free end of the 40-pin ribbon cable into the reference PC board’s output connector J1, located on the right hand side of the reference PC board. 6. Connect a 40-pin ribbon cable between the optoisolation board’s connector J1 and the power stage’s connector J14, as indicated in Figure 1-5. 7. Connect the three motor leads to the power stage as indicated in Figure 1-5. 8. Locate the START/STOP switch on the reference PC board and set it to STOP. 9. Locate the SPEED potentiometer on the reference PC board, R17, and set it to the slowest speed by rotating R17 to its most counter clockwise position. 10. Locate the forward/reverse (FWD/REV) switch on the reference PC board and set it to the desired direction of motor rotation. NOTE: When performing setup of the reference PC board, JP2 pins 1 to 2 must remain shorted throughout the process, as long as power is applied, unless otherwise stated. The following setup will be performed with both the 12-volt power supply connected to the optoisolation PC board and high-voltage power supply connected to the power module, with both power supplies turned on. The high-voltage power supply’s output should be set between 140 and Designer Reference Manual 22 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Setup Guide 230 Vdc, based on the motor requirements. Prior to connecting the high-voltage power supply to the power module, adjust its output voltage to that required by your specific motor. Freescale Semiconductor, Inc... 11. The temperature limit, trim potentiometer (pot) (TEMP LIMIT, R3). sets the point at which an overtemperature fault will be input to the MC3PHAC, located on the reference PC board. The temperature signal is derived on the power stage from four diodes connected in series (located near the IGBT power transistors) and is pulled up with a resistor connected to 3.3 V, generated on the power stage. The temperature coefficient of the four series diodes is approximately –8.8 mV/°C. The diodes are not a calibrated temperature sensor, but provide an approximation of the temperature of the power transistors on the power module. The voltage output from the diodes at room temperature will range from 2.3 V to 2.4 V. Now set the overtemperature fault point: a. Connect the high-voltage power supply to the line input terminal (J111) of the power stage. b. Turn on the 12-volt supply connected to the optoisolation PC board. c. Turn on the high-voltage power supply, leaving it set for the voltage of your specific motor. d. Connect the ground lead of a digital volt-ohm meter (DVM) to the AGND (TP6) test point, located to the right center top of the reference PC board. e. Connect the positive lead of the DVM to the test point marked TEMP (TP4), located at the center top of the reference PC board. The voltage at the test point (TP4) will be that of the temperature diode string residing on the power module at room temperature (VRoom). We will call the temperature of the room TRoom, which could be approximately 22°C. f. Compute the voltage of the power module’s heat sink temperature diodes at which a temperature fault should occur. An example would be to set the overtemperature fault (TFault) at 75°C (recommended). For this example, assume the TRoom (TP4) to be 2.35 volts. To compute the voltage 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 23 Freescale Semiconductor, Inc. Introduction and Setup from the diode string at 75°C (TFault), the following equation applies: VTP4 = VRoom + ((TFault – TRoom) * – 0.0088). That is, the voltage at TP5 will be: 1.88 V = 2.35 + ((75–22) * – 0.0088). Freescale Semiconductor, Inc... g. Connect the DVM to the TEMP LMT (temperature limit) test point TP5. Adjust the TEMP LIMIT (R3) trim pot such that the voltage reads 1.88 volts on the DVM. The overtemperature fault is now set for ~75°C, based on the values calculated from the previous step. 12. The MC3PHAC requires the value of the high-voltage bus when operating. The bus voltage signal is derived on the power stage from a voltage divider connected to the high-voltage bus. The voltage bus signal serves two purposes on the reference PC board. The divided, high-voltage bus is amplified and used for system control and also serves as an input to the overvoltage fault-generating circuitry. Now set the bus voltage amplifier, followed by the overvoltage fault point, by: a. Connect the ground lead of a DVM to the AGND (TP6) test point, located to the right center top of the reference PC board. b. Connect the positive lead of the DVM to the test point marked VBus (TP2), located at the left top of the reference PC board. c. Adjust the VBus GAIN (R2) trim pot such that the voltage reads 3.5 volts on the DVM. d. To adjust the point at which the MC3PHAC will receive an overvoltage fault, connect the positive lead of the DVM to the test point marked VBus LIMIT (R1). e. Adjust the VBus LIMIT (R1) trim pot such that the voltage reads 4.5 volts on the DVM. 13. If you are NOT using PC master software, skip to step 15. 14. If PC master software is used for real-time control of motor operation, it is necessary to set up RS232 serial communication with a PC. To do this, connect a 9-conductor straight through cable from the reference board’s DB-9 connector, J2, to the serial Designer Reference Manual 24 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Setup Guide port of the PC. If PC master software is used for real-time control of motor operation, it is necessary to set up the RS232 serial port of the PC. PC serial ports are wired as DTE (data terminal equipment) and the reference board’s serial port is wired as DCE (data communications equipment). Therefore, a 9-conductor cable wired straight through cable must be used. Do NOT use a null modem cable. Freescale Semiconductor, Inc... Adjust the SPEED potentiometer to its most clockwise position. Install a shorting jumper on JP1. Install shorting jumpers on JP2–JP5, pins 1 to 2. Remove any additional jumpers from JP2–JP5. The reference board system setup when using PC master software is complete. Skip to step 26. The following setup instructions pertain to use of the reference PC board and MC3PHAC in standalone mode: 15. The acceleration trim pot R8 sets the motor’s acceleration and deceleration time. (Deceleration time is further controlled by other factors, such as the bus voltage. See the MC3PHAC data sheet, Appendix A. MC3PHAC Data Sheet, for more detail.) The motor’s acceleration can be specified in real time to range from 0.5 Hz/sec to 128 Hz/sec. Unlike trim pots R4–R6, the acceleration trim pot is constantly monitored by the MC3PHAC and may be changed while the motor is running. Acceleration time is specified to the MC3PHAC by supplying a voltage to pin 27. The value of the voltage at the wiper of trim pot R8 determines acceleration time. Acceleration time can be specified, with a scaling factor of 25.6 Hz/volt. To set the acceleration time: a. Connect the ground lead of a DVM to the AGND (TP6) test point, located to the right center top of the reference PC board. b. Connect the positive lead of the DVM to the test point marked ACCEL (TP8), located at the upper right top of the reference PC board. The voltage will be in the range from 0 to ~5 volts. c. Adjust the ACCEL (R6) trim pot between 0 and ~5 volts to correspond to an acceleration range from 0.5 Hz/sec to 128 Hz/sec. 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 25 Freescale Semiconductor, Inc. Introduction and Setup The remainder of the setup procedure for standalone mode will be completed with power removed from both the optoisolation board and the power stage. 16. Turn off the high voltage and the 12-volt power supplies. Freescale Semiconductor, Inc... 17. Jumper header block JP1 is used to set the maximum frequency applied to the motor. The synchronous motor frequency can be specified in real time to be between 1 Hz to 128 Hz by the voltage output from the SPEED potentiometers. The scaling factor is 25.6 Hz/volt. Jumper JP1, located just above the SPEED potentiometers, sets the maximum frequency. To set the frequency limit: a. Place a jumper on JP1 to obtain 0-Hz to 128-Hz motor frequency. b. Remove the jumper from JP1 to obtain 0- to ~66-Hz motor frequency. 18. The MC3PHAC produces 50-Hz or 60-Hz base frequency and outputs positive or negative PWM (pulse-width modulated) polarities. Two jumper header blocks are resident on the reference PC board. These two jumper blocks, JP7 and JP9 (located to the lower left center of the reference PC board), provide the choice of positive PWM polarity at 50-Hz or 60-Hz base frequencies, respectively. Two unpopulated jumper block positions (JP6 and JP8) are located on the reference’s PC board to accommodate two additional header blocks. These two unpopulated jumper blocks provide the choice of negative PWM polarity at 50-Hz or 60-Hz base frequencies, respectively. Because the reference PC board is intended to operate with the embedded motion control series of development tools, only the positive PWM polarity jumper headers are installed. CAUTION: Designer Reference Manual 26 Applying the improper polarity to a power stage could destroy it. Regardless of the system configuration, only one jumper can be applied to headers JP6–JP9. 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Introduction and Setup Setup Guide To set the PWM polarity and base frequencies: a. Place a jumper on JP7 for 50-Hz positive polarity PWM operation. b. Place a jumper on JP9 for 60-Hz positive polarity PWM operation. Freescale Semiconductor, Inc... Eight square trim pots are located at the top of the reference PC board. These must be set prior to using the system in standalone mode. Trim pots R1–R3 and R6 have been adjusted already. The trim pots control VBus limit (R1), VBus gain (R2), temp limit (R3), and retry time (R6). 19. Set the DVM to its resistance setting. The resistance values in the following procedures will be in the range of 0 to 50 kΩ. Connect one lead of the DVM to the test point labeled SETUP (TP7). That lead will remain in place on TP7 for the remainder of the setup procedure. 20. Remove all jumpers from JP2–JP5. 21. DEAD TIME trim pot R5 sets the dead time between the “on” states of the complementary PWM pairs to be specified. The range in standalone mode is 0.5 µs to 6.0 µs. In standalone mode, dead time is specified during the initialization phase of the MC3PHAC by supplying a voltage to pin 25 of the MC3PHAC pin while pin 19 of the MC3PHAC is driven low. In this way, dead time can be specified from 0.5 µs to 6.0 µs, with a scaling factor of 2.075 µs/volt. The value of the voltage at the wiper of trim pot R5 determines dead time. To set the dead time: a. Connect the loose lead of the DVM to JP3 pin 3. b. Adjust the DEAD TIME trim pot, R5, to the required resistance for the desired dead time (see Figure 1-6). When using the power stage described in this manual, set the dead time for 2.5 µs, which will be approximately 2200 Ω. c. Remove the lead of the DVM from JP3 pin 3. 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 27 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Introduction and Setup Figure 1-6. Dead Time vs. Resistance 22. RETRY TIME trim pot R6 sets the time between a system fault being cleared and the time when the system will re-enable the PWM outputs. The retry time range in standalone mode is 1 second to ~53 seconds. In standalone mode, retry time is specified during the initialization phase of the MC3PHAC by supplying a voltage to pin 25 of the MC3PHAC pin while pin 17 of the MC3PHAC is driven low. In this way, retry time can be specified with a scaling factor of 12 sec/volt. The value of the voltage at the wiper of trim pot R6 determines the retry time. To set the retry time: a. Connect the loose lead of the DVM to JP4 pin 3. b. Adjust the RETRY TIME trim pot, R6, to the required resistance for the desired retry time (see Figure 1-7). For example, set the retry time to 15 seconds, which will be approximately 2200 Ω. c. Remove the lead of the DVM from JP4 pin 3. Designer Reference Manual 28 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Introduction and Setup Setup Guide Figure 1-7. Retry Time vs. Resistance 23. PWM FREQ trim pot R7 sets the system’s PWM base frequency. The system accommodates four discrete PWM base frequencies. Unlike trim pots R4–R6, the PWM frequency trim pot is constantly monitored by the MC3PHAC and may be changed while the motor is running. In standalone mode, PWM frequency is input to the MC3PHAC by supplying a voltage to pin 25 of the MC3PHAC while pin 16 of the MC3PHAC is driven low. The value of the voltage at the wiper of trim pot R7 determines PWM frequency. Table 1-1 shows the required resistance levels on the PWM FREQ trim pot for the system to produce the various PWM base frequencies. The PWM frequencies are based on a 4.00-MHz frequency provided to the oscillator input pin of the MC3PHAC. To set the PWM base frequency: a. Connect the loose lead of the DVM to JP5 pin 3. b. Adjust the PWM FREQ trim pot R7 to the required resistance for PWM frequency (see Table 1-1). For example, set the PWM frequency to 15.873 kHz which will be 12,000 Ω. The resistance tolerance of this setting can be ±15 percent and still be within range. c. Remove the lead of the DVM from JP5 pin 3. 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 29 Freescale Semiconductor, Inc. Introduction and Setup Freescale Semiconductor, Inc... Table 1-1. Resistance and Corresponding PWM Frequencies PWM Frequency Resistance PWM Frequency 1000 Ω 5.291 kHz 3900 Ω 10.582 kHz 12,000 Ω 15.873 kHz 43,000 Ω 21.164 kHz 24. VOLTAGE BOOST trim pot R4 sets the voltage boost to be specified as a percentage of full voltage at 0 Hz. In standalone mode, voltage boost is specified during the initialization phase of the MC3PHAC by supplying a voltage to pin 25 of the MC3PHAC pin while pin 20 of the MC3PHAC is driven low. In this way, voltage boost can be specified from 0 percent to 35 percent, with a scaling factor of 8 percent per volt. The value of the voltage at the wiper of trim pot R4 determines voltage boost. To set the voltage boost: a. Connect the loose lead of the DVM to JP2 pin 3. b. Adjust the VOLTAGE BOOST trim pot, R4, to the required resistance for the desired percent voltage boost (see Figure 1-8). For example, set the voltage boost to 20 percent, which will be approximately 6800 Ω. c. Remove the lead of the DVM from JP2 pin 3. Designer Reference Manual 30 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Introduction and Setup Setup Guide Figure 1-8. Voltage Boost vs. Resistance 25. Place jumpers on pins 2 to 3 of JP2–JP5. No other pins on JP2–JP5 can be shorted in standalone mode. 26. This completes control board setup. CAUTION: Hazardous voltages are present. Re-read all of 1.6 Warnings carefully. 3-Phase AC Industrial Motor Controller MOTOROLA Introduction and Setup For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 31 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Introduction and Setup Designer Reference Manual 32 3-Phase AC Industrial Motor Controller Introduction and Setup For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Section 2. Operational Description Freescale Semiconductor, Inc... 2.1 Contents 2.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 2.3 Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4 User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4.1 Potentiometers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 2.4.2 Switches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 2.4.3 Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 2.4.4 Indicator Lights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.4.5 Test Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 2.4.6 Optoisolated RS232 Interface . . . . . . . . . . . . . . . . . . . . . . .40 2.2 Introduction The reference PC board, utilizing the MC3PHAC integrated circuit, is designed to provide control signals for 3-phase ac induction motors. In combination with the embedded motion control series power stages and an optoisolation board, it provides a platform for evaluating the MC3PHAC. User control inputs are accepted from START/STOP switches, FWD/REV switches, and a SPEED potentiometer located on the reference design PC board. Alternatively, motor commands can be entered via a PC and transmitted over a serial cable to DB-9 connector J2. Output connections and power stage feedback signals are grouped together on 40-pin ribbon cable connector J1. Power for operation of the reference PC board is supplied through the 40-pin ribbon cable from the optoisolation board. Figure 2-1 shows a block diagram of the reference board’s circuitry. 3-Phase AC Industrial Motor Controller MOTOROLA Operational Description For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 33 Freescale Semiconductor, Inc. Operational Description SETUP POTS SPEED POT TERMINAL I/F RESET SWITCH OPTO/POWER DRIVER I/O CONNECTOR FORWARD/REVERSE SWITCH MC3PHAC REGULATED POWER SUPPLY OPTOISOLATED RS232 I/F Freescale Semiconductor, Inc... START/STOP SWITCH BRAKE CONTROL PWM (6) OUTPUTS VOLTAGE/TEMP SENSE INPUTS MISC. POWER AND GROUNDS 40-PIN RIBBON CONNECTOR DC POWER 12 Vdc TO 18 Vdc Figure 2-1. Reference PC Board Block Diagram A summary of the information needed to use the reference PC board is presented in these sections. A discussion of the design appears in Section 5. Design Considerations. Designer Reference Manual 34 3-Phase AC Industrial Motor Controller Operational Description For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Operational Description Electrical Characteristics 2.3 Electrical Characteristics The electrical characteristics in Table 2-1 apply to operation of the MC3PHAC reference PC board at 25°C. Table 2-1. Electrical Characteristics Freescale Semiconductor, Inc... Characteristic Symbol Min Typ Max Units dc power supply voltage Vdc 10.8(1) 12(1) 16.5(1) V Quiescent current ICC — 80 — mA Min logic 1 input voltage VIH 2.0 — — V Max logic 0 input voltage VIL — — 0.8 V Analog input range VIN 0 — 5.0 V RS232 connection speed — 9504 9600 9696 Baud 1. When operated and powered separately from other embedded motion control toolset products 2.4 User Interfaces The MC3PHAC reference PC board has several user interfaces. They include an optoisolated RS232 serial interface, potentiometers, switches, jumpers, indicator LEDs, and test points. Descriptions for each of these interfaces follow. 2.4.1 Potentiometers Nine potentiometers are provided on the reference PC board for system operation and setup. When the PC board is used in PC master software mode, three of the potentiometers are used by the reference PC board’s hardware. These are the VBus LIMIT, VBus GAIN, and TEMP LIMIT potentiometers. The potentiometers are listed here. • R17: SPEED — R17, labeled SPEED, is the speed control potentiometer. When the system is operated in standalone mode, speed control defaults to R17. Clockwise rotation increases motor speed. Jumper JP1 is used in concert with the SPEED potentiometers. When JP1 is shorted, the speed range is 0 to 3-Phase AC Industrial Motor Controller MOTOROLA Operational Description For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 35 Freescale Semiconductor, Inc. Operational Description Freescale Semiconductor, Inc... 128 Hz. When JP1 is removed, the speed range is 0 to ~66 Hz. When operating in PC master software mode, speed control commands are sent over the RS232 interface. In PC master software mode, R17 may be monitored but its position has no control over the motor. In future implementations of PC master software, R17 could be used to control the motor’s speed. Designer Reference Manual 36 • R8: ACCEL — Acceleration control is set by trim potentiometer R8 (ACCEL). Clockwise rotation increases the motor’s acceleration rate. • R1: VBus LIMIT — The overvoltage fault threshold is set by trim potentiometer R1 (VBus LIMIT). Clockwise rotation increases the threshold. R1 is used in concert with trim potentiometer R2, VBus GAIN. • R2: VBus GAIN — The voltage bus gain trim potentiometer, R2 (VBus GAIN), divides the high-voltage bus feedback that is input from the optoisolator board or power board. Its output then drives a gain-of-three amplifier which provides a bus voltage representation to the MC3PHAC and also drives the overvoltage fault input. Clockwise rotation increases gain. • R3: TEMP LIMIT — The high-temperature fault threshold is set by trim potentiometer R3 (TEMP LIMIT). Clockwise rotation increases the high-temperature threshold fault point. • R4: VOLTAGE BOOST — The voltage boost trim potentiometer, R4 (VOLTAGE BOOST), is used as an input to the MC3PHAC. It sets the low-frequency voltage boost characteristic. Clockwise rotation increases voltage boost. • R5: DEAD TIME — The dead time trim potentiometer, R5 (DEAD TIME), is used to set the complementary top-to-bottom transition delay time. The range of dead time in standalone operation is 0.5 µs to 6.0 µs. Clockwise rotation increases dead time. • R6: RETRY TIME — The retry time trim potentiometer, R6 (RETRY TIME), sets the time between a system fault being cleared and the time when the system will re-enable the PWM outputs. Retry range in standalone mode is 1 second to ~53 seconds. Clockwise rotation increases fault retry time. 3-Phase AC Industrial Motor Controller Operational Description For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Operational Description User Interfaces • R7: PWM FREQ — The PWM frequency trim potentiometer sets the PWM frequency. Depending on the position of the trim potentiometer, the PWM frequency choices are 5.291 kHz, 10.582 kHz, 15.873 kHz, and 21.164 kHz. Clockwise rotation increases PWM frequency. 2.4.2 Switches Freescale Semiconductor, Inc... Three switches provide for user inputs. They are listed here. • SW1: START/STOP — SW1, START/STOP, is a toggle switch located on the left-hand side of the board. It starts and stops the motor when the system is operated in standalone mode. Switching it up (toward the top of the board) turns the motor on, and switching it down stops it. In PC master software mode, the START/STOP switch may be monitored, but its position has no control over the motor. In future implementations of PC master software, SW1 could be used to start or stop the motor. • SW2: FWD/REV — SW2, FWD/REV, is a toggle switch located to the right of the START/STOP. It controls direction of the motor when the system is operated in standalone mode. Positioning it up (toward the top of the board) runs the motor forward; switching it down runs it in reverse. In PC master software mode, the FWD/REV switch may be monitored, but its position has no control over the motor. In future implementations of PC master software, SW2 could be used to change direction of the motor. • SW3: RESET — SW3, the RESET switch, is a push button located near the lower center of the board. It resets the MC3PHAC in standalone and PC master software modes. 3-Phase AC Industrial Motor Controller MOTOROLA Operational Description For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 37 Freescale Semiconductor, Inc. Operational Description 2.4.3 Jumpers Freescale Semiconductor, Inc... There are 10 jumpers: JP1–JP10. Jumper JP1 is located on the upper-left corner of the PC board, just above the SPEED potentiometers. JP2 through JP5 are grouped near the upper center of the PC board. JP6 through JP9 are located above and to the right of the FWD/REV switch. JP10 is located near the bottom right-hand side of the PC board and to the left of the 40-pin ribbon cable connector. They are described here. Designer Reference Manual 38 • JP1 — Jumper JP1 is used to set the frequency range of the six PWM outputs. When JP1 is shorted, the speed range is 0 to 128 Hz. When JP1 is removed, the speed range is 0 to ~66 Hz. • JP2 — Jumper JP2 is a 4-position jumper header. When shorted between positions 1 and 2, the MC3PHAC is set to run in PC master software mode. When shorted between positions 2 and 3, the MC3PHAC is set to run in standalone mode. In standalone mode, the voltage boost trim potentiometer is connected to the MC3PHAC’s pin 20. Positions 3 and 4 are unused. • JP3 — Jumper JP3 is a 4-position jumper header. When shorted between positions 1 and 2, the MC3PHAC is set to run in PC master software mode and the fault LED is connected to the MC3PHAC’s fault output. When shorted between positions 2 and 3, the MC3PHAC is set to run in standalone mode. In standalone mode, the dead time trim potentiometer is connected to the MC3PHAC’s pin 19. Positions 3 and 4 are unused. • JP4 — Jumper JP4 is a 4-position jumper header. When shorted between positions 1 and 2, the MC3PHAC is set to run in PC master software mode and the serial output of the MC3PHAC is connected to the optoisolated RS232 transmit optoisolator. When shorted between positions 2 and 3, the MC3PHAC is set to run in standalone mode. In standalone mode, the retry time trim potentiometer is connected to the MC3PHAC’s pin 17. Positions 3 and 4 are unused. • JP5 — Jumper JP5 is a 4-position jumper header. When shorted between positions 1 and 2, the MC3PHAC is set to run in PC master software mode and the serial input of the MC3PHAC is connected to the optoisolated RS232 receive optoisolator. When 3-Phase AC Industrial Motor Controller Operational Description For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Operational Description User Interfaces Freescale Semiconductor, Inc... JP5 is shorted between positions 2 and 3, the MC3PHAC is set to run in standalone mode. In standalone mode, the PWM frequency trim potentiometer is connected to the MC3PHAC’s pin 18. Positions 3 and 4 are unused. • JP6 through JP9 — Jumpers JP6 through JP9 are 2-position jumper headers. Only one of these jumpers may be installed at any given time. The jumpers set the PWM frequency at 50 Hz or 60 Hz, positive or negative PWM polarity. Only jumper blocks JP7 and JP9 are populated on the PC board. • JP10 — Jumper JP10 is used to prevent ground loops when the analog ground reference originates on an external PC board, as in the case with the optoisolation PC board. In normal operation, this jumper is removed. JP10 is installed if the reference PC board is self-powered and running without a power module or optoisolation board connected to J1. 2.4.4 Indicator Lights Three LEDs located on the control board provide status information to the user. The power-on LED, D6, is located to the right of the FWD/REV switch. The fault LED, D1, is located just above and to the right of the SPEED potentiometers. The brake LED, D2, is located to the right of the fault LED. Descriptions are listed here. • D1: Fault (Red) — D1 illuminates when a fault has occurred. • D2: Brake (Yellow) — D2 illuminates when the MC3PHAC energizes the resistive brake. • D6: Power On — D6, labeled POWER, illuminates when power is applied to the board. 2.4.5 Test Points A variety of test points are provided to facilitate measurements with a DVM or an oscilloscope. They are listed in Table 2-2. 3-Phase AC Industrial Motor Controller MOTOROLA Operational Description For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 39 Freescale Semiconductor, Inc. Operational Description Freescale Semiconductor, Inc... Table 2-2. Test Points Label Location Signal Name Connected To SPEED Upper-left edge (TP1) SPEED MC3PHAC PIN 26 VBus Upper-left edge (TP2) VBus MC3PHAC PIN 28 VBus LIMIT Upper-left edge (TP3) VBus LMT U1B Pin 6 TEMP Upper-edge center (TP4) TEMP U1A Pin 2 TEMP LIMIT Upper-edge center (TP5) TEMP LMT U1A Pin 3 AGND Upper-edge center (TP6) AGND AGND SETUP Upper-right edge (TP7) Setup MC3PHAC Pin 25 ACCEL Upper-right edge (TP8) Accel. input MC3PHAC Pin 27 DGND Upper-right edge (TP9) DGND DGND PWM6 Right-center edge (TP10) PWM6 MC3PHAC Pin 14 PWM5 Right-center edge (TP11) PWM5 MC3PHAC Pin 13 PWM4 Right-center edge (TP12) PWM4 MC3PHAC Pin 12 PWM3 Right-center edge (TP13) PWM3 MC3PHAC Pin 11 TP14 Center (TP14) Fault MC3PHAC Pin 15 PWM2 Right-center edge (TP15) PWM2 MC3PHAC Pin 10 PWM1 Right-center edge (TP16) PWM1 MC3PHAC Pin 9 2.4.6 Optoisolated RS232 Interface An optoisolated RS232 interface is available via DB-9 connector J2. It connects to the serial port of a Windows®-based PC, or any microcontroller emulating the PC master software interface, and enables motor commands to be entered via PC master software. Control is transferred to the serial interface on reset with JP2 pins 1 and 2 shorted. ® Windows is a registered trademark of Microsoft Corporation in the United States and/or other countries. Designer Reference Manual 40 3-Phase AC Industrial Motor Controller Operational Description For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Section 3. Pin Descriptions 3.1 Contents Freescale Semiconductor, Inc... 3.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 3.3 Control Board Signal Descriptions . . . . . . . . . . . . . . . . . . . . . .41 3.3.1 40-Pin Connector J1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 3.3.2 Optoisolated RS232 DB-9 Connector J2 . . . . . . . . . . . . . . .45 3.3.3 Power Connector J3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 3.2 Introduction Three connectors are resident on the control board, labeled J1 through J3. They are: • J1 — 40-pin ribbon cable connector • J2 — RS232 DB-9 connector • J3 — Power jack 3.3 Control Board Signal Descriptions The following subsections describe signals on control board connectors J1 through J3. 3.3.1 40-Pin Connector J1 Signals to and from an optoisolation board or power stage are grouped together on 40-pin ribbon cable connector J1. Pin assignments are shown in Figure 3-1. In this figure, a schematic representation appears on the left, and a physical layout of the connector appears on the right. Pin descriptions are listed in Table 3-1. 3-Phase AC Industrial Motor Controller MOTOROLA Pin Descriptions For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 41 Freescale Semiconductor, Inc. Pin Descriptions Freescale Semiconductor, Inc... J5 BEMF_sense_C BEMF_sense_B BEMF_sense_A Shielding Zero_cross_C Zero_cross_B Zero_cross_A PFC_z_c PFC_inhibit PFC_PWM Serial_Con Brake_control Shielding Temp_sense I_sense_C I_sense_B I_sense_A I_sense_DCB V_sense_DCB_5 –12/15V_A +12/15V_A GNDA GNDA +3.3V analog +5V digital +5V digital GND GND PWM_CB Shielding PWM_CT Shielding PWM_BB Shielding PWM_BT Shielding PWM_AB Shielding PWM_AT 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 PWM_AT PWM_AB PWM_BT PWM_BB PWM_CT PWM_CB GND_PS +5V_D GNDA +12/15V_A V_sense_DCB I_sense_A I_sense_C Brake control PFC_PWM PFC_z_c Zero_cross_B Shielding BEMF_sense_B 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 Shielding Shielding Shielding Shielding Shielding GND +5V_D +3.3V_A GNDA –12/15V_A I_sense_DCB I_sense_B Temp_sense Shielding Serial_Con PFC_inhibit Zero_cross_A Zero_cross_C BEMF_sense_A BEMF_sense_C PHYSICAL VIEW AS VIEWED FROM THE TOP CON40 SCHEMATIC VIEW Figure 3-1. 40-Pin Ribbon Connector J1 Designer Reference Manual 42 3-Phase AC Industrial Motor Controller Pin Descriptions For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Pin Descriptions Control Board Signal Descriptions Freescale Semiconductor, Inc... Table 3-1. 40-Pin Ribbon Connector J1 Pin No. Signal Name 1 PWM_AT PWM_AT is the gate drive signal for the top half-bridge of phase A. A logic high turns phase A’s top switch on. PWM_AT is connected to PWM_U_TOP on the MC3PHAC. 2 Shielding Pin 2 is not connected. The ribbon cable pin 2 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 3 PWM_AB PWM_AB is the gate drive signal for the bottom half-bridge of phase A. A logic high turns phase A’s bottom switch on. PWM_AB is connected to PWM_U_BOP on the MC3PHAC. 4 Shielding Pin 4 is not connected. The ribbon cable pin 4 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 5 PWM_BT PWM_BT is the gate drive signal for the top half-bridge of phase B. A logic high turns phase B’s top switch on. PWM_BT is connected to PWM_V_TOP on the MC3PHAC. 6 Shielding Pin 6 is not connected. The ribbon cable pin 6 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 7 PWM_BB PWM_BB is the gate drive signal for the bottom half-bridge of phase B. A logic high turns phase B’s bottom switch on. PWM_BB is connected to PWM_V_BOT on the MC3PHAC. 8 Shielding Pin 8 is not connected. The ribbon cable pin 8 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 9 PWM_CT PWM_CT is the gate drive signal for the top half-bridge of phase C. A logic high turns phase C’s top switch on. PWM_CT is connected to PWM_W_TOP on the MC3PHAC. 10 Shielding Pin 10 is not connected. The ribbon cable pin 10 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 11 PWM_CB PWM_CB is the gate drive signal for the bottom half-bridge of phase C. A logic high turns phase C’s bottom switch on. PWM_CB is connected to PWM_W_BOT on the MC3PHAC. 12 GND Digital power supply ground 13 GND Digital power supply ground, redundant connection 14 +5V_D 15 +5V digital 16 +3.3V analog 17 GNDA Description Digital +5-volt power supply Digital +5-volt power supply, redundant connection Unused Analog power supply ground 3-Phase AC Industrial Motor Controller MOTOROLA Pin Descriptions For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 43 Freescale Semiconductor, Inc. Pin Descriptions Table 3-1. 40-Pin Ribbon Connector J1 Signal Name 18 GNDA 19 +12/15V_A Unused analog +12-volt to +15-volt power supply 20 +12/15V_A Unused analog +12-volt to +15-volt power supply 21 V_sense_DCB_5 22 I_sense_DCB Unused analog sense signal 23 I_sense_A Unused analog sense signal 24 I_sense_B Unused analog sense signal 25 I_sense_C Unused analog sense signal 26 Temp_sense Temp_sense is an analog sense signal that measures the power stage’s substrate temperature. 27 Shielding Pin 27 is not connected. The ribbon cable pin 27 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 28 Shielding Pin 28 is not connected. The ribbon cable pin 28 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 29 Brake_control 30 Serial_Con Pin 30: Unused Serial_Con, normally used to identify the type of board connected to the control board 31 PFC_PWM Unused 32 PFC_inhibit Unused 33 PFC_z_c Unused 34 Zero_cross_A Unused 35 Zero_cross_B Unused 36 Zero_cross_C Unused 37 Shielding 38 BEMF_sense_A Unused 39 BEMF_sense_B Unused 40 BEMF_sense_C Unused Freescale Semiconductor, Inc... Pin No. Designer Reference Manual 44 Description Analog power supply ground, redundant connection V_sense_DCB is an analog sense signal that measures the power board’s dc bus voltage. V_sense_DCB_5 is connected to the DC_BUS input pin on the MC3PHAC. Brake_control is the gate drive signal for the power board’s brake transistor. Brake_control is connected to the RBRAKE output pin on the MC3PHAC. Pin 37 is not connected. The ribbon cable pin 37 is grounded on the optoisolation PC board. That ground helps prevent cross talk between adjacent signals. 3-Phase AC Industrial Motor Controller Pin Descriptions For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Pin Descriptions Control Board Signal Descriptions 3.3.2 Optoisolated RS232 DB-9 Connector J2 The RS232 DB-9 connector, J2, is a 9-pin female connector for serial communications with a PC. It has standard RS232 pinouts. The schematic Figure 4-3 shows J2 at the top-center of the page. Pinouts are listed in Table 3-2. Freescale Semiconductor, Inc... Table 3-2. Optoisolated RS232 DB-9 Connector J2 Pin No. Signal Name 1 Unused 2 RXD Data received by the PC from the control board 3 TXD Data transmitted from the PC to the control board 4 DTR PC indicates that it is ready to receive data. 5 GND Common ground reference 6 Unused 7 RTS 8 Unused N/A 9 Unused N/A Description N/A N/A PC requests to send data to the control board. 3.3.3 Power Connector J3 A power connector, J3, is a 2.1-mm power jack that provides connection to a 12-volt dc power supply. This power input connector is used only when the control board is operating independently from other boards in the embedded motion control toolset. 3-Phase AC Industrial Motor Controller MOTOROLA Pin Descriptions For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 45 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Pin Descriptions Designer Reference Manual 46 3-Phase AC Industrial Motor Controller Pin Descriptions For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Section 4. Schematics and Parts List Freescale Semiconductor, Inc... 4.1 Contents 4.2 Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47 4.3 Parts Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 4.2 Schematics A set of schematics for the reference PC board appears in Figure 4-1 through Figure 4-3. Unless otherwise specified, resistors are 1/4 watt, have a ±5 percent tolerance, and have values shown in ohms. Interrupted lines coded with the same letters are electrically connected. 3-Phase AC Industrial Motor Controller MOTOROLA Schematics and Parts List For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 47 Freescale Semiconductor, Inc. A B C D E +5V (A) +5V (A) TP1 TP7 R14 Acceleration Input JP7 4.7k R29 Speed Input Base speed = 60 Hz, - PWM polarity 2-PIN JUMPER R17 A A 2 4.7k JP6 C13 .1 uF 5.1K 3 JP8 Base speed = 50 Hz, + PWM polarity 5.0k 3 4 5 6 7 R30 10M 8 C6 .1 uF X1 4MHz A PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 9 10 11 12 13 14 Vdda Vssa 24 START 23 FWD OSC2 OSC1 PLLCAP 22 21 Vss Vdd PWMPOL_BASEFREQVBOOST_MODE DT_FAULTOUT PWM_U_Top RBRAKE PWM_U_Bot PWM_V_Top RETRY/Txd PWM_V_Bot PWMFREQ/ Rxd PWM_W_Top PWM_W_Bot FAULTIN C9 .022 uF C7 .022 uF A A A 3 10k 1 2 3 SW2 Fwd/Rev 20 19 18 Voltage Boost / PCMaster Select Dead-Time / Fault Out R Brake 17 16 Spd Range / Retry / TxD PWM Frequency / RxD 1 4 R4 1 50k 3 Voltage Boost Open 15 D1 2 Fault R20 JP3 1 4 R5 1 R18 50k 3 Dead Time +5V Red LED A Start/Stop R33 JP2 +5V U2 PWM[1:6] SW1 3 10k 2 3 RESET C8 .022 uF 2 3 2 2 +5V 28 DC_BUS 27 ACCEL 26 SPEED 25 MUX_IN Vref 2 3 1 1 R32 MC3PHAC +5V (A) 1 Base speed = 50 Hz, - PWM polarity 2 SW3 Reset Open R16 Vbus JP1 1 Base speed = 60 Hz, + PWM polarity R11 1 JP9 R35 10k 1k Open 2 R21 4 R6 1 2 2 3 JP4 1 50k 3 Speed Range Open R12 SCI TxD D2 R19 R Brake 1k Yellow LED 1 1 4 R7 1 2 JP5 2 3 Freescale Semiconductor, Inc... 4 R8 5.0k 2 2 TP8 SPEED TP2 6.8k 1 2 R22 ACCELERATION +5V 3 +5V (A) Open R15 4 50k 3 1 PWM Frequency Open R13 SCI RxD A B C D For More Information On This Product, Go to: www.freescale.com E Freescale Semiconductor, Inc. D TP10 TP11 TP12 TP13 4 C TP15 B TP16 A E +5V (A) TP5 R3 R9 PWM6 2 PWM5 PWM4 PWM3 4 A +5V (A) TP14 4 TP4 3 R28 U1A + 2 D4 1 11 MC3320 4 PWM[1:6] Fault - 10K C4 0.1uF R Brake 1N4148 A A +5V (A) 3 TP3 4 3 +5V (A) D5 5 R1 50k 2 +5V Bus voltage limit MC3320 4 11 3 R27 10 + 9 - 10K PWM5 A U1C 8 PWM2 R24 Vbus 2 3.3k MC3320 4 A 10K A 4 R2 50k 2 VBUS GAIN PWM3 R23 +5V (A) +5V PWM4 1N4148 1 10K PWM6 7 - 1N4148 A D3 U1B + 6 R31 11 R26 A R25 22K 22K C2 4700 pF A +5V (A) A PWM1 4 CON/40 PWM[1:6] C3 0.1uF 1 12 + 13 - U1D 14 MC3320 4 11 2 5.0k Temperature limit 1 Freescale Semiconductor, Inc... 3 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 PWM2 PWM1 J1 BEMF_sense_C BEMF_sense_B BEMF_sense_A Sheilding Zero_cross_C Zero_cross_B Zero_cross_A PFC_z_c PFC_inhibit PFC_PWM Serial_Con Brake_control Sheilding Sheilding Temp_sense I_sense_C I_sense_B I_sense_A I_sense_DCB V_sense_DCB_5 -15V analog +15V analog GNDA GNDA +3.3V analog +5V digital +5V digital GND GND PWM_CB Sheilding PWM_CT Sheilding PWM_BB Sheilding PWM_BT Sheilding PWM_AB Sheilding PWM_AT 3 R10 15K 1 22K 1 A A B C D For More Information On This Product, Go to: www.freescale.com E Freescale Semiconductor, Inc. A B C D9 1N4148 D R36 1k +5V U3 4N35 4 D14 1N4148 J2 GND DTR TXD RTS RXD 4 1 4 2 5 R37 1k SCI RxD + 5 9 4 8 3 7 2 6 1 E D10 1N4148 R39 4.7k C17 2.2uF/35V 4 1 5 2 R38 +5V 330 CON/CANNON9 Female (+12V) SCI TxD U4 4N35 Isolation Barrier 3 3 RS232 isolated (Half Duplex, max 9600 Bd) 12-15V DC or AC Input D11 1N4004 D16 1N4004 +5V -V -V +V 2 D15 1N4004 3 U5 1 IN + 2 1 D12 1N4004 C14 .1uF 1N4148 OUT D7 1N4148 3 GND C16 10uF/35V D8 MC7805 C15 C5 C11 .1uF .1 uF .1 uF TP9 2 2 JP10 GND_Connection D13 1N4004 A For on-board power supply use, short JP9 +5V F1 3 R34 1k C12 1uF 1 A D6 1 +5V (A) C1 1uF 2 Freescale Semiconductor, Inc... TP6 J3 Power Jack C10 .1uF A 1 GREEN LED A B C D For More Information On This Product, Go to: www.freescale.com E Freescale Semiconductor, Inc. Schematics and Parts List Parts Lists 4.3 Parts Lists The MC3PHAC PC reference board parts content is described in Table 4-1. Table 4-1. Reference PC Board Parts List (Sheet 1 of 3) Freescale Semiconductor, Inc... Designators Description(1) Qty Manufacturer Part Number C2 1 4700 pF Digi-Key P4902-ND C1, C3, C4, C5, C6, C10, C11, C12, C13, C14, C15 11 0.1-µF capacitor Digi-Key P4910-ND C7, C8, C9 3 0.022 µF Digi-Key P4906-ND C16 1 10-µF capacitor @ 50 Vdc Digi-Key P5567-ND C17 1 2.2-µF capacitor @ 50 Vdc Digi-Key P5564-ND D1 1 Red LED Digi-Key 160-1081-ND D2 1 Yellow LED Digi-Key 160-1082-ND D6 1 Green LED Digi-Key 160-1083-ND D3, D4, D5, D7, D8, D9, D10, D14 8 1N4148 small signal diode Digi-Key 1N4148DICT-ND D11, D12, D13, D15, D16 5 Diode Digi-Key 1N4004MSCT-ND F1 1 3-pin filter Digi-Key P9809CT-ND J1 1 40-pin shrouded connector Digi-Key A26279-ND J2 1 DB-9 Digi-Key A23301-ND J3 1 Power connector Digi-Key SC1152-ND JP2, JP3, JP4, JP5 4 1x4 pin header (2) Digi-Key S1011-36-ND JP1, JP7, JP9, JP10 4 1x2 pin header (2) Digi-Key S1011-36-ND JP6, JP8 0 1x2 pin header — not installed N/A N/A 3-Phase AC Industrial Motor Controller MOTOROLA Schematics and Parts List For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 51 Freescale Semiconductor, Inc. Schematics and Parts List Table 4-1. Reference PC Board Parts List (Sheet 2 of 3) Freescale Semiconductor, Inc... Designators Description(1) Qty Manufacturer Part Number R18, R19, R36, R37 4 1-kΩ resistor Digi-Key 1.0KQBK-ND R11, R14, R29, R39 4 4.7-kΩ resistor Digi-Key 4.7KQBK-ND R22, R26 2 6.8-kΩ resistor Digi-Key 6.8KQBK-ND R34 1 470-Ω resistor Digi-Key 470QBK-ND R12, R13, R15, R16, R20, R21 0 Resistors — not installed N/A N/A R1, R2, R4, R6, R7 5 50-kΩ trim potentiometer Digi-Key 3386F-503-ND R5 1 10-kΩ trim potentiometer Digi-Key 3386F-103 R3, R8 2 5-kΩ trim potentiometer Digi-Key 3386F-502-ND R17 1 5-kΩ potentiometer Digi-Key 392JB-502-ND R9, R25 2 22-kΩ resistor Digi-Key 22KQBK-ND R38 1 330-Ω resistor Digi-Key 330QBK-ND R23, R27, R28, R31, R32, R33, R35 8 10-kΩ resistor Digi-Key 10KQBK-ND R30 1 10-MΩ resistor Digi-Key 10MQBK-ND R10 1 15-kΩ resistor Digi-Key 15KQBK-ND R24 1 3.3-kΩ resistor Digi-Key 3.3KQBK-ND SW1, SW2 2 SPDT toggle switch NKK M2012SS1G03 SW3 1 Momentary push button switch Digi-Key CKN9009-ND TP6, TP9 2 Test point black Digi-Key 5006K-ND TP1, TP2, TP3, TP4, TP5, TP7, TP8 7 Test point red Digi-Key 5005K-ND TP10, TP11, TP12, TP13, TP14, TP15, TP16 7 Test point white Digi-Key 5007K-ND Designer Reference Manual 52 3-Phase AC Industrial Motor Controller Schematics and Parts List For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Schematics and Parts List Parts Lists Table 4-1. Reference PC Board Parts List (Sheet 3 of 3) Freescale Semiconductor, Inc... Designators Description(1) Qty Manufacturer Part Number U2 1 MC3PHAC Motorola MC3PHACVP U3, U4 2 4N35 optocoupler Digi-Key 4N35QT-ND U5 1 Fixed 5-V regulator Digi-Key UA7805CKC U1 1 Quad operational amplifier National LMC6484N X1 1 4.00-MHz resonator Digi-Key X902-ND XU2 1 28-pin socket for U2 Digi-Key A409-ND No designator 1 0.25-inch 4-40 screw for U5 Any N/A No designator 1 4-40 nut for U5 Any N/A No designator 5 Stick-on rubber feet Digi-Key SJ5003-0-ND Bare PCB 1 ASB509 bare PCB DS Electronics N/A No designator 7 Shunts for JP1–JP5, PJ9, JP10 Digi-Key S9000-ND 1. All resistors are 1/4 W with a tolerance of 5% unless otherwise noted. 2. Shipped in strips of 36 x 1 cut to length 3-Phase AC Industrial Motor Controller MOTOROLA Schematics and Parts List For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 53 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Schematics and Parts List Designer Reference Manual 54 3-Phase AC Industrial Motor Controller Schematics and Parts List For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Designer Reference Manual — 3-Phase AC Industrial Motor Controller Section 5. Design Considerations Freescale Semiconductor, Inc... 5.1 Contents 5.2 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 5.3 Dead Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 5.4 Power-Up/Power-Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.5 Grounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.6 Fault Circuits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 5.7 On-Board Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 5.8 Optoisolated RS232 Interface. . . . . . . . . . . . . . . . . . . . . . . . . .60 5.2 Overview Motor drive systems have a number of important design considerations related to noise management and protection of the power transistors. Some of the considerations are dead time, power-up/power-down, and grounding. These design considerations are discussed in 5.3 Dead Time through 5.5 Grounding. A description of some of the reference board’s circuits is included in 5.6 Fault Circuits and 5.7 On-Board Power Supply. 5.3 Dead Time In induction motor drives, providing dead time between turn-off of one output transistor and turn-on of the other output transistor in the same phase is an important design consideration. Dead time is also a feature that is built into the MC3PHAC’s PWM module. It is programmable, to accommodate a variety of gate drives and output transistors. When using the power module referenced in this document, 2.5-µs dead time should be selected. 3-Phase AC Industrial Motor Controller MOTOROLA Design Considerations For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 55 Freescale Semiconductor, Inc. Design Considerations 5.4 Power-Up/Power-Down Freescale Semiconductor, Inc... When power is applied or removed, it is important that top and bottom output transistors in the same phase are not turned on simultaneously. Since logic states are not always defined during power-up, it is important to ensure that all power transistors remain off when the controller’s supply voltage is below its normal operating level. The MC3PHAC module’s outputs switch to a high-impedance configuration whenever the 5-volt supply is below its specified minimum. The power module has pulldown resistors at all of the gate drive inputs. This feature, coupled with the MC3PHAC’s PWM module’s outputs, ensures that all power transistors remain off during power-up and power-down. 5.5 Grounding PC board layout is an important design consideration. In particular, ground planes and how grounds are tied together influence noise immunity. To maximize noise immunity, it is important to get a good ground plane under the MC3PHAC integrated circuit. It is also important to separate analog and digital grounds. That is why there are two ground designations, digital GND and AGND. Digital GND is the digital ground plane and power supply return. AGND is the analog circuit ground. They are both the same reference voltage, but are routed separately, and tie together at only one point. 5.6 Fault Circuits In the design of the reference PC board, two fault signals are combined to produce one fault input to the MC3PHAC’s FAULTIN pin. The combined faults are overvoltage and overtemperature. These analog signals are fed into comparators having adjustable reference voltages, used for setting the individual fault levels. The comparator outputs provide digital signals to the MC3PHAC’s FAULTIN pin. These faults, should one or both occur, will force the PWM module into a known inactive state, protecting the power module. Designer Reference Manual 56 3-Phase AC Industrial Motor Controller Design Considerations For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Design Considerations Fault Circuits Figure 5-1 is a schematic of the overvoltage fault generating circuit. The input for this circuit originates from the power module and is connected to a voltage divider that is connected to the power module’s high-voltage bus. U1C is used to amplify the bus voltage signal before it is input to the overvoltage comparator, U1B. The threshold for the bus overvoltage fault is set by trim pot R1. As long as the voltage fed into the inverting input of comparator U1B is greater than the voltage from the bus voltage divider from the power module, the output from comparator U1B is held at a logic 0. If the voltage from the voltage divider on the power module exceeds the voltage set by trim pot R1, the output of the comparator will be driven to a logic 1, driving a fault into the MC3PHAC’s fault input. +5 V (A) +5 V (A) 1N4148 R31 10 kΩ 3 VBUSGAIN R2 50 kΩ R27 2 10 kΩ A +5 V (A) TP3 D5 BUS VOLTAGE FROM OPTO BOARD/POWER MODULE 4 5 + U1B 6 – 7 LMC6484 1 1 3 2 R1 50 kΩ 1 +5 V (A) 4 10 + U1C 9 – 8 LMC6484 1 A R26 R25 10 kΩ 22 kΩ A A R24 D3 Fault 1N4148 R23 10 kΩ VBus 3.3 kΩ C2 4700 pF A A Figure 5-1. Overvoltage Fault Circuit 3-Phase AC Industrial Motor Controller MOTOROLA Design Considerations For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 57 Freescale Semiconductor, Inc. Design Considerations Freescale Semiconductor, Inc... Figure 5-2 is a schematic of the overtemperature fault generating circuit. The input for this circuit originates on the power module from a string of four diodes connected in series, pulled up to 3.3 volts through a resistor. These four diodes have a temperature coefficient of approximately –8.8 mV/°C. The output from the diode string is connected to the inverting input of U1A. As long as the voltage applied to the inverting input of U1A, set by R9, R10, and trim pot R3 is greater than the voltage connected to the non-inverting input of U1A, the output of the comparator (U1A) will be at a logic 0. When the voltage output from the diode string falls below the input at the non-inverting input of the comparator, indicating a rise in temperature above the fault setpoint, the output of the comparator will switch to a logic 1, driving a fault into the MC3PHAC’s fault input. +5 V (A) TP5 R9 1 22 kΩ +5 V (A) TP4 TEMPERATURE INPUT FROM OPTO BOARD/POWER MODULE TEMPERATURE LIMIT 3 R3 5.0 kΩ 2 3 4 + 2 – R28 10 kΩ C4 0.1 µF 15 kΩ A TP14 1 D4 Fault 1N4148 LMC6484 1 1 R10 R23 10 kΩ A A Figure 5-2. Overtemperature Fault Circuit Designer Reference Manual 58 3-Phase AC Industrial Motor Controller Design Considerations For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Design Considerations On-Board Power Supply 5.7 On-Board Power Supply Freescale Semiconductor, Inc... Figure 5-3 is the schematic of the on-board power supply. The power supply resident on the reference PC board is simply a 5-volt linear regulator. This power supply is only used if the PC board is run with no power module or optoisolation board connected to the 40-pin connector J1. This on-board power supply has a full wave bridge, allowing ac or dc to be applied to its power jack J3. The 5 volts supplied to the analog-to-digital converter is filtered by filter F1 to provide a quiet source of power. D11 12-V TO 15-V DC OR AC INPUT 3 –V –V 2 +V POWER 1 JACK 1N4004 D16 1N4004 D15 1N4004 C16 10 µF/50 V D13 1N4004 + C14 0.1 µF TP6 +5 V MC7805 U5 1 3 IN OUT GND 2 D8 1N4148 C15 0.1 µF C5 0.1 µF D12 1N4004 C11 0.1 µF TP9 D7 1N4148 JP10 GND_Connection A +5 V F1 1 R34 1 kΩ D6 3 +5 V (A) 2 C12 0.1 µF C1 0.1 µF C10 0.1 µF POWER GREEN LED Figure 5-3. On-Board Power Supply 3-Phase AC Industrial Motor Controller MOTOROLA Design Considerations For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 59 Freescale Semiconductor, Inc. Design Considerations 5.8 Optoisolated RS232 Interface RS232 serial communication is provided by the circuit in Figure 5-4. It is optically isolated for safety and is suitable for communication rates up to 9600 baud. ISOLATION BARRIER D9 1N4148 R36 1 kΩ +5V_D 1 U3 4N35 D14 1N4148 Freescale Semiconductor, Inc... J2 5 GND 4 DTR 3 TxD RTS RxD 9 8 7 2 3 2 D10 1N4148 R39 4.7 kΩ + C17 2.2 µF/50V 4 R37 1 kΩ 4 1 6 GND R38 330 Ω RxD +5V_D 1 3 (+12 V) 2 U4 4N35 TxD Figure 5-4. RS232 Interface The EIA RS232 specification states that signal levels can range from ±3 volts to ±25 volts. A mark is defined as a signal that ranges from –3 volts to –25 volts. A space is defined as a signal that ranges from +3 volts to +25 volts. Therefore, to meet the RS232 specification, signals to and from a terminal must transition through 0 volts as they change from a mark to a space. Breaking the isolated RS232 circuit into input and output sections makes explanation of the circuit simpler. Input interface is through opto coupler U3. To send data from a PC through U3, it is necessary to satisfy the PWMFREQ_RxD input to the MC3PHAC. In the idle condition, the PWMFREQ_RxD input must be at a logic 1. To accomplish that, the transistor in U3 must be off. The idle state of the transmit data line (TXD) on the PC serial port is a mark (–3 V to –25 V). Therefore, the diode in U3 is off and the transistor in U3 is off, yielding a logic 1 to the SCI input. When the start bit is sent to the PWMFREQ_RxD input from the PC’s serial port, the PC’s TXD transitions from a mark to a space (+3 V to +25 V), forward biasing the diode in U3. Forward biasing the diode in D9 turns on the transistor in U3, providing a logic 0 to the input of the SCI. Simply stated, the input half of the circuit provides input isolation, signal inversion, and level Designer Reference Manual 60 3-Phase AC Industrial Motor Controller Design Considerations For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Design Considerations Optoisolated RS232 Interface shifting from the PC to the MC3PHAC’s PWMFREQ_RxD pin. An RS232 line receiver, such as an MC1489, serves the same purpose without the optoisolation function. Freescale Semiconductor, Inc... To send data from the M3PHAC’s RETRY_TxD pin to a PC serial port input, it is necessary to satisfy the PC’s receive data (RXD) input requirements. In an idle condition, the RXD input to the PC must be at mark (–3 V to –25 V). The data terminal ready output (DTR) on the PC outputs a mark when the port is initialized. The request to send RTS output is set to a space (+3 V to +25 V) when the PC’s serial port is initialized. Because the interface is half-duplex, the PC’s TXD output is also at a mark, as it is idle. The idle state of the transmit data line (RETRY_TxD) on the MC3PHAC’s serial port is a logic 1. The logic 1 out of the serial port output port forces the diode in U4 to be turned off. With the diode in U4 turned off, the transistor in U4 is also turned off. The junction of D10 and D14 are at a mark (–3 V to –25 V). With the transistor in U4 turned off, the input is pulled to a mark through current limiting resistor R39, satisfying the PC’s serial input in an idle condition. When a start bit is sent from the MC3PHAC’s serial port, the output of the MC3PHAC’s serial port transitions to a logic 0. That logic 0 turns on the diode in U5, thus turning on the transistor in U5. The conducting transistor in U5 passes the voltage output from the PC’s RTS output, that is now at a space (+3 V to +25 V) to the PC’s receive data (RXD) input. Capacitor C17 is a bypass capacitor used to “stiffen” the mark signal. The output half of the circuit provides output isolation, signal inversion, and level shifting from the MC3PHAC’s serial output port to the PC’s serial port. An RS232 line driver, such as an MC1488, serves the same purpose without the optoisolation function. 3-Phase AC Industrial Motor Controller MOTOROLA Design Considerations For More Information On This Product, Go to: www.freescale.com Designer Reference Manual 61 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Design Considerations Designer Reference Manual 62 3-Phase AC Industrial Motor Controller Design Considerations For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... Appendix A. MC3PHAC Data Sheet For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc... Freescale Semiconductor, Inc. For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc. Data Sheet MC3PHAC/D Rev. 1, 4/2002 Freescale Semiconductor, Inc... 3-Phase AC Motor Controller Overview The MC3PHAC is a high-performance monolithic intelligent motor controller designed specifically to meet the requirements for low-cost, variable-speed, 3-phase ac motor control systems. The device is adaptable and configurable, based on its environment. It contains all of the active functions required to implement the control portion of an open loop, 3-phase ac motor drive. One of the unique aspects of this device is that although it is adaptable and configurable based on its environment, it does not require any software development. This makes the MC3PHAC a perfect fit for customer applications requiring ac motor control but with limited or no software resources available. The device features are: • Volts-per-Hertz speed control • Digital signal processing (DSP) filtering to enhance speed stability • 32-bit calculations for high-precision operation • Internet enabled • No user software development required for operation • 6-output pulse-width modulator (PWM) • 3-phase waveform generation • 4-channel analog-to-digital converter (ADC) • User configurable for standalone or hosted operation • Dynamic bus ripple cancellation • Selectable PWM polarity and frequency • Selectable 50/60 Hz base frequency • Phase-lock loop (PLL) based system oscillator • Serial communications interface (SCI) • Low-power supply voltage detection circuit © Motorola, Inc., 2002 For More Information On This Product, Go to: www.freescale.com Freescale Semiconductor, Inc. MC3PHAC/D Included in the MC3PHAC are protective features consisting of dc bus voltage monitoring and a system fault input that will immediately disable the PWM module upon detection of a system fault. Freescale Semiconductor, Inc... Some target applications for the MC3PHAC include: • Low horsepower HVAC motors • Home appliances • Commercial laundry and dishwashers • Process control • Pumps and fans As shown in Table 1, the MC3PHAC is offered in these packages: • Plastic 28-pin dual in-line package (DIP) • Plastic 28-pin small outline integrated circuit (SOIC) • Plastic 32-pin quad flat pack (QFP) See Figure 1 and Figure 2 for the pin connections. Table 1. Ordering Information Device 66 Operating Temperature Range Package MC3PHACVP –40°C to +105°C Plastic 28-pin DIP MC3PHACVDW –40°C to +105°C Plastic 28-pin SOIC MC3PHACVFA –40°C to +105°C Plastic 32-pin QFP 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... MC3PHAC/D Overview VREF 1 28 DC_BUS RESET 2 27 ACCEL VDDA 3 26 SPEED VSSA 4 25 MUX_IN OSC2 5 24 START OSC1 6 23 FWD PLLCAP 7 22 VSS PWMPOL_BASEFREQ 8 21 VDD PWM_U_TOP 9 20 VBOOST_MODE PWM_U_BOT 10 19 DT_FAULTOUT PWM_V_TOP 11 18 RBRAKE PWM_V_BOT 12 17 RETRY_TxD PWM_W_TOP 13 16 PWMFREQ_RxD PWM_W_BOT 14 15 FAULTIN RESET VREF VSS VSS VSS DC_BUS ACCEL 30 29 28 27 26 25 OSC2 31 1 VDDA VSSA 32 Figure 1. Pin Connections for PDIP and SOIC VDD PWM_U_BOT 7 18 VBOOST_MODE PWM_V_TOP 8 17 DT_FAULTOUT 16 PWM_U_TOP 19 RBRAKE VSS 6 15 PWMPOL_BASEFREQ 20 RETRY_TxD FWD 5 14 21 PWMFREQ_RxD 4 13 PLLCAP VSS START 12 22 FAULTIN 3 11 OSC1 PWM_W_BOT MUX_IN 10 23 PWM_W_TOP 2 9 SPEED PWM_V_BOT 24 Figure 2. Pin Connections for QFP MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 67 Freescale Semiconductor, Inc. MC3PHAC/D AC IN 3-PHASE AC MOTOR Freescale Semiconductor, Inc... BUS VOLTAGE FEEDBACK RESISTIVE BRAKE CONTROL TO GATE DRIVES START/STOP FORWARD/REVERSE SPEED ACCELERATION PWM’s MC3PHAC PWM FREQUENCY FAULT SERIAL INTERFACE PASSIVE INITIALIZATION NETWORK (OPTIONAL) Figure 3. MC3PHAC-Based Motor Control System 68 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Electrical Characteristics Electrical Characteristics Maximum Ratings Freescale Semiconductor, Inc... Characteristic(1) Symbol Value Unit Supply voltage VDD –0.3 to +6.0 V Input voltage VIn –0.3 to VDD +0.3 V Input high voltage VHi VDD + 0.3 V Maximum current per pin excluding VDD and VSS I 25 mA Tstg –55 to +150 °C Maximum current out of VSS IMVSS 100 mA Maximum current into VDD IMVDD 100 mA Storage temperature 1. Voltages referenced to VSS This device contains circuitry to protect the inputs against damage due to high static voltages or electric fields; however, it is advised that normal precautions be taken to avoid application of any voltage higher than maximum-rated voltages to this high-impedance circuit. For proper operation, it is recommended that VIn and VOut be constrained to the range VSS ≤ (VIn or VOut) ≤ VDD. Reliability of operation is enhanced if unused inputs are connected to an appropriate logic voltage level (for example, either VSS or VDD). Functional Operating Range Characteristic Operating temperature range (see Table 1) Operating voltage range Symbol Value Unit TA –40°C to +105°C °C VDD 5.0 ± 10% V Symbol Value Unit Fosc 4.00 ± 1% MHz Control Timing Characteristic Oscillator frequency(1) 1. Follow the crystal/resonator manufacturer’s recommendations, as the crystal/resonator parameters determine the external component values required for maximum stability and reliable starting. The load capacitance values used in the oscillator circuit design should include all stray capacitances. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 69 Freescale Semiconductor, Inc. MC3PHAC/D DC Electrical Characteristics Characteristic(1) Symbol Min Max Unit VOH VDD –0.8 — V VOHRB VDD –1.0 — V Output low voltage (ILoad = 1.6 mA) All I/O pins except FAULTOUT and RETRY/TxD VOL — 0.4 V Output low voltage (ILoad = 15 mA) FAULTOUT and RETRY/TxD VOL1 — 1.0 V Input high voltage All ports VHi 0.7 x VDD VDD V Input low voltage All ports VIL VSS 0.3 x VDD V VDD supply current IDD — 60 mA I/O ports high-impedance leakage current IIL — ±5 µA Input current IIn — ±1 µA Capacitance Ports (as input or output) COut CIn — — 12 8 pF VDD low-voltage inhibit reset VLVR1 3.80 4.3 V VDD low-voltage reset/recovery hysteresis VLVH1 50 150 mV VDD power-on reset re-arm voltage VPOR 3.85 4.45 V VDD power-on reset rise time ramp rate RPOR 0.035 — V/ms Serial communications interface baud rate SCIBD 9504 9696 Bits/sec Voltage Boost(2) VBoost 0 100 % Dead time range(3) DTRange 0 31.875 µs time(4) RTTime 0 4.55 Hours Acceleration rate ACRate 0.5 128 Hz/sec Speed control SPEED 1 128 Hz PWMFREQ 5.291 21.164 kHz TPump 99 101 ms Output high voltage (ILoad = –2.0 mA) All I/O pins except RBRAKE Freescale Semiconductor, Inc... Output high voltage RBRAKE (IRBRAKE = –15.0 mA) Retry PWM Frequency High side power transistor drive pump-up time 1. VDD = 5.0 Vdc ± 10% 2. Limited in standalone mode to 0 to 35% 3. Limited in standalone mode to 0.5 to 6.0 µs 4. Limited in standalone mode to 0 to ~53 seconds 70 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Pin Descriptions Pin Descriptions Table 2 is a pin-by-pin functional description of the MC3PHAC. The pin numbers in the table refer to the 28-pin packages (see Figure 1). Freescale Semiconductor, Inc... Table 2. MC3PHAC Pin Descriptions (Sheet 1 of 3) Pin Number Pin Name 1 VREF Pin Function Reference voltage input for the on-chip ADC. For best signal-to-noise performance, this pin should be tied to VDDA (analog). 2 RESET A logic 0 on this pin forces the MC3PHAC to its initial startup state. All PWM outputs are placed in a high-impedance mode. Reset is a bidirectional pin, allowing a reset of the entire system. It is driven low when an internal reset source is asserted (for example, loss of clock or low VDD). 3 VDDA Provides power for the analog portions of the MC3PHAC, which include the internal clock generation circuit (PLL) and the ADC 4 VSSA Returns power for the analog portions of the MC3PHAC, which include the internal clock generation circuit (PLL) and the ADC 5 OSC2 Oscillator output used as part of a crystal or ceramic resonator clock circuit.(1) 6 OSC1 Oscillator input used as part of a crystal or ceramic resonator clock circuit. Can also accept a signal from an external canned oscillator.(1) 7 PLLCAP A capacitor from this pin to ground affects the stability and reaction time of the PLL clock circuit. Smaller values result in faster tracking of the reference frequency. Larger values result in better stability. A value of 0.1 µF is typical. 8 PWMPOL_BASEFREQ 9 PWM_U_TOP PWM output signal for the top transistor driving motor phase U 10 PWM_U_BOT PWM output signal for the bottom transistor driving motor phase U 11 PWM_V_TOP PWM output signal for the top transistor driving motor phase V 12 PWM_V_BOT PWM output signal for the bottom transistor driving motor phase V 13 PWM_W_TOP PWM output signal for the top transistor driving motor phase W 14 PWM_W_BOT PWM output signal for the bottom transistor driving motor phase W MOTOROLA Input which is sampled at specific moments during initialization to determine the PWM polarity and the base frequency (50 or 60 Hz) 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 71 Freescale Semiconductor, Inc. MC3PHAC/D Table 2. MC3PHAC Pin Descriptions (Sheet 2 of 3) Pin Number Pin Name Pin Function 15 FAULTIN A logic high on this input will immediately disable the PWM outputs. A retry timeout interval will be initiated once this pin returns to a logic low state. Freescale Semiconductor, Inc... 16 RETRY_TxD In standalone mode, this pin is an output that drives low to indicate the parameter mux input pin is reading an analog voltage to specify the time to wait after a fault before re-enabling the PWM outputs. In PC master software mode, this pin is an output that transmits UART serial data. RBRAKE Output which is driven to a logic high whenever the voltage on the dc bus input pin exceeds a preset level, indicating a high bus voltage. This signal is intended to connect a resistor across the dc bus capacitor to prevent excess capacitor voltage. DT_FAULTOUT In standalone mode, this pin is an output which drives low to indicate the parameter mux input pin is reading an analog voltage to specify the dead-time between the on states of the top and bottom PWM signals for a given motor phase. In PC master software mode, this pin is an output which goes low whenever a fault condition occurs. 20 VBOOST_MODE At startup, this input is sampled to determine whether to enter standalone mode (logic high) or PC master software mode (logic low). In standalone mode, this pin is also used as an output that drives low to indicate the parameter mux input pin is reading an analog voltage to specify the amount of voltage boost to apply to the motor. 21 VDD +5-volt digital power supply to the MC3PHAC 22 VSS Digital power supply ground return for the MC3PHAC 23 FWD Input which is sampled to determine whether the motor should rotate in the forward or reverse direction 24 START 17 18 19 25 72 PWMFREQ_RxD In standalone mode, this pin is an output that drives low to indicate the parameter mux input pin is reading an analog voltage to specify the desired PWM frequency. In PC master software mode, this pin is an input which receives UART serial data. MUX_IN Input which is sampled to determine whether the motor should be running. In standalone mode, during initialization this pin is an output that is used to determine PWM polarity and base frequency. Otherwise, it is an analog input used to read several voltage levels that specify MC3PHAC operating parameters. 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Pin Descriptions Table 2. MC3PHAC Pin Descriptions (Sheet 3 of 3) Pin Number 26 Freescale Semiconductor, Inc... 27 28 Pin Name Pin Function SPEED In standalone mode, during initialization this pin is an output that is used to determine PWM polarity and base frequency. Otherwise, it is an analog input used to read a voltage level corresponding to the desired steady-state speed of the motor. ACCEL In standalone mode, during initialization this pin is an output that is used to determine PWM polarity and base frequency. Otherwise, it is an analog input used to read a voltage level corresponding to the desired acceleration of the motor. DC_BUS In standalone mode, during initialization this pin is an output that is used to determine PWM polarity and base frequency. Otherwise, it is an analog input used to read a voltage level proportional to the dc bus voltage. 1. Correct timing of the MC3PHAC is based on a 4.00 MHz crystal or ceramic resonator. Follow the crystal/resonator manufacturer’s recommendations, as the crystal/resonator parameters determine the external component values required for maximum stability and reliable starting. The load capacitance values used in the oscillator circuit design should include all stray capacitances. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 73 Freescale Semiconductor, Inc. MC3PHAC/D Introduction The MC3PHAC is a high-performance intelligent controller designed specifically to meet the requirements for low-cost, variable-speed, 3-phase ac motor control systems. The device is adaptable and configurable, based on its environment. Constructed with high-speed CMOS (complementary metal-oxide semiconductor) technology, the MC3PHAC offers a high degree of performance and ruggedness in the hostile environments often found in motor control systems. Freescale Semiconductor, Inc... The device consists of: • 6-output pulse-width modulator (PWM) • 4-channel analog-to-digital converter (ADC) • Phase-lock loop (PLL) based system oscillator • Low-power supply voltage detection circuit • Serial communications interface (SCI) The serial communications interface is used in a mode, called PC master software mode, whereby control of the MC3PHAC is from a host or master personal computer executing PC master software or a microcontroller emulating PC master software commands. In either case, control via the internet is feasible. Included in the MC3PHAC are protective features consisting of dc bus monitoring and a system fault input that will immediately disable the PWM module upon detection of a system fault. Included motor control features include: 74 • Open loop volts/Hertz speed control • Forward or reverse rotation • Start/stop motion • System fault input • Low-speed voltage boost • Internal power-on reset (POR) 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Features Features 3-Phase Waveform Generation — The MC3PHAC generates six PWM signals which have been modulated with variable voltage and variable frequency information in order to control a 3-phase ac motor. A third harmonic signal has been superimposed on top of the fundamental motor frequency to achieve full bus voltage utilization. This results in a 15 percent increase in maximum output amplitude compared to pure sine wave modulation. Freescale Semiconductor, Inc... The waveform is updated at a 5.3 kHz rate (except when the PWM frequency is 15.9 kHz), resulting in near continuous waveform quality. At 15.9 kHz, the waveform is updated at 4.0 kHz. DSP Filtering — A 24-bit IIR digital filter is used on the SPEED input signal in standalone mode, resulting in enhanced speed stability in noisy environments. The sampling period of the filter is 3 ms (except when the PWM frequency is 15.9 kHz) and it mimics the response of a single pole analog filter having a pole at 0.4 Hz. At a PWM frequency of 15.9 kHz, the sampling period is 4 ms and the pole is located at 0.3 Hz. High Precision Calculations — Up to 32-bit variable resolution is employed for precision control and smooth performance. For example, the motor speed can be controlled with a resolution of 4 mHz. Smooth Voltage Transitions — When the commanded speed of the motor passes through ±1 Hz, the voltage is gently applied or removed depending on the direction of the speed change. This eliminates any pops or surges that may occur, especially under conditions of high-voltage boost at low frequencies. High-Side Bootstrapping — Many motor drive topologies (especially highvoltage drives) use optocouplers to supply the PWM signal to the high-side transistors. Often, the high-side transistor drive circuitry contains a charge pump circuit to create a floating power supply for each high-side transistor that is dependent on low-side PWMs to develop power. When the motor has been off for a period of time, the charge on the high-side power supply capacitor is depleted and must be replenished before proper PWM operation can resume. To accommodate such topologies, the MC3PHAC will always provide 100 ms of 50 percent PWM drive to only the low-side transistors each time the motor is turned on. Since the top transistors remain off during this time, it has the effect of applying zero volts to the motor, and no motion occurs. After this period, motor waveform modulation begins, with PWM drive also being applied to the high-side transistors. Fast Velocity Updating — During periods when the motor speed is changing, the rate at which the velocity is updated is critical to smooth operation. If these updates occur too infrequently, a ratcheting effect will be exhibited on the motor, which inhibits smooth torque performance. However, velocity profiling is MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 75 Freescale Semiconductor, Inc. MC3PHAC/D a very calculation intensive operation to perform, which runs contrary to the previous requirement. In the MC3PHAC, a velocity pipelining technique is employed which allows linear interpolation of the velocity values, resulting in a new velocity value every 189 µs (252 µs for 15.9 kHz PWMs). The net result is ultra smooth velocity transitions, where each velocity step is not perceivable by the motor. Freescale Semiconductor, Inc... Dynamic Bus Ripple Cancellation — The dc bus voltage is sensed by the MC3PHAC, and any deviations from a predetermined norm (3.5 V on the dc bus input pin) result in corrections to the PWM values to counteract the effect of the bus voltage changes on the motor current. The frequency of this calculation is sufficiently high to permit compensation for line frequency ripple, as well as slower bus voltage changes resulting from regeneration or brown out conditions. See Figure 4. MOTOR PHASE CURRENT WAVEFORMS REMOVES 60 Hz HUM COMPENSATED AND DECREASES I2R LOSSES AC MAINS UNCOMPENSATED PWM1 PWM3 PWM5 PWM2 PWM4 PWM6 MC3PHAC CORRECTED PWMs Figure 4. Dynamic Bus Ripple Cancellation 76 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Features Selectable Base Frequency — Alternating current (ac) motors are designed to accept rated voltage at either 50 or 60 Hz, depending on what region of the world they were designed to be used. The MC3PHAC can accommodate both types of motors by allowing the voltage profile to reach maximum value at either 50 or 60 Hz. This parameter can be specified at initialization in standalone mode, or it can be changed at any time in PC master software mode. Freescale Semiconductor, Inc... Selectable PWM Polarity — The polarity of the PWM outputs may be specified such that a logic high on a PWM output can either be the asserted or negated state of the signal. In standalone mode, this parameter is specified at initialization and applies to all six PWM outputs. In PC master software mode, the polarity of the top PWM signals can be specified separately from the polarity of the bottom PWM signals. This specification can be done at any time, but once it is done, the polarities are locked and cannot be changed until a reset occurs. Also, any commands from PC master software that would have the effect of enabling PWMs are prevented by the MC3PHAC until the polarity has been specified. In standalone mode, the base frequency and PWM polarity are specified at the same time during initialization by connecting either pin 25, 26, 27, or 28 exclusively to the PWMPOL_BASEFREQ input. During initialization, pins 25, 26, 27, and 28 are cycled one at a time to determine which one has been connected to the PWMPOL_BASEFREQ input. Table 3 shows the selected PWM polarity and base frequency as a function of which pin connection is made. Refer to the standalone mode schematic, Figure 8. Only one of these jumpers (JP1–JP4) can be connected at any one time. NOTE: It is not necessary to break this connection once the initialization phase has been completed. The MC3PHAC will function properly while this connection is in place. Table 3. PWM Polarity and Base Frequency Specification in Standalone Mode MOTOROLA Pin Connected to PWMPOL_BASEFREQ Pin PWM Polarity Base Frequency MUX_IN (JP1) Logic low = on 50 Hz SPEED (JP2) Logic high = on 50 Hz ACCEL (JP3) Logic low = on 60 Hz DC_BUS (JP4) Logic high = on 60 Hz 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 77 Freescale Semiconductor, Inc. MC3PHAC/D Selectable PWM Frequency — The MC3PHAC accommodates four discrete PWM frequencies and can be changed dynamically while the motor is running. This resistor can be a potentiometer or a fixed resistor in the range shown in Table 4. In standalone mode, the PWM frequency is specified by applying a voltage to the MUX_IN pin while the PWMFREQ_RxD pin is being driven low. Table 4 shows the required voltage levels on the MUX_IN pin and the associated PWM frequency for each voltage range. NOTE: The PWM frequencies are based on a 4.00 MHz frequency applied to the oscillator input. Freescale Semiconductor, Inc... Table 4. MUX_IN Resistance Ranges and Corresponding PWM Frequencies Voltage Input PWM Frequency 0 to 1 V 5.291 kHz 1.5 to 2.25 V 10.582 kHz 2.75 to 3.5 V 15.873 kHz 4 to 5 V 21.164 kHz Selectable PWM Dead Time — Besides being able to specify the PWM frequency, the blanking time interval between the on states of the complementary PWM pairs can also be specified. Refer to the graph in Figure 9 for the resistance value versus dead time. Figure 9 assumes a 6.8 kΩ ±5% pullup resistor. In standalone mode, this is done by supplying a voltage to the MUX_IN pin while the DT_FAULTOUT pin is being driven low. In this way, dead time can be specified with a scaling factor of 2.075 µs per volt, with a minimum value of 0.5 µs. In PC master software mode, this value can be selected to be anywhere between 0 and 32 µs. In both standalone and PC master software modes, the dead time value can be written only once. Further updates of this parameter are locked out until a reset condition occurs. Speed Control — The synchronous motor frequency can be specified in real time to be any value from 1 Hz to 128 Hz by the voltage applied to the SPEED pin. The scaling factor is 25.6 Hz per volt. This parameter can also be controlled directly from PC master software in real time. The SPEED pin is processed by a 24-bit digital filter to enhance the speed stability in noisy environments. This filter is only activated in standalone mode. Acceleration Control — Motor acceleration can be specified in real time to be in the range from 0.5 Hz/second, ranging to 128 Hz/second, by the voltage applied to the ACCEL pin. The scaling factor is 25.6 Hz/second per volt. This parameter can also be controlled directly from PC master software in real time. 78 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Features Voltage Profile Generation — The MC3PHAC controls the motor voltage in proportion to the specified frequency, as indicated in Figure 5. VOLTAGE 100% ES SS O AT N TIO R FO ST O RL SA Freescale Semiconductor, Inc... VOLTAGE BOOST N PE M CO FREQUENCY BASE FREQUENCY Figure 5. Voltage Profiling, Including Voltage Boost An ac motor is designed to draw a specified amount of magnetizing current when supplied with rated voltage at the base frequency. As the frequency decreases, assuming no stator losses, the voltage must decrease in exact proportion to maintain the required magnetizing current. In reality, as the frequency decreases, the voltage drop in the series stator resistance increases in proportion to the voltage across the magnetizing inductance. This has the effect of further reducing the voltage across the magnetizing inductor, and consequently, the magnetizing current. A schematic representation of this effect is illustrated in Figure 6. To compensate for this voltage loss, the voltage profile is boosted over the normal voltage curve in Figure 5, so that the magnetizing current remains constant over the speed range. PARASITICS X1 MAGNETIZING CURRENT (TRY TO KEEP CONSTANT) R1 X2 XM R2 TORQUE CURRENT R2 (1 –s) s Figure 6. AC Motor Single Phase Model Showing Parasitic Stator Impedances MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 79 Freescale Semiconductor, Inc. MC3PHAC/D The MC3PHAC allows the voltage boost to be specified as a percentage of full voltage at 0 Hz, as shown in Figure 5. In standalone mode, voltage boost is specified during the initialization phase by supplying a voltage to the MUX_IN pin while the VBOOST_MODE pin is being driven low. Refer to the graph in Figure 11 for the resistance value versus voltage boost. Figure 11 assumes a 6.8 kΩ pullup resistor. In this way, voltage boost can be specified from 0 to 40 percent, with a scaling factor of 8 percent per volt. In PC master software mode, the voltage boost can be specified from 0 to 100 percent and can be changed at anytime. Freescale Semiconductor, Inc... By using the voltage boost value, and the specified base frequency, the MC3PHAC has all the information required to generate a voltage profile automatically based on the generated waveform frequency. An additional feature exists in PC master software mode whereby this voltage value can be overridden and controlled in real time. Specifying a voltage lower than the normal volts-per-hertz profile permits a softer torque response in certain ergonomic situations. It also allows for load power factor control and higher operating efficiencies with high inertia loads or other loads where instantaneous changes in torque demand are not permitted. Details of this feature are discussed in the PC Master Software Operation with the MC3PHAC. PLL Clock Generation — The OSC1 pin signal is used as a reference clock for an internal PLL clocking circuit, which is used to drive the internal clocks of the MC3PHAC. This provides excellent protection against noise spikes that may occur on the OSC1 pin. In a clocking circuit that does not incorporate a PLL, a noise spike on the clock input can create a clock edge, which violates the setup times of the clocking logic, and can cause the device to malfunction. The same noise spike applied to the input of a PLL clock circuit is perceived by the PLL as a change in its reference frequency, and the PLL output frequency begins to change in an attempt to lock on to the new frequency. However, before any appreciable change can occur, the spike is gone, and the PLL settles back into the true reference frequency. Fault Protection — The MC3PHAC supports an elaborate range of fault protection and prevention features. If a fault does occur, the MC3PHAC immediately disables the PWMs and waits until the fault condition is cleared before starting a timer to re-enable the PWMs. Refer to the graph in Figure 10 for the resistance value versus retry time. Figure 10 assumes a 6.8 kΩ pullup resistor. In standalone mode, this timeout interval is specified during the initialization phase by supplying a voltage to the MUX_IN pin while the RETRY_TxD pin is being driven low. In this way, the retry time can be specified from 1 to 60 seconds, with a scaling factor of 12 seconds per volt. In PC master software mode, the retry time can be specified from 0.25 second to over 4.5 hours and can be changed at any time. 80 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Features Freescale Semiconductor, Inc... The fault protection and prevention features are: • External Fault Monitoring — The FAULTIN pin accepts a digital signal that indicates a fault has been detected via external monitoring circuitry. A high level on this input results in the PWMs being immediately disabled. Typical fault conditions might be a dc bus over voltage, bus over current, or over temperature. Once this input returns to a logic low level, the fault retry timer begins running, and PWMs are re-enabled after the programmed timeout value is reached. • Lost Clock Protection — If the signal on the OSC1 pin is lost altogether, the MC3PHAC will immediately disable the PWM outputs to protect the motor and power electronics. This is a special fault condition in that it will also cause the MC3PHAC to be reset. Lost clock detection is an important safety consideration, as many safety regulatory agencies are now requiring a dead crystal test be performed as part of the certification process. • Low VDD Protection — Whenever VDD falls below VLVR1, an on-board power supply monitor will reset the MC3PHAC. This allows the MC3PHAC to operate properly with 5 volt power supplies of either 5 or 10 percent tolerance. • Bus Voltage Integrity Monitoring — The DC_BUS pin is monitored at a 5.3 kHz frequency (4.0 kHz when the PWM frequency is set to 15.9 kHz), and any voltage reading outside of an acceptable window constitutes a fault condition. In standalone mode, the window thresholds are fixed at 4.47 volts (128 percent of nominal), and 1.75 volts (50 percent of nominal), where nominal is defined to be 3.5 volts. In PC master software mode, both top and bottom window thresholds can be set independently to any value between 0 volts (0 percent of nominal), and greater than 5 volts (143 percent of nominal), and can be changed at any time. Once the DC_BUS signal level returns to a value within the acceptable window, the fault retry timer begins running, and PWMs are re-enabled after the programmed timeout value is reached. During power-up, it is possible that VDD could reach operating voltage before the dc bus capacitor charges up to its nominal value. When the dc bus integrity is checked, an under voltage would be detected and treated as a fault, with its associated timeout period. To prevent this, the MC3PHAC monitors the dc bus voltage during power-up in standalone mode, and waits until it is higher than the under voltage threshold before continuing. During this time, all MC3PHAC functions are suspended. Once this threshold is reached, the MC3PHAC will continue normally, with any further under voltage conditions treated as a fault. If dc bus voltage monitoring is not desired, a voltage of 3.5 volts 5 percent should be supplied to the DC_BUS pin through an impedance of between 4.7 kΩ and 15 kΩ. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 81 Freescale Semiconductor, Inc. MC3PHAC/D • Regeneration Control — Regeneration is a process by which stored mechanical energy in the motor and load is transferred back into the drive electronics, usually as a result of an aggressive deceleration operation. In special cases where this process occurs frequently (for example, elevator motor control systems), it is economical to incorporate special features in the motor drive to allow this energy to be supplied back to the ac mains. However, for most low cost ac drives, this energy is stored in the dc bus capacitor by increasing its voltage. If this process is left unchecked, the dc bus voltage can rise to dangerous levels, which can destroy the bus capacitor or the transistors in the power inverter. Freescale Semiconductor, Inc... The MC3PHAC incorporates two techniques to deal with regeneration before it becomes a problem: 82 – Resistive Braking — The DC_BUS pin is monitored at a 5.3 kHz frequency (4.0 kHz when the PWM frequency is set to 15.9 kHz), and when the voltage reaches a certain threshold, the RBRAKE pin is driven high. This signal can be used to control a resistive brake placed across the dc bus capacitor, such that mechanical energy from the motor will be dissipated as heat in the resistor versus being stored as voltage on the capacitor. In standalone mode, the DC_BUS threshold required to assert the RBRAKE signal is fixed at 3.85 volts (110 percent of nominal) where nominal is defined to be 3.5 volts. In PC master software mode, this threshold can be set to any value between 0 volts (0 percent of nominal) and greater than 5 volts (143 percent of nominal) and can be changed at any time. – Automatic Deceleration Control — When decelerating the motor, the MC3PHAC attempts to use the specified acceleration value for deceleration as well. If the voltage on the DC_BUS pin reaches a certain threshold, the MC3PHAC begins to moderate the deceleration as a function of this voltage, as shown in Figure 7. The voltage range on the DC_BUS pin from when the deceleration begins to decrease, to when it reaches 0, is 0.62 volts. In standalone mode, the DC_BUS voltage where deceleration begins to decrease is fixed at 3.85 volts (110 percent of nominal) where nominal is defined to be 3.5 volts. In PC master software mode, this threshold can be set to any value between 0 volts (0 percent of nominal) and greater than 5 volts (143 percent of nominal) and can be changed at any time. 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Digital Power Supply Bypassing DECELERATION ACCELERATION INPUT BUS VOLTAGE Freescale Semiconductor, Inc... BEGIN MODERATING DECEL (LEVEL IS PROGRAMMABLE IN PC MASTER SOFTWARE MODE) Figure 7. Deceleration as a Function of Bus Voltage Digital Power Supply Bypassing VDD and VSS are the digital power supply and ground pins for the MC3PHAC. Fast signal transitions connected internally on these pins place high, shortduration current demands on the power supply. To prevent noise problems, take special care to provide power supply bypassing at the VDD and VSS pins. Place the bypass capacitors as close as possible to the MC3PHAC. Use a high-frequency-response ceramic capacitor, such as a 0.1 µF, paralleled with a bulk capacitor in the range of 1 µF to 10 µF for bypassing the digital power supply. Analog Power Supply Bypassing VDDA and VSSA are the power supply pins for the analog portion of the clock generator and analog-to-digital converter (ADC). On the schematics in this document, analog ground is labeled with an A and other grounds are digital grounds. Analog power is labeled as +5 A. It is good practice to isolate the analog and digital +5 volt power supplies by using a small inductor or a low value resistor less than 5 ohms in series with the digital power supply, to create the +5 A supply. ADC VREF is the power supply pin used for setting the ADC’s voltage reference. Decoupling of these pins should be per the digital power supply bypassing, described previously. ADC VREF (pin 1) and VDDA (pin 3) shall be connected together and connected to the same potential as VDD. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 83 Freescale Semiconductor, Inc. MC3PHAC/D Freescale Semiconductor, Inc... Grounding Considerations Printed circuit board layout is an important design consideration. In particular, ground planes and how grounds are tied together influence noise immunity. To maximize noise immunity, it is important to get a good ground plane under the MC3PHAC. It is also important to separate analog and digital grounds. That is why, shown on the schematics, there are two ground designations, analog ground is marked with an A and other grounds are digital grounds. GND is the digital ground plane and power supply return. GNDA is the analog circuit ground. They are both the same reference voltage, but are routed separately, and tie together at only one point. Power-Up/Power-Down When power is applied or removed, it is important that the inverter’s top and bottom output transistors in the same phase are not turned on simultaneously. Since logic states are not always defined during power-up, it is important to ensure that all power transistors remain off when the controller’s supply voltage is below its normal operating level. The MC3PHAC’s PWM module outputs make this easy by switching to a high impedance configuration whenever the 5-volt supply is below its specified minimum. The user should use pullup or pulldown resistors on the output of the MC3PHAC’s PWM outputs to ensure during power-up and power-down, that the inverter’s drive inputs are at a known, turned off, state. Operation The MC3PHAC motor controller will operate in two modes. The first is standalone operation, whereby the MC3PHAC can be used without any intervention from an external personal computer. In standalone mode, the MC3PHAC is initialized by passive devices connected to the MC3PHAC and input to the system at power-up/reset time. In standalone mode, some parameters continue to be input to the system as it operates. Speed, PWM frequency, bus voltage, and acceleration parameters are input to the system on a real-time basis. The second mode of operation is called PC master software mode.That operational mode requires the use of a personal computer and PC master software executing on the personal computer, communicating with the MC3PHAC, or a microcontroller emulating PC master software commands. All command and setup information is input to the MC3PHAC via the PC host. 84 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation Standalone Operation If the VBOOST_MODE pin is high when the MC3PHAC is powered up, or after a reset, the MC3PHAC enters standalone mode. In this mode of operation, the functionality of many of the MC3PHAC pins change so that the device can control a motor without requiring setup information from an external master. When operated in standalone mode, the MC3PHAC will drive certain pins corresponding to parameters which must be specified, while simultaneously monitoring the response on other pins. Freescale Semiconductor, Inc... In many cases, the parameter to be specified is represented as an analog voltage presented to the MUX_IN pin, while certain other pins are driven low. In so doing, the MC3PHAC can accommodate an external analog mux which will switch various signals on the MUX_IN pin when the signal select line goes low. All signals must be in a range between 0 V and VREF. As an economical alternative, an external passive network can be connected to each of the parameter select output pins and the MUX_IN pin, as shown in Figure 8. The Thevenin equivalent impedance of this passive network as seen by the MUX_IN pin is very important and should be in the range of 5 kΩ to 10 kΩ. If the resistance is too high, leakage current from the input/output (I/O) pins will cause an offset voltage that will affect the accuracy of the reading. If the resistance is too low, the parameter select pins will not be able to sink the required current for an accurate reading. Using a pullup resistor value of 6.8 kΩ (as indicated in Figure 8), the resulting value for each parameter as a function of the corresponding pulldown resistor value is shown in Figure 9, Figure 10, Figure 11, and Table 4. The START input pin is debounced internally and a switch can be directly accommodated on this pin. The input is level sensitive, but a logic 1 level must exist on the pin before a logic 0 level will be processed as a start signal. This will prevent an accidental motor startup in the event of the MC3PHAC being powered up, where the switch was left in the start position. The FWD input pin is debounced internally and can directly accommodate a switch connection. The input is also level sensitive. Figure 8 shows the jumper arrangement connected to the PWMPOL_BASEFREQ input pin. For proper operation, one and only one jumper connection can be made at any given time. Table 3 shows the polarity and base frequency selections as a function of the jumper connection. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 85 Freescale Semiconductor, Inc. MC3PHAC/D +5 V 6.8 kΩ NOTE 6 JP2 50 Hz + PWM POLARITY JP3 60 Hz – PWM POLARITY JP4 60 Hz + PWM POLARITY FROM DIVIDED DC BUS +5 A 10 kΩ 0.1 µF 1 2 3 4 A 22 pF RESET ACCEL VDDA SPEED VSSA MUX_IN 5 OSC2 4.0 MHz 22 pF 10 MΩ DC_BUS 28 VREF START 6 OSC1 0.1 µF 7 PLLCAP NOTE 8 8 9 6 — PWMs TO POWER STAGE 10 11 12 13 14 FWD VSS PWMPOL_BASEFREQ 27 VBOOST_MODE PWM_U_BOT DT_FAULTOUT PWM_V_TOP RBRAKE PWM_V_BOT RETRY/TxD PWM_W_TOP PWMFREQ/RxD PWM_W_BOT FAULTIN +5 A 5 kΩ 4.7 kΩ 26 25 A +5 V 10 kΩ 24 23 22 VDD 21 PWM_U_TOP A START/STOP Freescale Semiconductor, Inc... RESET 5 kΩ 4.7 kΩ MC3PHAC 20 19 10 kΩ +5 NOTE 7 +5 RBOOST NOTE 1 RDEADTIME NOTE 2 18 17 16 FOR/REV NOTE 7 +5 A SPEED POT 50 Hz – PWM POLARITY ACCELERATION POT +5 V JP1 TO RESISTIVE BRAKE DRIVER RRETRY RPWMFREQ 15 NOTE 3 NOTE 4 NOTE 5 FROM SYSTEM FAULT DETECTION CIRCUIT Notes: 1. See Figure 11. 2. See Figure 9. 3. See Figure 10. 4. See Table 4. 5. If no external fault circuit is provided, connect to VSS. 6. Connect only one jumper. 7. Use bypass capacitors placed close to the MC3PHAC. 8. Consult crystal/resonator manufacturer for component values. Figure 8. Standalone MC3PHAC Configuration 86 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation DEAD TIME (µs) 6.0 5.5 5.0 4.5 4.0 3.5 3.0 2.5 2.0 Freescale Semiconductor, Inc... 1.5 1.0 0.5 0 0 1 2 3 4 5 6 7 8 9 10 RESISTANCE (kΩ) Figure 9. Dead Time as a Function of the RDEADTIME Resistor RETRY TIME (SECONDS) 60 55 50 45 40 35 30 25 20 15 10 5 0 0 5 10 15 20 25 30 35 40 45 50 RESISTANCE (kΩ) Figure 10. Fault Retry Time as a Function of the RRETRY Resistor VBOOST (%) 40 35 30 25 20 15 10 5 0 0 5 10 15 20 25 30 35 40 45 50 RESISTANCE (kΩ) Figure 11. Voltage Boost as a Function of the RBOOST Resistor MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 87 Freescale Semiconductor, Inc. MC3PHAC/D Standalone Application Example Figure 12 shows an application example of the MC3PHAC, configured in standalone mode. Resistor values and jumpers have been selected to provide the following performance: 1. Base frequency of 60 Hz and positive PWM polarity (from Table 3) 2. PWM frequency resistor 3.9 kΩ, which implies 10.582 kHz from Table 4). (5v/(3.9k + 6.8k))*3.9k = 1.82 volts Freescale Semiconductor, Inc... 3. Dead-time resistor = 5.1 kΩ, which implies 4.5 µs (from Figure 9) 4. Fault retry time resistor = 8.2 kΩ, which implies 32.8 seconds (from Figure 10). 5. Voltage boost resistor = 12 kΩ, which implies 25.5 percent (from Figure 11). 6. The wiper of the acceleration potentiometer is set at 2.5 V = 64 Hz/second acceleration rate (from the Acceleration Control description on page 78.) The potentiometer, in this case, could have been a resistor divider. If a resistor divider is used in place of the acceleration potentiometer, keep the total resistance of the two resistors less than 10 kΩ. Always use 4.7kΩ in series with the center of the acceleration voltage divider resistors, connected to the ACCEL (pin 27) as shown in the application example, Figure 12. 7. Crystal/resonator capacitor values are typical values from the manufacturer. Refer to the manufacturers data for actual values. PC Master Software Operation Introduction to PC Master Host Software The MC3PHAC is compatible with Motorola’s PC master host software serial interface protocol. Communication occurs over an on-chip UART, on the MC3PHAC at 9600 baud to an external master device, which may be a microcontroller that also has an integrated UART or a personal computer via a COM port. With PC master software, an external controller can monitor and control all aspects of the MC3PHAC operation. When the MC3PHAC is placed in PC master software mode, all control of the system is provided through the integrated UART, resident on the MC3PHAC. Inputs such as START, FWD, SPEED, ACCEL, MUX_IN, and PWMPOL_BASEFREQ have no controlling influence over operation of the system. Even though the SPEED, START, and FWD inputs are disabled while the system is in PC master software mode, through PC master software, it is possible to monitor the state of those inputs. 88 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation +5 V 6.8 kΩ 50 Hz – PWM POLARITY NC 50 Hz + PWM POLARITY NC 60 Hz – PWM POLARITY 60 Hz + PWM POLARITY FROM DIVIDED DC BUS 0.1 µF 1 2 3 4 A 22 pF 10 MΩ 22 pF DC_BUS 28 VREF RESET ACCEL VDDA SPEED VSSA MUX_IN 5 OSC2 START 6 OSC1 0.1 µF 7 PLLCAP NOTE 7 8 9 6 — PWMs TO POWER STAGE 10 11 12 13 14 5 kΩ 4.7 kΩ MC3PHAC FWD VSS PWMPOL_BASEFREQ VDD PWM_U_TOP VBOOST_MODE PWM_U_BOT DT_FAULTOUT PWM_V_TOP RBRAKE PWM_V_BOT RETRY/TxD PWM_W_TOP PWMFREQ/RxD PWM_W_BOT FAULTIN A 27 5 kΩ 4.7 kΩ 26 +5 A 25 A +5 V 24 23 22 21 +5 RBOOST 20 12 kΩ 19 18 15 NOTE 1 RDEADTIME NOTE 2 5.1 kΩ TO RESISTIVE BRAKE DRIVER RRETRY 17 8.2 kΩ 16 10 kΩ +5 NOTE 6 10 kΩ START/STOP RESET 4.0 MHz Freescale Semiconductor, Inc... NOTE 6 +5 A SPEED POT +5 A 10 kΩ FOR/REV +5 V ACCELERATION POT NC RPWMFREQ 3.9 kΩ NOTE 3 NOTE 4 NOTE 5 FROM SYSTEM FAULT DETECTION CIRCUIT Notes: 1. See Figure 11. 2. See Figure 9. 3. See Figure 10. 4. See Table 4. 5. If no external fault circuit is provided, connect to VSS. 6. Use bypass capacitors placed close to the MC3PHAC. 7. Consult crystal/resonator manufacturer for component values. Figure 12. MC3PHAC Application Example in Standalone Mode MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 89 Freescale Semiconductor, Inc. MC3PHAC/D The most popular master implementation is a PC, where a graphical user interface (GUI) has been layered on top of the PC master software command protocol, complete with a graphical data display, and an ActiveX interface. Figure 13 shows the MC3PHAC configured in PC master software mode. It is beyond the scope of this document to describe the PC master software protocol or its implementation on a personal computer. For further information on these topics, refer to other Motorola documents relating to the PC master software protocol and availability of PC master host software. Freescale Semiconductor, Inc... +5 V 10 kΩ NOTE 2 +5 A 1 RESET 0.1 µF 2 22 pF 10 MΩ 22 pF 4.0 MHz 3 0.1 µF NOTE 3 +5 V 8 9 10 11 FROM DIVIDED DC BUS ACCEL 27 SPEED 26 RESET VDDA MUX_IN 5 OSC2 6 OSC1 7 6 — PWMs TO POWER STAGE DC_BUS 28 VREF 4 V SSA A 10 kΩ MC3PHAC START FWD 24 22 PWMPOL_BASEFREQ VDD 21 PWM_U_BOT DT_FAULTOUT PWM_V_TOP RBRAKE 12 PWM_V_BOT 13 PWM_W_TOP 14 PWM_W_BOT 560 Ω 23 VSS VBOOST_MODE +5 V 25 PLLCAP PWM_U_TOP 10 kΩ NOTE 2 FAULT LED +5 20 19 18 RETRY/TxD 17 DATA TO PC DATA FROM PC 16 PWMFREQ/RxD NOTE 1 15 FAULTIN TO RESISTIVE BRAKE DRIVER ISOLATED CONNECTION OR NON-ISOLATED TO HOST RS232 INTERFACE FROM SYSTEM FAULT DETECTION CIRCUIT Notes: 1. If no external fault circuit is provided, connect to VSS. 2. Use bypass capacitors placed close to the MC3PHAC. 3. Consult crystal/resonator manufacturer for component values. Figure 13. MC3PHAC Configuration for Using a PC as a Master 90 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation PC Master Software Operation with the MC3PHAC When power is first applied to the MC3PHAC, or if a logic low level is applied to the RESET pin, the MC3PHAC enters PC master software mode if the VBOOST_MODE pin is low during the initialization phase. The MC3PHAC recognizes a subset of the PC master software command set, which is listed in Table 5. Table 5. Recognized PC Host Software Commands Freescale Semiconductor, Inc... Command Description GETINFOBRIEF MC3PHAC responds with brief summary of hardware setup and link configuration information READVAR8 MC3PHAC reads an 8-bit variable at a specified address and responds with its value READVAR16 MC3PHAC reads a 16-bit variable at a specified address and responds with its value READVAR32 MC3PHAC reads a 32-bit variable at a specified address and responds with its value WRITEVAR8 MC3PHAC writes an 8-bit variable at a specified address WRITEVAR16 MC3PHAC writes a 16-bit variable at a specified address With the READVARx commands, the addresses are checked for validity, and the command is executed only if the address is within proper limits. In general, a read command with an address value below $0060 or above $EE03 will not execute properly, but instead will return an invalid operation response. An exception to this rule is that PC master software allows reading locations $0001, $0036 and $FE01, which are PORTB data register, Dead Time register and SIM Reset Status registers respectively. The addresses for the WRITEVARx commands are checked for validity, and the data field is also limited to a valid range for each variable. See Table 6 for a list of valid data values and valid write addresses. User interface variables and their associated PC master software addresses within the MC3PHAC are listed in Table 6. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 91 Freescale Semiconductor, Inc. MC3PHAC/D Freescale Semiconductor, Inc... Table 6. User Interface Variables for Use with PC Master Software Name Address Read/ Write Size (Bytes) Description Valid Data Commanded direction $1000 W 1 Determines whether the motor should go forward, reverse, or stop Forward — $10 Reverse — $11 Stop — $20 Command reset $1000 W 1 Forces the MC3PHAC to perform an immediate reset 1 Specifies the frequency of the MC3PHAC PWM frequency 2 The modulus value supplied to the PWM generator used by the MC3PHAC — value is multiplied by 250 ns to obtain PWM period 1 Specifies the polarity of the MC3PHAC PWM outputs. This is a write once parameter after reset. Example: $50 = Bottom and top PWM outputs are positive polarity. Commanded PWM frequency(1) Measured PWM period Commanded PWM polarity(2), (3), (4) $1000 $00A8 $1000 W R W $30 5.3 kHz — $41 10.6 kHz — $42 15.9 kHz — $44 21.1 kHz — $48 $00BD–$05E8 B + T + $50 B + T – $54 B – T + $58 B – T – $5C $0036 R/W 1 Specifies the dead time used by the PWM generator. Dead time = Value * 125 ns. This is a write-once parameter. Base frequency(3) $1000 W 1 Specifies the motor frequency at which full voltage is applied 60 Hz — $60 50 Hz — $61 Acceleration(3) $0060 R/W 2 Acceleration in Hz/sec (7.9 format)(8) $0000–$7FFF Commanded motor frequency(3) $0062 R/W 2 Commanded frequency in Hz. (8.8 format)(9) $0000–$7FFF Actual frequency $0085 R 2 Actual frequency in Hz. (8.8 format)(9) $0000–$7FFF Status(7) $00C8 R 1 Status byte $00–$FF Voltage boost $006C R/W 1 0 Hz voltage. %Voltage boost = Value/$FF $00–$FF $00–$FF $00–$FF Dead time(2), (3), (4) Modulation index $0091 R 1 Voltage level (motor waveform amplitude percent assuming no bus ripple compensation) Modulation index = value/$FF Maximum voltage $0075 R/W 1 Maximum allowable modulation index value %Maximum voltage = value/$FF VBus voltage(5), (10) $0079 R 2 DC bus voltage reading 92 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com $00–$FF $000–$3FF MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation Table 6. User Interface Variables for Use with PC Master Software (Continued) Freescale Semiconductor, Inc... Name Address Read/ Write Size (Bytes) Description Valid Data Fault timeout $006A R/W 2 Specifies the delay time after a fault condition before re-enabling the motor. Fault timeout = value * 0.262 sec Fault timer $006D R 2 Real-time display of the fault timer Elapsed fault time = value * 0.262 sec $0000–$FFFF VBus decel value(10) $00C9 R/W 2 VBus readings above this value result in reduced deceleration. $0000–$03FF VBus RBRAKE value(10) $0064 R/W 2 VBus readings above this value result in the RBRAKE pin being asserted. $0000–$03FF VBus brownout value(10) $0066 R/W 2 VBus readings below this value result in an under voltage fault. $0000–$03FF VBus over voltage value(10) $0068 R/W 2 VBus readings above this value result in an over voltage fault. $0000–$03FF Speed in ADC value(5) $0095 R 2 Left justified 10-bit ADC reading of the SPEED input pin. $0000–$FFC0 Setup(7) $00AE R 1 Bit field indicating which setup parameters have been initialized before motion is permitted $E0–$FF Switch in(7) $0001 R 1 Bit field indicating the current state of the start/stop and forward/reverse switches $00–$FF Reset status(6), (7) $FE01 R 1 Indicates cause of the last reset $00–$FF Version $EE00 R 4 MC3PHAC version $0000–$FFFF ASCII field 1. The commanded PWM frequency cannot be written until the PWM outputs exit the high-impedance state. The default PWM frequency is 15.873 kHz. 2. The PWM output pins remain in a high-impedance state until this parameter is specified. 3. This parameter must be specified before motor motion can be initiated by the MC3PHAC. 4. This is a write-once parameter. The first write to this address will execute normally. Further attempts at writing this parameter will result in an illegal operation response from the MC3PHAC. 5. The value of this parameter is not valid until the PWM outputs exit the high-impedance state. 6. The data in this field is only valid for one read. Further reads will return a value of $00. 7. See register bit descriptions following this table. 8. Acceleration is an unsigned value with the upper seven bits range of $00 to $7F = acceleration value of 0 to 127 Hertz/second. The lower nine bits constitute the fractional portion of the acceleration parameter. Its range is $000 to $1FF which equals 0 to ~1. Therefore, the range of acceleration is 0 to 127.99 Hertz/second. 9. Commanded motor frequency and actual frequency are signed values with the upper byte range of $00 to $7F = frequency of 0 to 127 Hz. The lower byte is the fractional portion of the frequency. Its range is $00 to $FF which equals 0 to ~1. 10. VBus is the voltage value applied to the DC_BUS analog input pin. The analog-to-digital converter is a 10-bit converter with a 5 volt full scale input. The value is equal to the voltage applied to the DC_BUS input pin/VREF * $03FF. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 93 Freescale Semiconductor, Inc. MC3PHAC/D Each bit variable listed in Table 6 is defined in Figure 14, Figure 15, Figure 16, and Figure 17. Address: $00C8 Bit 7 6 5 SPEED FORWARD CHANGING MOTION Read: 4 3 2 1 Bit 0 MOTOR ENERGIZED RESISTIVE BRAKE EXTERNAL FAULT TRIP OVERVOLTAGE TRIP UNDER VOLTAGE TRIP 0 0 U 0 0 Write: Freescale Semiconductor, Inc... Reset: U 0 1 = Unimplemented U = Unaffected Figure 14. Status Register SPEED CHANGING Bit This read-only bit indicates if the motor is at a steady speed or if it is accelerating or declerating. 1 = Motor is accelerating or decelerating. 0 = Motor is at a steady speed. FORWARD MOTION Bit This read-only bit indicates the direction of the motor. It also indicates if the motor is stopped. 1 = Motor is rotating in the forward direction. If this bit is a logic 1 and the actual frequency (location $0085 and $0086) is 0, the motor is stopped. 0 = Motor is rotating in the reverse direction. MOTOR ENERGIZED Bit This read-only bit indicates PWM output activity 1 = All PWM outputs are active. 0 = The PWM outputs are inactive or the bottom PWM outputs are in the pre-charge cycle. RESISTIVE BREAK Bit This read-only bit indicates the state of the RBRAKE output pin 1 = The RBRAKE output pin is active. Braking is in progress. 0 = The RBRAKE output pin is inactive and no braking is in progress. 94 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation EXTERNAL FAULT TRIP Bit This read-only bit indicates a FAULT has occurred resulting from a logic 1 applied to the FAULTIN pin. 1 = A logic 1 was applied to the FAULTIN pin and a FAULT timeout is still in progress. 0 = A logic 0 is applied to the FAULTIN pin and no FAULT timeout is in progress. Freescale Semiconductor, Inc... OVER-VOLTAGE TRIP Bit This read-only bit indicates if the voltage at the DC_BUS pin exceeds the preset value of VBus over voltage located at address $0068 and $0069. 1 = The voltage applied to the DC_BUS pin has exceeded the preset value of VBus over voltage and a FAULT timeout is still in progress. 0 = The voltage applied to the DC_BUS pin is less than the preset value of VBus over voltage and a FAULT timeout is not in progress. UNDER-VOLTAGE Bit This read-only bit indicates if the voltage at the DC_BUS pin is less than the present value of VBus brownout located at address $0066 and $0067. 1 = The voltage applied to the DC_BUS pin is less than the present value of VBus under voltage and a FAULT timeout is still in progress. 0 = The voltage applied to the DC-BUS pin is greater than the preset value of VBus under voltage and a FAULT timeout is not in progress. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 95 Freescale Semiconductor, Inc. MC3PHAC/D Address: $00AE Bit 7 6 5 Read: 4 3 BASE FREQUENCY SET SPEED SET 0 0 2 1 Bit 0 ACCELER- POLARITY DEAD TIME ATION SET SET SET Write: Reset: 1 1 1 0 0 0 = Unimplemented Freescale Semiconductor, Inc... Figure 15. Setup Register BASE FREQUENCY SET Bit This read-only bit indicates if the base frequency parameter has been set. 1 = Base frequency parameter has been set. 0 = Base frequency parameter has not been set. SPEED SET Bit This read-only bit indicates if the speed parameter has been set. 1 = Speed parameter has been set. 0 = Speed parameter has not been set. ACCELERATION SET Bit This read-only bit indicates if the acceleration rate parameter has been set. 1 = Acceleration rate parameter has been set. 0 = Acceleration rate parameter has not been set. POLARITY SET Bit This read-only bit indicates if the PWM polarity parameters has been set. 1 = PWM polarity parameters has been set. 0 = PWM polarity parameters has not been set. DEAD TIME SET Bit This read-only bit indicates if the dead time parameter has been set. 1 = Dead time parameter has been set. 0 = Dead time parameter has not been set. 96 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation Address: $0001 Bit 7 Read: 6 5 START/ STOP FWD/ REVERSE U U 4 3 2 FAULT OUT RESISTOR BRAKE U 0 1 Bit 0 U U Write: Reset: U = Unimplemented U U = Unaffected Freescale Semiconductor, Inc... Figure 16. Switch In Register START/STOP Bit This read-only bit indicates the state of the START input pin. 1 = The START input pin is at a logic 1. 0 = The START input pin is at a logic 0. FWD/REVERSE Bit This read-only bit indicates the state of the FWD input pin. 1 = The FWD input pin is at a logic 1 0 = The FWD input pin is at a logic 0 FAULT OUT Bit This read-only bit indicates the state of the DT_FAULTOUT output pin. 1 = The DT_FAULTOUT output pin is indicating no fault condition. 0 = The DT_FAULTOUT output pin is indicating a fault condition. RESISTIVE BRAKE Bit This read-only bit indicates the state of resistive brake pin (RBRAKE). 1 = The RBRAKE output pin in active. Braking is in progress. 0 = The RBRAKE output pin in inactive and no braking is in progress. MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 97 Freescale Semiconductor, Inc. MC3PHAC/D Address: Read: $FE01 Bit 7 6 POWER UP RESET PIN 1 0 5 4 3 2 PC MASTER MC3PHAC MC3PHAC SOFTWARE FUNCTIONAL FUNCTIONAL RESET FAULT FAULT COMMAND 1 Bit 0 LOW VDD VOLTAGE Write: Reset: 0 0 0 0 0 0 = Unimplemented Freescale Semiconductor, Inc... Figure 17. Reset Status Register POWER UP Bit This read-only bit indicates the last system reset was caused by the powerup reset detection circuit. 1 = The last reset was caused by an initial power-up of the MC3PHAC. 0 = Power-up reset was not the source of the reset or a read of the reset status register after the first read. RESET PIN Bit This read-only bit indicates the last system reset was caused from the RESET input pin. 1 = Last reset was caused by an external reset applied to the RESET input pin. 0 = The RESET pin was not the source of the reset or a read of the reset status register after the first read. MC3PHAC FUNCTIONAL FAULT Bits This read-only bit indicates if the last system reset was the result of an internal system error. 1 = MC3PHAC internal system error 0 = The FUNCTIONAL FAULT was not the source of the reset or a read of the reset status register after the first read. PC MASTER SOFTWARE RESET COMMAND Bit This read-only bit indicates the last system reset was the result of a PC master software reset command. 1 = The MC3PHAC was reset by the PC master software command reset as the result of a write of $30 to location $1000 0 = The PC master software RESET COMMAND was not the source of the reset or a read of the reset status register after the first read. LOW VDD VOLTAGE Bit This read-only bit indicates if the last reset was the result of low VDD applied to the MC3PHAC. 1 = The last reset was caused by the low power supply detection circuit. 0 = The LOW VDD was not the source of the reset or a read of the reset status register after the first read. 98 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Operation Command State Machine When using the PC master software mode of operation, the command state machine governs behavior of the device depending upon its current state, system parameters, any new commands received via the communications link, and the prevailing conditions of the system. The command state diagram is in Figure 18. It illustrates the sequence of commands which are necessary to bring the device from the reset condition to running the motor in a steady state and depicts the permissible state transitions. The device will remain within a given state unless the conditions shown for a transition are met. Freescale Semiconductor, Inc... Some commands only cause a temporary state change to occur. While they are being executed, the state machine will automatically return to the state which existed prior to the command being received. For example, the motor speed may be changed from within any state by using the WRITEVAR16 command to write to the "Speed In" variable. This will cause the "Set Speed" state to be momentarily entered, the "Speed In" variable will be updated and then the original state will be re-entered. This allows the motor speed, acceleration or base frequency to be modified whether the motor is already accelerating, decelerating, or in a steady state. Each state is described here in more detail. MOTOROLA • Reset — This state is entered when a device power-on reset (POR), pin reset, loss of crystal, internally detected error, or reset command occurs from within any state. In this state, the device is initialized and the PWM outputs are configured to high impedance. This state is then automatically exited. • PWMHighZ — This state is entered from the reset state. This state is also re-entered after one and only one of the PWM dead-time or polarity parameters have been initialized. In this state the PWM outputs are configured to a high-impedance state as the device waits for both the PWM dead time and polarity to be initialized. • SetDeadTime (write once) — This state is entered from the PWMHighZ state the first time that a write to the PWM dead-time variable occurs. In this state, the PWM dead time is initialized and the state is then automatically exited. This state cannot be re-entered, and hence the dead time cannot be modified, unless the reset state is first re-entered. • SetPolarity (write once) — This state is entered from the PWMHighZ state the first time that the PWM polarity command is received. In this state, the PWM polarity is initialized and the state is then automatically exited. This state cannot be re-entered, and hence the polarity cannot be modified, unless the reset state is first re-entered. 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 99 Freescale Semiconductor, Inc. MC3PHAC/D CmdBaseFreqxx from any state CmdReset Reset or POR or Loss of Crystal or Internal Error SetBaseFreq Reset Done (return to calling state) e tim ad:De SetDeadTime Initialized 8 AR EV T I e WR don WRITEVAR16:Acceleration from any state (write once) CmdPWMTxBx Freescale Semiconductor, Inc... SetAccel SetPolarity PWMHighZ (write once) done Done (return to calling state) PWM dead-time set & PWM polarity set WRITEVAR16:Speed In from any state Other PC master software command from any state PWMOFF SetSpeed Execute PC Master Cmd PWM base freq. set & Acceleration set & Speed In set Done (return to calling state) d& e ove t Don m u e lt R meo Fauult Ti Fa Fault Done (return to calling state) PWM0RPM Done & CmdRev CmdRev & Actual speed = 0 CmdFwd& Actual speed = 0 CmdRev | CmdStop FwdDecel 0 C Ac mdS tu to al p& sp ee d= PWMPump Done & CmdFwd = p& ed to pe dS al s Cmctu A Fault 0 CmdFwd| CmdRev CmdFwd| CmdStop FwdAccel (S Actual speed = Speed In > Cm pe Speed In Actual Speed e dR d I ev n < |C A m ctu dS al to sp FwdSteady p ee d) | RevAccel Speed In > Actual Speed RevDecel Actual speed = Speed In RevSteady )| d ee p ls a u p ct to A dS < In | Cm d d e pe Fw (S md C Figure 18. PC Host Software Command State Diagram 100 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... MC3PHAC/D Operation MOTOROLA • PWMOFF — This state is entered from the PWMHighZ state if both the PWM dead time and polarity have been configured. In this state, the PWM is activated and all the PWM outputs are driven off for the chosen polarity. The device then waits for the PWM base frequency, motor speed, and acceleration to be initialized. • PWM0RPM — This state is entered from the PWMOFF state when the PWM base frequency, motor speed, and acceleration have been initialized. This state can also be entered from the FwdDecel or RevDecel states if a CmdStop command has been received, and the actual motor speed has decelerated to 0 r.p.m. In this state, the PWM pins are driven to the off state for the chosen polarity. The only exit of this state is to the PWMPump state, which occurs when a CmdFwd or CmdRev command is received. • PWMPump — This state is entered from the PWM0RPM state when a CmdFwd or CmdRev command is received. In this state the top PWM outputs are driven off while the bottom PWM outputs are driven with a 50 percent duty cycle. This allows high side transistor gate drive circuits which require charge pumping from the lower transistors to be charged up prior to applying full PWMs to energize the motor. This state is automatically exited after the defined amount of time tPump (see Electrical Characteristics). • FwdAccel — This state is entered from the PWMPump state after a CmdFwd command is received and the timeout interval from the PWMPump state is completed. This state can also be entered from the FwdSteady state if the Speed In variable is increased above the actual current speed and the RevDecel state if the actual motor speed equals 0 r.p.m. when a CmdFwd command has been received. In this state the motor is accelerated forward according to the chosen parameters. • FwdSteady — This state is entered from the FwdAccel state after the actual motor speed has reached the requested speed defined by the Speed In variable. In this state, the motor is held at a constant forward speed. • FwdDecel — This state is entered from the FwdAccel or FwdSteady states whenever a CmdStop or CmdRev command is received. This state can also be entered from the FwdSteady state if the Speed In variable is decreased below the actual current speed. In this state, the motor is decelerated forward according to the chosen parameters. • RevAccel — This state is entered from the PWMPump state. After a CmdRev command is received and the timeout interval from the PWMPump state is completed. This state can also be entered from the RevSteady state if the Speed In variable is increased above the actual current speed and the FwdDecel state if the actual motor speed equals 0 r.p.m. when a CmdRev command has been received. In this state, the motor is accelerated in reverse according to the chosen parameters. 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 101 Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... MC3PHAC/D 102 • RevSteady — This state is entered from the RevAccel state after the actual motor speed has reached the requested speed defined by the Speed In variable. In this state, the motor is held at a constant reverse speed. • RevDecel — This state is entered from the RevAccel or RevSteady states whenever a CmdStop or CmdFwd command is received. This state can also be entered from the RevSteady state if the Speed In variable is decreased below the actual current speed. In this state, the motor is decelerated in reverse according to the chosen parameters. • SetBaseFreq — This state is entered from any state whenever a CmdBaseFreqxx command is received. In this state, the motor frequency at which full voltage is applied is configured and the state is then automatically exited and the original state is re-entered. • SetAccel — This state is entered from any state whenever a write to the Acceleration variable occurs. In this state, the motor acceleration is configured and the state is then automatically exited and the original state is re-entered. • SetSpeed — This state is entered from any state whenever a write to the Speed In variable occurs. In this state, the requested motor speed is configured and the state is then automatically exited and the original state is re-entered. • Fault — This state is entered from any state whenever a fault condition occurs (see Fault Protection on page 80). In this state, the PWM outputs are driven off (unless the fault state was entered from the PWMHighZ state, in which case, the PWM outputs remain in the High Z state). When the problem causing the fault condition is removed, a timer is started which will wait a specified amount of time (which is user programmable) before exiting this state. Under normal operating conditions, this timeout will cause the Fault state to be automatically exited to the PWM0RPM state, where motion will once again be initiated if a CmdFwd or CmdRev has been received. The exceptions to this rule are the cases when the Fault state was entered from the PWMHighZ or PWMOFF states, in which case, exiting from the Fault state will return back to these states. 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Optoisolated RS232 Interface Application Example Optoisolated RS232 Interface Application Example Freescale Semiconductor, Inc... Some motor control systems have the control electronics operating at the same potential as the high voltage bus. Connecting a PC to that system could present safety issues, due to the high voltage potential between the motor control system and the PC. Figure 19 is an example of a simple circuit that can be used with the MC3PHAC to isolate the serial port of the PC from the motor control system. The circuit in Figure 19 is the schematic of a half-duplex optoisolated RS232 interface. This isolated terminal interface provides a margin of safety between the motor control system and a personal computer. The EIA RS232 specification states the signal levels can range from 3to 25 volts. A Mark is defined by the EIA RS232 specification as a signal that ranges from –3 to –25 volts. A Space is defined as a signal that ranges from +3 to +25 volts. Therefore, to meet the RS232 specification, signals to and from a terminal must transition through 0 volts as it changes from a Mark to a Space. Breaking the circuit down into an input and output section simplifies the explanation of the circuit. D1 1N4148 D2 1N4148 J1 5 9 4 8 3 7 2 6 1 CON/CANNON9 FEMALE GND DTR TxD RTS RxD R1 1 kΩ D3 1N4148 R3 4.7 kΩ +5 V U1 4N35 1 4 2 5 R2 1 kΩ TO MC3PHAC PIN 16 + C1 2.2 µF/50 V 4 1 R4 +5 V 330 Ω 5 ~+12 V U2 4N35 2 TO MC3PHAC PIN 17 ISOLATION BARRIER RS232 ISOLATED HALF-DUPLEX, MAXIMUM 9600 BAUD Figure 19. Optoisolated RS232 Circuit MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 103 Freescale Semiconductor, Inc. MC3PHAC/D Freescale Semiconductor, Inc... To send data from a PC to the MC3PHAC, it is necessary to satisfy the serial input of the MC3PHAC. In the idle condition, the serial input of the MC3PHAC must be at a logic 1. To accomplish that, the transistor in U1 must be turned off. The idle state of the transmit data line (TxD) from the PC serial port is a Mark (–3 to –25 volts). Therefore, the diode in U1 is off and the transistor in U1 is off, yielding a logic 1 to the MC3PHAC’s serial input. When the start bit is sent to the MC3PHAC from the PC’s serial port, the PC’s TxD transitions from a Mark to a Space (+3 to +25 volts), thus forward biasing the diode in U1. Forward biasing the diode in D1 turns on the transistor in U1, providing a logic 0 to the serial input of the MC3PHAC. Simply stated, the input half of the circuit provides input isolation, signal inversion, and level shifting from the PC to the MC3PHAC’s serial port. An RS-232 line receiver, such as an MC1489, serves the same purpose without the optoisolation function. To send data from the MC3PHAC to the PC’s serial port input, it is necessary to satisfy the PC’s receive data (RxD) input requirements. In an idle condition, the RxD input to the PC must be at Mark (–3 to –25 volts). The data terminal ready output (DTR) on the PC outputs a Mark when the port is initialized. The request to send (RTS) output is set to a Space (+3 to +25 volts) when the PC’s serial port is initialized. Because the interface is half-duplex, the PC’s TxD output is also at a Mark, as it is idle. The idle state of the MC3PHAC’s serial port output is a logic 1. The logic 1 out of the MC3PHAC’s serial port output port forces the diode in U2 to be turned off. With the diode in U2 turned off, the transistor in U2 is also turned off. The junction of D2 and D3 are at a Mark (–3 to –25 volts). With the transistor in U2 turned off, the input is pulled to a Mark through current limiting resistor R3, satisfying the PC’s serial input in an idle condition. When a start bit is sent from the MC3PHAC’s serial port, it transitions to a logic 0. That logic 0 turns on the diode in U2, thus turning on the transistor in U2. The conducting transistor in U2 passes the voltage output from the PC’s RTS output, that is now at a Space (+3 to +25 volts), to the PC’s receive data (RxD) input. Capacitor C1 is a bypass capacitor used to stiffen the Mark signal. The output half of the circuit provides output isolation, signal inversion, and level shifting from the MC3PHAC’s serial output port to the PC’s serial port. An RS-232 line driver, such as a MC1488, serves the same purpose without the optoisolation function. Mechanical Data This subsection provides case outline drawings for: 104 • Plastic 28-pin DIP, Figure 20 • Plastic 28-pin SOIC, Figure 21 • Plastic 32-pin QFP, Figure 22 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. MC3PHAC/D Mechanical Data 28 NOTES: 1. POSITIONAL TOLERANCE OF LEADS (D), SHALL BE WITHIN 0.25mm (0.010) AT MAXIMUM MATERIAL CONDITION, IN RELATION TO SEATING PLANE AND EACH OTHER. 2. DIMENSION L TO CENTER OF LEADS WHEN FORMED PARALLEL. 3. DIMENSION B DOES NOT INCLUDE MOLD FLASH. 15 B 1 14 A DIM A B C D F G H J K L M N L C Freescale Semiconductor, Inc... N H G F M K D J SEATING PLANE MILLIMETERS MIN MAX 36.45 37.21 13.72 14.22 3.94 5.08 0.36 0.56 1.02 1.52 2.54 BSC 1.65 2.16 0.20 0.38 2.92 3.43 15.24 BSC 0° 15° 0.51 1.02 INCHES MIN MAX 1.435 1.465 0.540 0.560 0.155 0.200 0.014 0.022 0.040 0.060 0.100 BSC 0.065 0.085 0.008 0.015 0.115 0.135 0.600 BSC 0° 15° 0.020 0.040 Figure 20. Plastic 28-Pin DIP (Case 710) -A28 NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DIMENSION A AND B DO NOT INCLUDE MOLD PROTRUSION. 4. MAXIMUM MOLD PROTRUSION 0.15 (0.006) PER SIDE. 5. DIMENSION D DOES NOT INCLUDE DAMBAR PROTRUSION. ALLOWABLE DAMBAR PROTRUSION SHALL BE 0.13 (0.005) TOTAL IN EXCESS OF D DIMENSION AT MAXIMUM MATERIAL CONDITION. 15 14X -B1 P 0.010 (0.25) M B M 14 28X D 0.010 (0.25) M T A S B M S R X 45° C -T26X -T- G K SEATING PLANE F J DIM A B C D F G J K M P R MILLIMETERS MIN MAX 17.80 18.05 7.40 7.60 2.35 2.65 0.35 0.49 0.41 0.90 1.27 BSC 0.23 0.32 0.13 0.29 0° 8° 10.05 10.55 0.25 0.75 INCHES MIN MAX 0.701 0.711 0.292 0.299 0.093 0.104 0.014 0.019 0.016 0.035 0.050 BSC 0.009 0.013 0.005 0.011 0° 8° 0.395 0.415 0.010 0.029 Figure 21. Plastic 28-Pin SOIC (Case 751F) MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 105 Freescale Semiconductor, Inc. A –T–, –U–, –Z– MC3PHAC/D 4X A1 32 0.20 (0.008) AB T–U Z 25 1 –U– –T– B V AE P B1 DETAIL Y 17 8 V1 AE DETAIL Y 9 4X Freescale Semiconductor, Inc... –Z– 9 0.20 (0.008) AC T–U Z S1 S DETAIL AD G –AB– 0.10 (0.004) AC AC T–U Z –AC– BASE METAL ÉÉ ÉÉ ÉÉ ÉÉ F 8X M_ R J M N D 0.20 (0.008) SEATING PLANE SECTION AE–AE W K X DETAIL AD Q_ GAUGE PLANE H 0.250 (0.010) C E NOTES: 1. DIMENSIONING AND TOLERANCING PER ANSI Y14.5M, 1982. 2. CONTROLLING DIMENSION: MILLIMETER. 3. DATUM PLANE –AB– IS LOCATED AT BOTTOM OF LEAD AND IS COINCIDENT WITH THE LEAD WHERE THE LEAD EXITS THE PLASTIC BODY AT THE BOTTOM OF THE PARTING LINE. 4. DATUMS –T–, –U–, AND –Z– TO BE DETERMINED AT DATUM PLANE –AB–. 5. DIMENSIONS S AND V TO BE DETERMINED AT SEATING PLANE –AC–. 6. DIMENSIONS A AND B DO NOT INCLUDE MOLD PROTRUSION. ALLOWABLE PROTRUSION IS 0.250 (0.010) PER SIDE. DIMENSIONS A AND B DO INCLUDE MOLD MISMATCH AND ARE DETERMINED AT DATUM PLANE –AB–. 7. DIMENSION D DOES NOT INCLUDE DAMBAR PROTRUSION. DAMBAR PROTRUSION SHALL NOT CAUSE THE D DIMENSION TO EXCEED 0.520 (0.020). 8. MINIMUM SOLDER PLATE THICKNESS SHALL BE 0.0076 (0.0003). 9. EXACT SHAPE OF EACH CORNER MAY VARY FROM DEPICTION. DIM A A1 B B1 C D E F G H J K M N P Q R S S1 V V1 W X MILLIMETERS MIN MAX 7.000 BSC 3.500 BSC 7.000 BSC 3.500 BSC 1.400 1.600 0.300 0.450 1.350 1.450 0.300 0.400 0.800 BSC 0.050 0.150 0.090 0.200 0.500 0.700 12_ REF 0.090 0.160 0.400 BSC 1_ 5_ 0.150 0.250 9.000 BSC 4.500 BSC 9.000 BSC 4.500 BSC 0.200 REF 1.000 REF INCHES MIN MAX 0.276 BSC 0.138 BSC 0.276 BSC 0.138 BSC 0.055 0.063 0.012 0.018 0.053 0.057 0.012 0.016 0.031 BSC 0.002 0.006 0.004 0.008 0.020 0.028 12_ REF 0.004 0.006 0.016 BSC 1_ 5_ 0.006 0.010 0.354 BSC 0.177 BSC 0.354 BSC 0.177 BSC 0.008 REF 0.039 REF Figure 22. Plastic 32-Pin QFP (Case 873A) 106 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com MOTOROLA Freescale Semiconductor, Inc. Freescale Semiconductor, Inc... MC3PHAC/D Mechanical Data MOTOROLA 3-Phase AC Motor Controller For More Information On This Product, Go to: www.freescale.com 107 Freescale Semiconductor, Inc. HOW TO REACH US: USA/EUROPE/LOCATIONS NOT LISTED: Motorola Literature Distribution; P.O. Box 5405, Denver, Colorado 80217 1-303-675-2140 or 1-800-441-2447 JAPAN: Motorola Japan Ltd.; SPS, Technical Information Center, 3-20-1, Minami-Azabu Minato-ku, Tokyo 106-8573 Japan 81-3-3440-3569 Freescale Semiconductor, Inc... ASIA/PACIFIC: Information in this document is provided solely to enable system and software Motorola Semiconductors H.K. Ltd.; Silicon Harbour Centre, 2 Dai King Street, Tai Po Industrial Estate, Tai Po, N.T., Hong Kong 852-26668334 TECHNICAL INFORMATION CENTER: implementers to use Motorola products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. Motorola reserves the right to make changes without further notice to any products herein. Motorola makes no warranty, representation or guarantee regarding the 1-800-521-6274 suitability of its products for any particular purpose, nor does Motorola assume any HOME PAGE: liability arising out of the application or use of any product or circuit, and specifically http://www.motorola.com/semiconductors disclaims any and all liability, including without limitation consequential or incidental damages. “Typical” parameters which may be provided in Motorola data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. Motorola does not convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and the Stylized M Logo are registered in the U.S. Patent and Trademark Office. digital dna is a trademark of Motorola, Inc. All other product or service names are the property of their respective owners. Motorola, Inc. is an Equal Opportunity/Affirmative Action Employer. © Motorola, Inc. 2002 DRM006/D For More Information On This Product, Go to: www.freescale.com