Application of Digital Signal Processors
Application of Digital Signal Processors
Introduction
Digital Signal Processors (DSPs) designed for closed loop control implementations are
extensively used in areas of motor control, uninterruptible power supplies (UPS), and
motion control applications. With the availability of low cost, high performance DSP
controllers featuring high CPU bandwidth and integrated power electronics peripherals such
as, analog-to-digital (A/D) converters, pulse width modulator (PWM) with built-in dead-
time and asynchronous power stage protection, power supply designers have started to
consider this technology as a suitable option for their real-time power conversion and control
applications.
Compared to traditional analog control, DSP controllers provide many distinctive
advantages:
• standard control hardware design for multiple platforms
• less susceptibility to aging and environmental variations
• better noise immunity
• ease of implementations of sophisticated control algorithms
• flexible design modifications to meet a specific customer need
• single chip solution for both control and communication functions
The use of DSPs in power supply applications brings new challenges to many analog
designers in their effort to change the design from the existing analog space to its new digital
environment.
==============================================================
Power Factor Correction:
PFC Stage Hardware Interface to TMS320LF2407A
where, Vdc is the calculated average component of the sensed digitized signal Vin.
In Figure 1, Iref is the reference current command for the inner current loop. Iref has
the shape of a rectified sinewave and it’s amplitude is such that it maintains the output dc
voltage at a reference level Vref, against variation in load and fluctuation in line voltage. The
sensed digitized inductor current Iin is compared with the reference current Iref. The
difference between Iref and Iin is passed into the current controller Gca. The output of this
controller is finally used to generate the PWM duty ratio command for the PFC switch.
==============================================================
Vibration Analysis:
One application of digital signal processing (DSP) is to the study of vibration signals from
mechanical processes. These signals can come from different types of transducers that
commonly have a voltage or current output proportional to the corresponding vibration. The
main characteristics of a vibration signal are its frequency, amplitude and phase angle with
respect to a reference signal. These parameters generally change with time, as occurs during
a frequency sweep test as the excitation frequency is varied across an interval. A signal can
present important phase variations and distortion even in small frequency intervals.
However, with adequate analysis of the signal the characteristics of its different frequency
components can be determined. Commercial tools exist for the estimation of frequency,
phase and amplitude by means of synchronous filtering. This technique consists in analyzing
a vibration signal along with a frequency reference signal. These tools can be overly
sophisticated for the study of simple vibration signals, and can impose strict limitations to
the development of signal processing schemes. For example, they normally do not allow the
customizing of processing functions to meet the user's needs.
A method based on synchronous filtering is proposed for the analysis of vibration signals
coming from rotating machinery. The block diagram of figure 2 shows the proposed system
to consist of the following stages: sensing, conditioning, acquisition, processing and PC
analysis. In the diagram of figure 2 an electric motor is shown as the system being analyzed.
The validation tests for the developed system are carried out on this motor
The sensing stage is employed to convert mechanical vibrations into electric signals, called
vibration signals in this work. The conditioning stage is formed by an overvoltage protection
and a filter to eliminate vibration signal noise. The processing and acquisition stages are
based on a commercial Bittware Gamma 20 board (which uses an Analog Devices
ADSP21020 signal processor) and the Bittware V2 audio, respectively. These algorithms are
based on detection of: zero crossings of the vibration signal, maximum vibration amplitude
and maximum slope on the reference signal. Detection of zero crossings is accomplished
with a linear interpolation algorithm, capable of determining points between samples. This
algorithm is used with vibration signals with mean value equal to zero. Zero crossings are
used to determine the vibration phase and frequency. The vibration frequency is computed
as the inverse of the period between the two zero crossings that limit an oscillation period.
For the reference signal, the frequency is computed as the inverse of the period between two
maximum slope occurrences. Phase angle is computed using the zero crossings of the
vibration signal together with the points for which a maximum slope of the reference signal
occurs. The period between two maximum slopes is considered as a full vibration cycle. To
help the user in the interpretation of the output from the processing stage, an interface was
developed for the graphical and tabular display of the results. The interface that was
developed as part of the algorithm allows the user to get quickly familiarized with its use.
Also, the graphical display of results makes possible a better understanding of the
algorithm's output.
==============================================================
Traditionally motor control was designed with analog components, they are easy to
design and can be implemented with relatively inexpensive components. However, there are
several drawbacks with analog systems. Aging and temperature can bring about component
variation causing the system to need regular adjustment, as the parts count increase the
reliability of the system decreases. Analog components raise tolerance issues and upgrades
are difficult as the design is hardwired. Digital systems offer improvements over analog
designs. Drift is eliminated since most functions are performed digitally, upgrades can easily
be made in software and part count is also reduced since digital systems can handle several
functions on chip.
Digital Signal Processors go on further to provide high speed, high resolution and
sensorless algorithms in order to reduce system costs. Providing a more precise control to
achieve better consumption or radiation performances often means performing more
calculations, the use of some 1-cycle multiplication & addition instructions included in a DSP
speeds-up calculations. Generally fixed point DSPs are preferred for motor control for two
reasons. Firstly, fixed point DSPs cost much less than the floating point DSPs. Secondly, for
most application a dynamic range of 16 bits is enough. If and when needed, the dynamic
range can be increased in a fixed-point processor by doing floating-point calculations in
software.
Benefits of the DSP Controllers
The performances of an AC induction motor are strongly dependent on its control. DSP
controllers enable enhanced real time algorithms as well as sensorless control. The
combination of both allows to reduce the number of components and to optimize the design
of silicon, to achieve a system cost reduction. A powerful processor such as a DSP controller
does the following:
• favours system cost reduction by an efficient control in all speed range implying
right dimensioning of power device circuits
• performs high level algorithms due to reduced torque ripple, resulting in lower
vibration and longer life time
• enables a reduction of harmonics using enhanced algorithms, to meet easier
requirements and to reduce filters cost
• removes speed or position sensors by the implementation of sensorless
algorithms
• decreases the number of look-up tables which reduces the amount of memory
required
• real-time generation of smooth near-optimal reference profiles and move
trajectories, resulting in better-performing
• controls power switching inverters and generates high-resolution PWM outputs
• provides single chip control system
In the IGBT (Insulated Gate Bipolar Transistor) Module shown in fig 2, has the three diode
bridge rectifier with capacitors which gives the rectified DC voltage to IGBT. The IGBT
Module of rating 25A, 1200V is used which consist of three phase inverter or a four quadrant
chopper which requires six switching devices, six anti- parallel diodes and a switching
device for braking. In addition all six switching devices (IGBT) require gate drive circuitries.
All these require many external interconnections with additional inductance, causing an
additional over voltages across the IGBT. IGBT power module consists of six IGBT, six anti-
parallel diodes and the breaking switch, and all are in single unit, on insulated
semiconductor substrate. Circuitries for detecting over current rise in temperature are also
built-in. Such modules are called intelligent Power Module. A Digital Signal Processor (DSP)
approach implementation of advanced motor drive systems requires the following features
from a typical motor controller. Capability of generating multiple high frequency, high-
resolution PWM waveforms, fast processing to implement advanced algorithms to minimize
torque ripple, on line parameter adaptation, precise speed control etc, Implementing
multiple features using the same controller (motor control, power factor correction,
communication, etc.), making the complete implementation as simple as possible (reduced
component count, simple board layout and manufacturing etc.), Implementing a flexible
solution so that future modification can be realized by changing software instead of
redesigning a separate hardware platform. A new class of DSC controllers has addressed
these issues effectively. These controllers provide the computational capability of a DSC core
and integrate useful peripherals on chip to reduce the total chip count. The DSC family
controller is becoming a viable option for even the most cost sensitive applications like
appliances, HVAC (high voltage alternate current) systems etc. In addition to traditional
mathematical functions like digital filter, FFT (Fast Fourier Transform) implementations, this
new class of DSP’s integrates all the important power electronics peripherals to simplify the
overall system implementation. This integration lowers over all part count of the system and
reduces the board size. The DSC controller DSPIC30F4011 is for motor control applications.
To put DSPIC30F4011 DSC Processor chip into application for motor control, the gate driver
must be used to amplify the logic signals to 15V and powerful enough to turn on and turn off
the thyristors. Because they have different sources and gates at different voltage levels, the
gate drivers (amplifiers) cannot use a common ground. Therefore, the dc power supply for
those gate drivers should be isolated. PWM is widely used in power electronics to
“digitalize” the power so that a sequence of voltage pulses can be generated by the on and
off of the power transistors. The fundamental component has variable magnitude and
variable frequency. Pulse Width Modulation technique is used to generate the required
voltage or current to feed the motor or phase signals. This method is increasingly used for
AC drives with the condition that the harmonic current is as small as possible and the 16
maximum output voltage is as large as possible. Generally, the PWM schemes generate the
switching position patterns by comparing three-phase sinusoidal waveforms with a
triangular carrier. The maximum output voltage based on the space vector theory is double
time as large as the conventional sinusoidal modulation. It enables to feed the motor with a
higher voltage than the easier sub-oscillation modulation method. This modulator allows
having a higher torque at high speeds, and a higher efficiency. For a better understanding of
the space vector process and to represent the switching state of the inverter we define a
switching function Sa for phase A as follows: Sa = 1 when the upper transistor of phase A is
on, and Sa = 0 when the lower transistor of phase A is on. Similar definitions can be made for
phase B and C [6]. The signals Sa, Sb, Sc, controlling the lower transistors, are the opposite of
Sa, Sb, Sc with an addition of dead-bands. Dead-band is the name given to the time
difference between the commutations of the upper and lower transistor of one phase. The
two transistors of each phase are then never conducting at the same time. The aim of the
dead-band is to protect the power devices during commutation by avoiding conduction
overlap and then high transient current. [1] The speed sensor has most common ways to
sense motor speed on the shaft is the use of an incremental encoder and a tachogenerator. In
the case of an encoder, the DSPIC30F4011 includes a module, the quadrature encoder which
perfectly handles the situation and calculates the speed and the direction of the rotation
using only two digital inputs and a 16 or 32 bit internal timer register. There are several types
of tachogenerators, some build a dc voltage proportional to the motor speed, and others
generate a number of pulses per rotor revolution. In the first case, one of the 16 A/D
converters channel of the DSPIC30F4011 is connected to the tachogenerator output. For a
Hall Effect sensor, the pulses enter a capture and a software driver allows the frequency
measurement. The implemented software is called at fixed time intervals no longer than the
minimum period of the measurable frequency. As there is only one signal, it is not possible
to measure the motor speed sign. An interface is inserted to add the sign to this speed
measurement. The speed sign is memorized in a variable and only when the motor speed
goes under a predetermined speed this variable is updated with the current sign. This also
allows the user to execute fast speed reversing cycles of the motor.
In this system, control kernel DSC accept velocity and which is fed by photoelectric encoder,
associating with the space vector algorithm to drive module IGBT, and use keyboard to set
parameter and use numeral tube to display electric-mechanic velocity real time.
==============================================================
Harmonic Measurement:
Electric power is an important and indispensable energy in modern society. However, a large
number of non-linear power and electronic devices that occurred in modern power systems with the
technology development results in high-order harmonic in power-net getting worse. It directly
distorts current and voltage waveform periodically, among which a series of component sine waves
(high harmonics) with frequency multiples of the fundamental frequency. The high harmonics is
called power harmonics. Harmonic detection system is mainly responsible for on-site power data
collection, processing and analysis and uploads them to upper computer based on real needs. It has
to handle a wide variety of tasks: periodic tasks (data acquisition, various calculation etc.) and
unexpected tasks (communication, human-computer interaction, etc.) and at the same time ensure the
instantaneity of the system, so the processing equipment is required to have high data sampling rate
and processing capabilities, but have real-time task scheduling ability, as well as cost. Its design
should include hardware and software.
After completing the multi-channel signal detection and through signal pre-processing circuit, DSP is
to conduct analog digital conversion. It controls high-speed A/D to realize high-speed collection for
three voltage and three current channels, then to finish analysis and calculation of the harmonic
power indicators, and finally via RS232 and CAN communication interface to transfer the data to the
PC machine and with the harmonics analysis software to long-term monitor the power network to
identify various problems affecting harmonics. Its monitoring and processing speed is even higher
when adopting the advanced digital signal processors and high-speed A/D, better meeting users’
real-time test needs.