AN1910 Freescale Semiconductor / Motorola, AN1910 Datasheet

no-image

AN1910

Manufacturer Part Number
AN1910
Description
3-Phase AC Motor Control with V/Hz Speed Closed Loop Using the DSP56F80X
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Semiconductor Application Note
3-Phase AC Motor Control
with V/Hz Speed Closed
Loop Using the
DSP56F80X
Design of motor control application based on
Motorola Software Development Kit
Petr Uhlir
Zdenek Kubiczek
1.
2.
© Motorola, Inc., 2001
MOTOROLA
This application note describes the design of a 3-phase AC
induction motor drive with volt per hertz control in closed
loop (hereinafter called V/Hz OL). It is based on Motorola’s
56F80X digital signal processor (DSP), which is dedicated
for motor control applications. The system is designed as a
motor control system for driving medium power, 3-phase AC
induction motors. The part is targeted toward applications in
both industrial and home appliance industries, such as
washing machines, compressors, air conditioning units,
pumps, or simple industrial drives. The software design takes
advantage of SDK (Software Development Kit) developed by
Motorola.
The drive introduced here is intended as an example of a
3-phase AC induction motor drive. The drive serves as an
example of AC V/Hz motor control system design using
Motorola DSP with SDK support. It also illustrates the usage
of dedicated motor control libraries included in the SDK.
This document includes the basic motor theory, system
design concept, hardware implementation, and software
design, including the PC Master visualization tool inclusion.
The Motorola DSP56F80x family is well suited for digital
motor control, combining the DSP’s calculation capability
with MCUs controller features on a single chip. These DSPs
Introduction
Motorola DSP Advantages and
Features
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
1. Introduction ................................... 1
2. Motorola DSP Advantages and
3. Target Motor Theory ..................... 3
4. System Design Concept ................ 7
5. Hardware ....................................... 9
6. Software Design .......................... 11
7. SDK Implementation ................... 22
8. DSP Usage .................................. 23
9. References ................................... 24
3.1 3-phase AC Induction Motor
3.2 Volts per Hertz Control .................. 5
3.3 Speed Close Loop System .............. 6
5.1 System Outline ............................... 9
5.2 High Voltage Hardware Set............ 9
6.1 Data Flow ..................................... 11
6.1.1 Acceleration/Deceleration
6.1.2 Speed Measurement ................. 12
6.1.3 PI Controller............................. 12
6.1.4 V/Hz Ramp............................... 12
6.1.5 DC-Bus Voltage Ripple
6.1.6 PWM Generation ..................... 14
6.1.7 Fault Control ............................ 17
6.2 State Diagram ............................... 18
6.2.1 Initialization ............................. 18
6.2.2 Application State Machine ....... 20
6.2.3 Check Run/Stop Switch ........... 20
6.2.4 PWM Reload A ISR................. 20
6.2.5 PWM Fault A ISR .................... 21
6.2.6 ADC Conversion
6.2.7 ADC High Limit ISR ............... 21
6.2.8 ADC Low Limit ISR ................ 21
6.2.9 Timer OC LED ISR ................. 21
6.2.10 Timer OC Ramp ISR................ 21
7.1 Drivers and Library Function ....... 22
7.2 Appconfig.h File ........................... 22
7.3 Drivers Initialization..................... 22
7.4 Interrupts....................................... 23
7.5 PC Master ..................................... 23
Features .................................... 1
Drives .............................................. 3
Ramp ........................................ 12
Elimination ............................... 13
Complete ISR ........................... 21
Contents
(Motorola Order Number)
Order by AN1910/D
Rev. 1.0, 04/2001

Related parts for AN1910

AN1910 Summary of contents

Page 1

... ADC Low Limit ISR ................ 21 6.2.9 Timer OC LED ISR ................. 21 6.2.10 Timer OC Ramp ISR................ 21 7. SDK Implementation ................... 22 7.1 Drivers and Library Function ....... 22 7.2 Appconfig.h File ........................... 22 7.3 Drivers Initialization..................... 22 7.4 Interrupts....................................... 23 7.5 PC Master ..................................... 23 8. DSP Usage .................................. 23 9. References ................................... 24 Go to: www.freescale.com Order by AN1910/D (Motorola Order Number) Rev. 1.0, 04/2001 Contents Ramp ........................................ 12 Elimination ............................... 13 Complete ISR ........................... 21 ...

Page 2

Freescale Semiconductor, Inc. Motorola DSP Advantages and Features offer a rich dedicated peripherals set, such as pulse width modulation (PWM) modules, analog-to-digital converter (ADC), timers, communication peripherals (SCI, SPI, CAN), on-board flash and RAM. Several parts comprise the family: DSP56F801/803/805/807, ...

Page 3

