Home

AN1911 Application Note

image

Contents

1. Motor Drive Specification Motor Characteristics Motor Type 4 poles three phase star connected squirrel cage AC motor standard industrial motor Speed Range lt 5000 rpm Base Electrical Frequency 50 Hz Max Electrical Power 180 W Delta Voltage rms 200V Star Drive Characteristics Transducers IRC 1024 pulses per rev Speed Range lt 2250 rpm 230 V lt 1200 rpm 115 V Line Input 230V 50Hz AC 115V 60Hz AC Max DC Bus Voltage 400 V Control Algorithm Open Loop Control Optoisolation Required Load Characteristic Type Varying The DSP runs the main control algorithm According to the user interface input and feedback signals it generates 3 phase PWM output signals for the motor inverter A standard system concept is chosen for the drive see Figure 4 1 The system incorporates the following hardware boards e Power Supply Rectifier e Three phase inverter e Feedback sensors speed DC Bus Voltage DC Bus Current Temperature e Optoisolation e Evaluation Board DSP56F80X AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 7 System Design Concept Rectifier Three Phase Inverter DC Bus Line Voltage 230V 50Hz iji O M AM M Temperature IRC Current amp Isolation Barrier Voltage Sensing Optoisolation Optoisolation Temperature Over Current amp DC Bus Voltage Over Voltage Temperature amp Voltage Processing F
2. Motor Brake AM40V SG40N supplied as ECMTRHIVAC Warning It is strongly recommended to use opto isolation optocouplers and optoisolation amplifiers during the development time to avoid any damage to the development equipment Notes The detailed description of individual boards can be found in comprehensive User s Manuals belonging to each board The user manual incorporates the schematic of the board description of individual function blocks and bill of materials The individual boards can be ordered from Motorola as a standard product from hittp mot sps com motor devtools index html 10 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Software Design 6 Software Design This section describes the design of the software blocks of the drive The software will be described in terms of Data Flow and State Diagrams 6 1 Data Flow The requirements of the drive dictate that software gathers some values from the user interface and sensors processes them and generates 3 phase PWM signals for the inverter The control algorithm of open loop AC drive is described in Figure 6 1 It contains the processes described in the following sub sections The detailed description is given to the subroutines 3 phase PWM calculation and Volt per Hertz control algorithm Temperature DC Bus Voltage PC SPEED INCREMENTAL A D A D MASTER SETTING ENCODER ye Omega_desired u_dc_bus Speed Measurement Acceleratio
3. Bus line Name of callback function in code pwm_Fault_A_ISR void This subroutine is called at PWM A or PWM in case of DSP56F803 Fault Interrupt 6 2 6 ADC Conversion Complete ISR The following analog inputs are read e DC Bus Voltage e DC Bus Current e Temperature of Power Stage Module Also the detection of faults caused by Over heating and Under voltage is performed in this subroutine Name of callback function in code ADC_Callback_ISR This subroutine is called at ADC conversion completion 6 2 7 ADC High Limit ISR This subroutine turns on the resistive brake in DC Bus link when actual voltage in DC Bus u_dc_bus is higher than BRAKE_HIGH_LIMIT Name of callback function in code ADC_High_Limit_CallBack_ISR 6 2 8 ADC Low Limit ISR This subroutine turns off the resistive brake in DC Bus link when actual voltage in DC Bus u_dc_bus is lower than BRAKE_LOW_LIMIT Name of callback function in code ADC_Low_Limit_CallBack_ISR 6 2 9 Timer OC LED ISR This subroutine performs the LED flashing according the state of application Name of callback function in code LedISR void Access frequency is defined by constant TMR_I_PERIOD in definition section of program 6 2 10 Timer OC Ramp ISR This subroutine performes the calculation of Speed Ramp Name of callback function in code RampISR void Access frequency is defined by constant TMR_2_PERIOD in definition section of program AA MOTOROLA Indirect Power Factor Correcti
4. Emulation OnCE module for unobtrusive processor speed independent debugging Software programmable Phase Lock Loop based frequency synthesizer for the DSP core clock e Memory configuration 32252 x 16 bit words of Program Flash 512 x 16 bit words of Program RAM 2K x 16 bit words of Data RAM 4K x 16 bit words of Data Flash 2K x 16 bit words of Boot Flash Other than the fast Analog to Digital converter and 16 bit Quadrature Timers the most interesting peripheral from a motor control point of view is the Pulse Width Modulation PWM module Its highly flexible configuration permits efficient control of AC induction motors Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Target Motor Theory The PWM block has the following features e Three complementary PWM signal pairs or six independent PWM signals e Features of complementary channel operation e Deadtime insertion e Separate top and bottom pulse width correction via current status inputs or software e Separate top and bottom polarity control e Edge aligned or center aligned PWM signals e 15 bits of resolution e Half cycle reload capability e Integral reload rates from one to 16 e Individual software controlled PWM output e Programmable fault protection e Polarity control e 20 mA current sink capability on PWM pins e Write protectable registers The AC Motor control utilizes the PWM block set in the complementary PWM mode which c
5. Factor Correction Using DSP56F80X 23 9 References 3 Phase Brushless DC High Voltage Power Stage MEMC3BLDCPSUM D Motorola DSP56F800 16 bit Digital Signal Processor Family Manual DSP56F800FM D Motorola DSP56F80x 16 bit Digital Signal Processor User s Manual DSP56F801 7UM D Motorola DSP Evaluation Module Hardware User s Manual DSP56F80XEVMUM D Motorola Green Electronics Green Bottom Line Lee H Goldberg Chapter 2 Energy Efficient Three Phase AC Motor Drives for Appliance and Industrial Applications by Radim Visinka Low Cost 3 phase AC Motor Control System Based On MC68HC908MR24 Motorola Semiconductor Application Note AN1664 1998 Motorola Software Development Kit Optoisolation Board User s Manual MEMCOBUM D Motorola Web page http e www motorola com motor OnCE is a registered trademark of Motorola Inc 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 Al
6. chip These DSPs MA MOTOROLA Motorola Inc 2001 Motorola DSP Advantages and Features offer a rich dedicated peripheral set including Pulse Width Modulation PWM modules Analog to Digital Converters ADCs Timers communication peripherals SCI SPI CAN on board Flash and RAM Generally all family members are well suited for motor control The typical member of the family the DSP56F805 provides the following peripheral blocks Two Pulse Width Modulator modules each with six PWM outputs three Current Sense inputs and four Fault inputs fault tolerant design with dead time insertion supports both center and edge aligned modes Two 12 bit Analog to Digital Converters ADC which support two simultaneous conversions ADC can be synchronized by PWM modules Two Quadrature Decoders each with four inputs or two additional Quad Timers Two General Purpose Quad Timers totaling six pins Timer C with two pins and Timer D with four pins CAN 2 0 B Module with 2 pin port for transmit and receive Two Serial Communication Interfaces each with two pins or four additional GPIO lines Serial Peripheral Interface SPI with configurable four pin port or four additional GPIO lines 14 dedicated General Purpose I O GPIO pins 18 multiplexed GPIO pins Computer Operating Properly COP watchdog timer Two dedicated external interrupt pins External reset input pin for hardware reset External reset output pin for system reset JTAG On Chip
7. module center aligned complementary PWM mode positive polarity sets callback for PWM reload to every 4th PWM pulse sets callback for PWM faults sets of PWM modulus defines the PWM frequency enables fault interrupts sets up I O ports push buttons switch brake initializes Quadrature Decoder for speed measurement initializes algorithms V Hz look up table Sinewave generator enables interrupts The board identification routine identifies the connected power stage board by decoding the identified message send from the power stage In case the wrong power stage is connected the program goes to the infinite loop displays the fault status on the LED The state can be left only by the RESET 18 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA reset Initialization Application State Machine Check Run Stop Switch done ADC low limit Interrupt ADC Low Limit Interrupt Subroutine ADC high limit Interrupt ADC High Limit Interrup Subroutine ADC conversion complete Interrupt ADC Interrupt Subroutine i amp Software Design OC Timer for LED handling Interrupt Timer OC LED Subroutine OC Timer for Speed Ramp Interrupt Timer OC Speed Ramp Subroutine pe PWM A Reload Interrupt PWM Reload A Interrupt Subroutine PWM A Fault Interrupt PWM Fault A Interrupt Subrou
8. 8573 Japan 81 3 3440 3569 ASIA PACIFIC Motorola Semiconductors H K Ltd Silicon Harbour Centre 2 Dai King Street Tai Po Industrial Estate Tao Po N T Hong Kong 852 26668334 Technical Information Center 1 800 521 6274 HOME PAGE http motorola com semiconductors dsp MOTOROLA HOME PAGE hittp motorola com semiconductors MA MOTOROLA AN1911 D
9. MOTOROLA Order by AN1911 D Semiconductor Application Note Motorola Order Number Rev 0 04 01 3 Phase AC Motor Control Contents with V Hz Speed Open sits alma nd Loop Using DSP56F80X anc pg 3 1 3 Phase AC Induction Motors Design of Motor Control Application Based on Drs vassin 3 Motorola Software Development Kit 3 2 Volts per Hertz Control 5 4 System Design Concept 6 Petr Uhlir 5 Hardware sesseesesnvesssceseennnessseenen 9 Zdenek Kubiczek 5 1 System Outline oes 9 5 2 High Voltage Hardware Set 9 6 Software Design eseese 11 1 1 1 6 1 Data FIOW mieni n a 11 l j Introduction of Application 6 1 1 Acceleration Deceleration Benefit Rather 12 6 1 2 Speed Measurement 12 This Application Note describes the design of a 3 phase AC 6 1 3 V Hz Ramp 12 induction motor drive with Volt per Hertz control in Opened 6 1 4 DC Bus Voltage Ripple Loop hereinafter called V Hz OL It is based on Motorola s Elimination apieties 13 56F80X digital signal processor DSP which is dedicated for n AEEA N Repent Fe motor control applications The system is designed as a motor 64 State Diagram snssssuensoonineens 18 control system for driving medium power three phase AC 6 2 1 Initialization cc cece 18 induction motors and is targeted for applications in both 6 2 2 Application State Machine 20 industrial and appliance fields e g washing machines 6 2 3 Check Run Stop Switc
10. The Temperature of the power module sensed by ADC is compared with the limit within the software In case of overheating after a period defined by OverHeating_Count all Motor Control PWM outputs are disabled and DriveFaultStatus variable is set to OverHeating AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 17 Software Design Wrong hardware If wrong hardware is identified different power module or missing optoisolation board during initialization DriveFaultStatus variable is set to Wrong_Hardware If any of the above mentioned faults occurs program run into infinite loop and waits for reset Fault is signalled by user LEDs on controller board and on the PC Master control screen 6 2 State Diagram The general state diagram incorporates the Main routine entered from Reset and interrupt states The Main routine includes the initialization of the DSP and the main loop The main loop incorporates Initialization State Application State Machine and Check Run Stop Switch state The interrupt states provides calculation of the actual speed of motor PWM reload interrupt ADC service Limit analog values handling over current and over voltage PWM fault handler etc 6 2 1 Initialization The Main Routine provides initialization of the DSP initializes PLL Clock COP and LVI disabled identifies connected hardware initializes Analog to Digital Converter initializes POSIX timers for Speed ramp and LED handler initializes PWM
11. The common used Volt per Hertz ramp of a 3 phase AC induction motor is illustrated in Figure 6 2 V bost z Vitar f Hz Figure 6 2 Volt per Hertz Ramp The Volt per Hertz ramp is defined by following parameters e Base Point defined by fbase usually 50Hz or 60Hz e Boost Point defined by Vboostand fpoost e Start Point defined by V tart at zero Frequency 12 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Software Design The ramp profile fits the specific motor and can be easily changed to accommodate different ones Process Description This process provides voltage calculation according to V Hz ramp The input of this process is generated by desired inverter frequency Omega_Required The output of this process is AmplitudeVoltScale that is a parameter required by DC Bus Voltage Ripple Elimination process 6 1 4 DC Bus Voltage Ripple Elimination Process Description This process eliminates the influence of the DC Bus voltage variation ripples toward the generated phase voltage sinewaves In fact it lowers the 50 or 60 Hz acoustic noise of the motor Another positive aspect is that due to this function generated phase voltage it is independent of the level of DC Bus voltage So the application is adaptable in both American and European power supply systems The process is performed by function mcgenDCBVoltRippleElim which converts the phase voltage amplitude AmplitudeVoltScale to the sine wave amplitu
12. aults Processing DC Bus Voltage Speed Set up Speed yal Command V Hz Generator Processing ig Mi Cancel i with Dead Time F Measured Speed Speed Processing for PC Master Incremental Decoder DSP56F80x Figure 4 1 System Concept The control process is as follows When the Start command is accepted using the Start Stop Switch the state of the inputs is periodically scanned According to the state of the control signals Start Stop switch speed up down buttons or PC Master set speed the speed command is calculated using an acceleration deceleration ramp With the use of the V Hz ramp the corresponding voltage is calculated and then DC Bus Ripple Cancellation function eliminates the influence of the DC Bus voltage ripples to the generated phase voltage amplitude The PWM generation process calculates a three phase voltage system at required amplitude and frequency which includes dead time Finally the 3 phase PWM Motor Control signals are generated 8 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Hardware The DC Bus voltage and power stage temperature are measured during the control process They are overvoltage undervoltage and overheating protection of the drive Both undervoltage protection and overheating are performed by ADC and software The DC Bus overcurrent and overvoltage fault signals are connected to a PWM fault input If any of the above mentioned faults occurs the motor contr
13. d for FLASH memory ConfigFlash directory In case of AC V Hz motor control application both files are identical The appconfig h file is divided into two sections The first section defines which components of SDK libraries are included to application the second part overwrites standard setting of components during their initialization 7 3 Drivers Initialization Each peripheral on the DSP chip or on the EVM board is accessible through a driver The driver initialization of all used peripherals is described in this chapter For a detailed descriptions of drivers see document Embedded SDK Targeting Motorola DSP5680x Platform 22 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA DSP Usage To use the driver the following step must be done e include the driver support to the appconfig h e fill configuration structure in the application code for specific drivers depends on driver type e initialize the configuration setting in appconfig h for specific drivers depends on driver type e call the open create function The access to individual driver functions is provided by the ioctl function calls 7 4 Interrupts The SDK serves the interrupt routines calls and automatically clears interrupt flags The user defines the callback functions called during interrupts The callback functions are assigned during the driver s initialization open The callback function assignment is defined as one item of initialization s
14. de Amplitude based on the actual value of the DC Bus voltage u_dc_bus and inverse value of the modulation index ModulationIndexInverse The modulation index is the ratio between the maximum amplitude of the first harmonic of phase voltage in voltage scale and half of the DC Bus voltage in voltage scale which is defined by the following formula 1 phasemax _ 2 m B EQ 6 1 2 UDCBus The modulation index is specific to given 3 phase generation algorithm and in this application is 1 27 The top chart in Figure 6 3 demonstrates how the Amplitude in scale of generated sine wave amplitude is counter modulated in order to eliminate the DC Bus ripples The second chart shows the duty cycles generated by one of the 3 ph wave generation functions The third chart contains sine waves of the phase to phase voltages actually applied to the 3 phase motor AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 13 Software Design udc bus U max AmplitudeVolt Scale U max Amplitude Ampl max DutyCycle PhaseA DutyCycle PhaseB DutyCycle PhaseC 50 150 100 50 100 4 150 PrAPhB M PhB PhC M PhC PhA M 14 Figure 6 3 3 ph Wafeforms with DC Bus Voltage Ripple Elimination Indirect Power Factor C
15. ed called constant power operation because of the rated voltage limit AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 5 System Design Concept A simple open loop Volts Hertz speed control for an induction motor is the control technique targeted for low cost low performance drives This basic scheme is unsatisfactory for more demanding applications where speed precision is required Volt per Hertz Characteristic Motor Base Point Amplitude Base Frequency Frequency Frequency Frequency Figure 3 4 Volts per Hertz Control Method 4 System Design Concept The system is designed to drive a 3 phase AC induction motor The application meets the following performance specifications e Targeted for DSP56F80XEVM platforms e Running on 3 phase AC BLDC Motor Control Development Platform at variable line voltage 115 230V AC e Control technique incorporates motoring and generating mode both direction of the rotation V Hz speed open loop e Manual Interface Start Stop switch Up Down push button speed control LED indication e PC Master Interface motor start stop speed set up e Power Stage Identification e Overvoltage Undervoltage Overcurrent and Overheating Fault protection The introduced AC drive is designed as a DSP system that meets the following general performance requirements 6 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA System Design Concept Table 4 1
16. een Yellow Power Stage 314 Ji Board J2 J1 ECOPT 313 1 13 2 13 3 o pin conn Fep diacetate AMP A2510 a E oror Brake ECOPTHIVACBLDC Encoder Conn Tabl AM40V SG40N Controler Conn osses J2__ e DSP56F805 123 a DSPS6F807 34 Incremental Encoder Baumer Electric i BHK16 05A 1024 12 5 amp ECMTRHIVAC e White Hall Sensor Encoder 00126A Not used in application Incremental Encoder Cable gt Connector Table Cable Wire Color__ Desc Brown 5VDC White Shielding Ground and Shielding hase Yellow Phase B Pink Index Unused Unused Figure 5 1 High Voltage Hardware System Configuration All the system parts are supplied and documented according the following references e Ul Controller Board for DSP56F80X supplied as DSP5680XEVM described in DSP Evaluation Module Hardware User s Manual e U2 3phAC BLDC High Voltage Power Stage supplied in kit with Optoisolation Board as ECOPTHIVACBLDC described in 3 Phase Brushless DC High Voltage Power Stage e U3 Optoisolation Board supplied with 3 ph AC BLDC High Voltage Power Stage as ECOPTHIVACBLDC or supplied alone as ECOPT optoisolation board described in Optoisolation Board User s Manual e MBI
17. er at required frequency and amplitude The typical 3 phase inverter is illustrated in Figure 3 2 3 Phase AC Motor Figure 3 2 Three Phase Inverter The inverter consists of three half bridge units where the upper and lower switch are controlled complementarily meaning when the upper one is turned on the lower one is turned off and vice versa As the power device s turn off time is longer than its turn on dead time must be inserted between the turn off of one transistor of the half bridge and turn on of its complementary device The output voltage is mostly created by a Pulse Width Modulation PWM technique where an isosceles triangle carrier wave is compared with a fundamental frequency sine modulating wave and the natural 4 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Target Motor Theory points of intersection determine the switching points of the power devices of a half bridge inverter This technique is shown in Figure 3 3 The three phase voltage waves are shifted 120 to each other and thus a 3 phase motor can be supplied Generated PWM Carrier Sine Wave Wave gt A ot 1 pesmi UE UF U AT Upper Switch 2 PWM Output T Swit LULU U Lower Switch Lo ot Figure 3 3 Pulse Width Modulation The most popular devices for motor control applications are Power MOSFETs and IGBTs A Power MOSFET is a voltage controlled transistor designed for high frequency operation It has lo
18. h 20 compressors air conditioning units pumps or simple 6 2 4 PWM Reload A ISR 064 20 industrial drives The software design takes advantage of 6 2 5 PWM Fault A ISR 000 21 SDK Software Development Kit developed by Motorola 6 2 0 ADE Conversion Complete TS EE EENE Sates vat 21 The drive to be introduced is intended as an example for a 6 2 7 ADC High Limit ISR 21 S 3 phase AC induction motor drive It serves as an example of 6 2 8 ADC Low Limit ISR 21 B i 6 2 9 Timer OC LED ISR 21 feb AC V Hz motor control system design using Motorola DSP ee aie aa D with SDK support It also illustrates the usage of dedicated 2 10 Timer OC Ramp ISR onan O z 7 SDK Implementation 0 0 0 0 22 Ow motor control libraries that are included in the SDK 7 1 Drivers and Library Function 22 5 T This Application Note includes the basic motor theory 7 2 Appconfig h File 22 O system design concept hardware implementation and a Initialization 22 Ae D software design including the PC Master visualization tool PS EE recite ayo D m 7 5 PC Master D inclusion 8 DSP Usage oo eee eeeeeeeerees O S 9y References ssns ines a 5 O 2 Motorola DSP Advantages and D xe Features The Motorola DSP56F80x family is well suited for digital motor control combining the DSP s calculation capability with MCU s controller features on a single
19. l 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 are registered trademarks of Motorola Inc Motorola Inc is an Equal Opportunity Affirmative Action Employer 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
20. n Deceleration Ramp Omega_required Temperature Omega_measured DriveFaultStat NE AmplitudeVoltScale DC Bus Voltage Ripple Elimination Amplitude PWM Faults OverVoltage OverCurrent PWM Generation PVALO PVAL2 PVAL4 Figure 6 1 Data Flow AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 11 Software Design 6 1 1 Acceleration Deceleration Ramp The process calculates the new actual speed command based on the required speed according to the acceleration deceleration ramp The desired speed is determined either by the push buttons or by PC Master During deceleration the motor can work as a generator In the generator state the DC Bus capacitor is charged and its voltage can easily exceed its maximal voltage Therefore the voltage level in DC Bus link is controlled by a resistive brake which is operating in case of overvoltage The process input parameter is Omega_Desired desired speed The process output parameter is Omega_Required which is used as input parameter of PWM generation process 6 1 2 Speed Measurement The speed measurement process uses the on chip Quadrature Decoder The process output is MeasuredSpeed which is only used as information value in PC Master 6 1 3 V Hz Ramp The drive is designed as a Volt per Hertz drive It means that the control algorithm keeps the constant motor s magnetizing current flux by varying the stator voltage in proportion to frequency
21. ol PWM outputs are disabled in order to protect the drive and the fault state of the system is displayed on the PC Master control page The speed of the motor is measured by the Quadrature Decoder just for displaying in PC Master 5 Hardware 5 1 System Outline The motor control system is designed to drive the 3 phase AC motor in a speed open loop There are more software versions targeted for a concrete DSP and Evaluation Module DSP EVM e DSPS6F80X The hardware setup for a concrete DSP EVM differs only by Evaluation Module EVM module used The designed software is capable of running only on High Voltage hardware set described below Other power module boards will be denied due to board identification built into the software This feature protects you against hardware damage The hardware setup is shown in Figure 4 1 and can also be found in the document Targeting DSP5680X_Platform according to targeted DSP EVM That documents also describes EVM jumper settings 5 2 High Voltage HW set The system configuration is shown in Figure 5 1 AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 9 Hardware 12VDC Sn 40w flat ribbon GND gt 40w flat ribbon U3 cable gray U2 cable gray U1 JP1 1 P1 2 L gt Bek h 3ph AC BLDC N gt HightBlue__hii 2 High Voltage Optoisolation Controller Board PE gt _Gr
22. on Using DSP56F80X 21 SDK Implementation 7 SDK Implementation The Motorola Embedded SDK is a collection of APIs libraries services rules and guidelines This software infrastructure is designed to let DSP5680x software developers create high level efficient portable code This chapter describes how the AC V Hz motor control application is written under SDK 7 1 Drivers and Library Function The AC V Hz motor control application uses the following drivers e ADC driver e Timer driver e Quadrature Timer driver e Quadrature Decoder driver e PWM driver e LED driver e Switch driver e Button driver e Brake driver All drivers except Timer driver are included in bsp lib library The Timer driver is included in sys lib library The AC V Hz motor control application uses the following library functions e boardld board identification bsp lib library e mcegen3PhWaveSine3rdHIntp waveform generation function mcfunc lib library e mcegenDCBVoltRippleElim DC Bus Ripple cancellation function mcfunc lib library e lutGetValue look up table performing V Hz ramp mcfunc lib library e rampGetValue speed ramp mcfunc lib 7 2 Appconfig h File The purpose of the appconfig h file is to provide a mechanism for overwriting default configuration settings which are defined in the config h file There are two appconfig h files The first appconfig h file is dedicated for External RAM ConfigExtRam directory and second one is dedicate
23. onfigures the PWM output as a pair of complimentary channels J Target Motor Theory 3 1 3 Phase AC Induction Motors Drives The AC induction motor is the workhorse in adjustable speed drive systems The most popular type is a 3 phase squirrel cage AC induction motor that is an efficient low cost maintenance free low noise motor The stator is supplied by a balanced three phase AC power source The synchronous speed of the motor Ng is given by 120 A Si ipui EQ 3 1 where f is the synchronous stator frequency in Hz and p is the number of stator poles The AC induction motor produces zero torque at the synchronous frequency and therefore must run at the speed given by a load torque The motor speed is characterized by a slip s n n Ns n s n y EQ 3 2 5 where n is the rotor mechanical speed and ng is the slip speed both in rpm Figure 3 1 illustrates the torque characteristics and corresponding slip As can be seen from EQ 3 1 and EQ 3 2 the motor speed is controlled by variation of a stator frequency with influence of the load torque AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 3 Target Motor Theory Motor Torque Torque Y Working Point Load Torque 0 Speed Motor Generator Figure 3 1 Torque Speed Characteristic at Constant Voltage and Frequency In adjustable speed applications the AC motors are powered by inverters The inverter converts a DC power to AC pow
24. orrection Using DSP56F80X AA MOTOROLA Software Design 6 1 5 PWM Generation Process Description This process generates a system of three phase sinewaves with addition of third harmonic component shifted 120 to each other using mcgen3PhWaveSine3rdHIntp function from the Motor Control function library The function is based on a fixed wave table describing the first quadrant of sine wave stored in Data memory of the DSP Due to symmetry of the sine function data in other quadrants are calculated using the data of first quadrant This saves data memory space In figure Figure 6 4 there is an explanation of sinewave generation for phase A for simplicity Phase B and C are shifted 120 with respect to Phase A Ox7 fff Actual Phase n xX Q A T TTeLerecen PhaseIncrement il c9 pz ActualPhase n 1 3 i Qa DutyCycle PhaseA PE T eh Oe _ 0x0000 0x8000 180 0 Ox7fff 180 Figure 6 4 Sinewave Generation Each time the waveform generation function is called ActualPhase from previous step is updated by PhaseIncrement and according calculated phase the value of sine is fetched from the sine table using function tfr 6SinPIxLUT from DSP functional library Then it s multiplied by the Amplitude and passed to the PWM For explaining the 3 phase waveform generation with 3rh harmonic addition see the following formulas AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 15 Software De
25. sign 16 PWMA d Amplitude sina L sin3a 0 5 B 6 PWMB L Amplitude sin a 120 J3 l 6 sin3ar 0 5 PWMC Amplitude sina 240 sin3a 0 5 EQ 6 1 where PWMA PWMB and PWMC are calculated duty cycles passed to PWM driver and Amplitude determines the level of Phase voltage Amplitude The process is performed in a PWM reload callback function pwm_Reload_A_ISR and is accessed regularly at the rate given by the set PWM reload frequency This process has to be repeated often enough compared to the wave frequency in order to generate the correct wave shape Therefore for 16kHz PWM frequency it is called each 4th PWM pulse and thus the PWM registers are updated in 4kHz rate each 250usec Figure 6 5 shows the dutycycles generated by the mcgen3PhWaveSine3rdHIntp function when Amplitude is 1 100 1st Harmonic A 1st Harmonic B 1st Harmonic B 3rd Harmonic DutyCycle PhaseA DutyCycle PhaseB 0 2 DutyCycle PhaseC Figure 6 5 3 ph Sine Waves with 3rd Harmonic Injection Amplitude 100 Figure 6 6 shows the dutycycles generated by the mcgen3PhWaveSine3rdHIntp function when Amplitude is 0 5 50 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Software Design 1st Harmonic A 1st Harmonic B 1st Harmonic B 3rd Harmonic DutyCycle PhaseA DutyCycle PhaseB D
26. tine Figure 6 7 State Diagram General Overview AA MOTOROLA Indirect Power Factor Correction Using DSP56F80X 19 Software Design 6 2 2 Application State Machine This state controls the main application functionalities as shown in Figure 6 8 State Application State Machine Application State Machine Begin Test DriveF aultStatus RESET NO_FAULT Test ApplicationMode RUN Enable PWM Calculate V Hz Ramp Speed 0 Disable PWM done Application State Machine End Figure 6 8 State Application State Machine 6 2 3 Check Run Stop Switch In this state Run Stop switch is checked and accordingly that Application Mode is set to Run or Stop 6 2 4 PWM Reload A ISR This subroutine is called at PWM A or PWM in case of DSP56F803 Reload Interrupt and provides e Measurement of actual speed utilizing quadrature decoder MeasuredSpeed e Elimination of DC Bus Voltage ripples mcgenDCBVoltRippleElim function e Calculation of waveform generator mcgen3PhWaveSine3rdHIntp function e Updating of PWM Value Registers e Triggering the ADC conversion Name of callback function in code pwm_Reload_A_ISR void 20 Indirect Power Factor Correction Using DSP56F80X AA MOTOROLA Software Design 6 2 5 PWM Fault A ISR This disables the PWM _ module and sets DriveFaultStatus DC_Bus_OverVoltage or DC_Bus_OverCurrent according to fault input pin level in case of over voltage or over current in DC
27. tructure which is used as a parameter of function open Some drivers define the callback function in appconfig h file 7 5 PC Master PC Master was designed to provide the debugging diagnostic and demonstration tools for development of algorithms and applications It consists of components running on PC and parts running on the target development board The PC Master application is part of the Motorola Embedded SDK and may be selectively installed during SDK installation To enable the PC Master operation on the target board application the following lines must be added to the appconfig h file define INCLUDE_SCI SCI support define INCLUDE_PCMASTER PC Master support It automatically includes the SCI driver and installs all necessary services The baud rate of the SCI communication is 9600Bd and is set automatically by PC Master driver The detailed PC Master description is provided by the PC Master User Manual 8 DSP Usage Table shows how much memory is needed to run the 3 phase AC V Hz open loop application A part of the DSP memory is still available for other tasks Table 8 1 RAM and FLASH Memory Usage for SDK2 3 and CW 4 0 Memory Available Used Used in 16 bit Words DSP56F803 Application Stack Application without DSP56F805 PC Master SCI Program FLASH 32K 14074 6837 Data RAM 2K 845 352 stack 513 352 stack Data Flash 4K 430 430 AA MOTOROLA Indirect Power
28. utyCycle PhaseC Figure 6 6 3 ph Sine Waves with 3rd Harmonic Injection Amplitude 50 Inputs of the process e Amplitude obtained from DC Bus Ripple Elimination process e Omega_required obtained from Acceleration Deceleration Ramp process Output of the process Results calculated by mcgen3PhWaveSine3rdHIntp function are directly passed to PWM Value Registers using PWM driver 6 1 6 Fault Control This process is responsible for fault handling The software accommodates five fault inputs overcurrent overvoltage undervoltage overheating and wrong identified hardware Overcurrent In case of overcurrent in DC Bus link the external hardware provides a rising edge on the fault input pin FAULTA1 of the DSP This signal immediately disables all Motor Control PWM s outputs PWM1 PWM6 and sets DC_Bus_OverCurrent bit of DriveFaultStatus variable Overvoltage In case of overvoltage in DC Bus link the external hardware provides a rising edge on the fault input pin FAULTAO of the DSP This signal immediately disables all Motor Control PWM s outputs PWM1 PWM6 and sets DC_Bus_OverVoltage bit of DriveFaultStatus variable Undervoltage The DC Bus voltage sensed by ADC is compared with the limit within the software In case of undervoltage after a period defined by UnderVoltage_Count all Motor Control PWM outputs are disabled and DriveFaultStatus variable is set to DC_Bus_UnderVoltage Overheating
29. w voltage drop and thus low power losses However the saturation and temperature sensitivity limit the MOSFET s application in high power circuits An Insulated Gate Bipolar Transistor IGBT is a bipolar transistor controlled by a MOSFET on its base The IGBT requires low drive current has fast switching time and is suitable for high switching frequencies Its disadvantage is the higher voltage drop of the bipolar transistor that causes higher conduction losses 3 2 Volts per Hertz Control The Volt per Hertz control method is the most popular method of Scalar Control which controls the magnitude of the variable like frequency voltage or current The command and feedback signals are DC quantities which are proportional to the respective variables This scheme is defined as a Volts per Hertz control because the voltage applied command is calculated directly from the applied frequency in order to maintain the air gap flux of the machine constant In steady state operation the machine air gap flux is approximately proportional to the ratio Vs fs where Vs is the amplitude of motor phase voltage and fs is the synchronous electrical frequency applied to the motor The control system is illustrated in Figure 3 4 The characteristic is defined by the base point of the motor Below the base point the motor operates at optimum excitation called constant torque operation because of the constant Vyf ratio Above this point the motor operates under excit

Download Pdf Manuals

image

Related Search

Related Contents

IL SISTEMA PER LA CONTABILIZZAZIONE DEL CALORE  MIIAVISION - Miia Style  amPlug 2 Owner's manual  Data  取扱説明書(PDF) - WATCH LOGGER  manuel d`instruction et des pièces  INSTRUCTION BOOKLET 1.5 Litre Slow Cooker  DAUF AUF-6800 Navigation System User Manual  Panasonic HC-X800  Kwikset 730PE 11P CP Installation Guide  

Copyright © All rights reserved.
Failed to retrieve file