Freescale Semiconductor, Inc. • Half-cycle reload capability • Integral reload rates from one to 16 • Individual software-controlled PWM output • Programmable fault protection • Polarity control • 20-mA current sink capability on PWM pins • Write-protectable registers The PWM ...

Page 4

Freescale Semiconductor, Inc. Target Motor Theory Motor Torque Load Torque Motor 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 DC power to ...

Page 5

Freescale Semiconductor, Inc. the natural points of intersection determine the switching points of the power devices of a half bridge inverter. This technique is shown in other and thus a 3-phase motor can be supplied PWM Output ...

Page 6

Freescale Semiconductor, Inc. Target Motor Theory A simple close-loop volts/hertz speed control for an induction motor is the control technique targeted for low performance drives. This basic scheme is unsatisfactory for more demanding applications where speed precision is required. Frequency ...

Page 7

Freescale Semiconductor, Inc case of AC V/Hz closed loop application, the feedback speed signal is derived from incremental encoder using the quadrature decoder. The speed controller constants have been tuned experimentally according to the actual load. 4. System ...

Page 8

Freescale Semiconductor, Inc. System Design Concept • Power supply rectifier • 3-phase inverter • Feedback sensors: speed, DC-bus voltage, DC-bus current, temperature • Optoisolation • Evaluation board DSP56F80X 8 3-Phase AC Motor Control with V/Hz Speed Closed Loop For More ...

Page 9

Freescale Semiconductor, Inc. The Control Process: 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 ...

Page 10

... The detailed description of individual boards can be found in comprehensive users’ manuals belonging to each board. The user manual incorporates the schematic of the board, description of individual function blocks and bill of materials. Individual boards can be ordered from Motorola as a standard product from http://mot-sps.com/motor/devtools/index.html. 10 3-Phase AC Motor Control with V/Hz Speed Closed Loop For More Information On This Product, @ ...

Page 11

Freescale Semiconductor, Inc. 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. Software Design 6.1 Data Flow The requirements of the drive dictates ...

Page 12

Freescale Semiconductor, Inc. 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 push buttons or by the PC Master. ...

Page 13

Freescale Semiconductor, Inc. The volt per hertz ramp is defined by following parameters: • Base point - defined by f • Boost point- defined by V • Start point - defined by V The ramp profile fits to the specific ...

Page 14

Freescale Semiconductor, Inc. Software Design Figure 6-3. 3-ph Waveforms with DC-Bus Voltage Ripple Elimination 6.1.6 PWM Generation Process Description This process generates a system of 3-phase sinewaves with addition of third harmonic component o shifted 120 to each other using ...

Page 15

Freescale Semiconductor, Inc. The function is based on a fix wave table describing the first quadrant of sine wave stored in data memory of the DSP. Due to symmetry of sine function, data in other quadrants are calculated using the ...

Page 16

Freescale Semiconductor, Inc. Software Design The process that is performed in PWM reload callback function: pwm_Reload_A_ISR is accessed regularly at the rate given by the set PWM reload frequency. This process is repeated often enough to compare it to the ...

Page 17

Freescale Semiconductor, Inc ( ' & % $ # " !    ! Figure 6-6. 3-ph Sine Waves with 3rd Harmonic Injection, Amplitude = 50% Input process: • Amplitude - obtained from DC-bus ripple elimination ...

Page 18

Freescale Semiconductor, Inc. Software Design Wrong Hardware: In case 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 ...

Page 19

Freescale Semiconductor, Inc. reset Initialization done Application State Machine done Check Run/Stop Switch done ADC low limit Interrupt ADC Low Limit Interrupt Subroutine done ADC high limit Interrupt ADC High Limit Interrupt Subroutine done ADC conversion complete Interrupt ADC Interrupt ...

Page 20

Freescale Semiconductor, Inc. Software Design 6.2.2 Application State Machine This state controls the main application functionalities, depicted in NO_FAULT Application Mode RUN Enable PWM Calculate V/Hz Ramp done Application State Machine - End Figure 6-8. State - Application State Machine ...

Page 21

Freescale Semiconductor, Inc. 6.2.5 PWM Fault A ISR This disable PWM module DC_Bus_OverCurrent according to fault input pin level in case of over voltage or over current in DC-Bus line. Name of callback function in code: pwm_Fault_A_ISR(void). This subroutine is ...

Page 22

Freescale Semiconductor, Inc. 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 ...

Page 23

Freescale Semiconductor, Inc. • Include the driver support to the appconfig.h • Fill the configuration structure in the application code for specific drivers (depends on driver type) • Initialize the configuration setting in appconfig.h for specific drivers (depends on driver ...

Page 24

... 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 For More Information On This Product, M are registered trademarks of Motorola, Inc. Motorola, Inc Equal MOTOROLA HOME PAGE: http://motorola.com/semiconductors/ Go to: www.freescale.com AN1910/D ...

Related keywords