Professional Documents
Culture Documents
3, JUNE 2001
Abstract—Programmable digital signal processors (DSPs) are II. REAL-TIME PROCESSING AND DIGITAL SIGNAL PROCESSORS
emerging as the processors of choice in monitoring and control
of high-end power electronics systems. This paper adopts a case DSP designs are optimized to handle real-time applications
study approach to illustrate a development methodology for with high bandwidth requirements. In the following, the features
DSP-based solutions. The unique features of DSP chips that native to DSPs that facilitate high throughput are illuminated
make them ideal for real-time applications are highlighted. Power [3]–[6].
electronics systems where DSPs have been used are indicated. A
case study in which a DSP-based solution was developed for a
A. Architecture
power quality monitoring application is presented. Through the
case study, the issues involved in adopting a system architecture, DSPs are built with Harvard architecture. This configuration
selecting a DSP, and developing software for an application are employs separate program and data memories and associated
discussed. The methodology described in this paper presents
data and address buses. The benefit of this arrangement is in-
broad guidelines which can be intelligently applied to develop
DSP-based solutions to meet specific requirements. creased speed because instructions and data can move in par-
allel instead of sequentially [7]. DSPs, like many advanced mi-
Index Terms—Control, converters, digital signal processor
croprocessors, use pipelining to operate on several instructions
(DSP), drives, monitoring, power electronics, power quality,
system design. simultaneously [8].
1) Hard-Wired Logic: In DSPs, most instructions execute in
one machine cycle because all functions are performed inter-
I. INTRODUCTION nally in hard-wired logic. Hardware multipliers in DSPs per-
form multiplication in a single cycle.
T HE advent of programmable digital signal processors
(DSPs) in recent years is creating a revolution in mon-
itoring, control, and testing of power electronics [1]. Their
2) Scaling: Hardware shifters allow scaling of data used in
computations. This helps prevent overflows, and keep the re-
special architecture and high performance make it possible to quired precision [9].
implement a wide variety of nontrivial control and measure- 3) Saturation: In DSPs, the accumulator handles overflow
ment algorithms at high sampling rate and reasonable cost [2]. by saturating to the most positive or least negative value, thus
Power electronics systems are typically a complex combi- eliminating rolling over.
nation of linear, nonlinear, and switching elements. High-fre- 4) Word Length: Some DSPs support a large word length,
quency converters add another dimension of complexity thus reducing the quantization error. They also support a
because of their fast dynamics. Real-time power electronics larger intermediate word length for intermediate computational
systems, therefore, demand the use of high-speed data-acqui- results.
sition and control. DSPs meet the processing requirements 5) Other Features: Many DSP chips include input/output
imposed by such systems. (I/O) functionality, timing circuitry, direct memory access
In this paper, the features that make DSPs highly effective (DMA) controllers, and high-speed memories on-chip. Fig. 1
computational engines are presented. Some applications in gives an overview of the functionality of the Motorola
power electronics which require the high performance of DSPs DSP56001 chip.
are explored. A case study is introduced in which a DSP-based
solution was developed for a power quality monitoring applica- B. Special DSP Instructions
tion. Through this, the design, implementation, and testing of DSPs resemble reduced instruction set computers (RISCs),
a DSP-based system are illustrated. The techniques and chal- in that a small set of frequently used instructions are optimized
lenges in designing systems around DSPs are also addressed. for numerical processing at the expense of less frequently used
general-purpose operations [8]. DSP instruction sets efficiently
handle mathematical operations common to many algorithms
Manuscript received March 5, 1999; revised February 16, 2001. This work
was supported by a grant from the Engineering Experiment Station at Kansas that are repeatedly executed in time-critical loops. For example,
State University. Certain commercial products or materials have been identified digital filters, which are often used in signal processing and
in order to specify or describe the subject matter of this article adequately. In no control applications, are implemented using recursive difference
case does such identification imply recommendation or endorsement by Kansas
State University, nor does it imply that the product or material is necessarily the equations of the form
best available for the purpose.
The authors are with the Department of Electrical and Computer Engineering,
Kansas State University, Manhattan, KS 66506 USA. (1)
Publisher Item Identifier S 0018-9456(01)04383-2.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
LAKSHMIKANTH AND MORCOS: POWER QUALITY MONITORING SYSTEM 725
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
726 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 50, NO. 3, JUNE 2001
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
LAKSHMIKANTH AND MORCOS: POWER QUALITY MONITORING SYSTEM 727
C. Memory
DSPs operate at maximum throughput when data are avail-
able on the fast on-chip memory or on external static random
access memory (SRAM). It is desirable to have enough on-chip
memory to hold the input data buffer and the data buffer under
analysis.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
728 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 50, NO. 3, JUNE 2001
A. Operating System
DSPs are used for real-time control and data acquisition in
power electronics. Real-time processing requires a fast multi-
tasking operating system. Real-time operating systems such as
Fig. 6. Real-time processing kernel.
SPOX are available for floating-point DSPs. A custom real-time
kernel can be also implemented for the chosen processor.
B. High-Level Language
Using a HLL like C can cut development effort substan-
tially. However, HLL compilers for DSPs do not exploit their
unique architectural features and instruction-level parallelism
[35]. Compiled code is usually two to four times the size of
assembly code; this is a high-penalty tradeoff for time-critical
applications [10]. Therefore, HLLs are used for initialization
and nonreal-time code.
C. Assembly Language
Assembly language produces the most efficient code in DSPs. Fig. 7. Processing environment in the PC.
Consequently, it is necessary to use assembly language for time-
critical operations. Moreover, code for I/O tasks needs to be
written almost exclusively in assembly. Most DSP applications
are built using a judicious mix of assembly and HLL.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
LAKSHMIKANTH AND MORCOS: POWER QUALITY MONITORING SYSTEM 729
2) Processing Environment in the PC: The processing envi- VIII. TEST RESULTS AND DISCUSSION
ronment in the PC was developed in Windows 3.1 using the Mi- The power quality monitoring system was implemented and
crosoft Foundation Class (MFC) library. For the real-time power evaluated. The prototype can continuously monitor one input
quality monitoring system, a processing environment similar to signal with a nominal full scale of 2 V p-p, a dynamic range
the one in the DSP is required. A timer is needed to keep track of 4 V p-p, and a resolution of 0.1 mV. The system can deter-
of time elapsed, a foreground strategy to handle communication mine up to the 31st harmonic of the power frequency and can
with the DSP, and a background strategy to process results and compute important power quality indexes. Results are available
handle the user-interface. The three basic components in this en- in real-time through a graphical user-interface. Results detailed
vironment, shown in Fig. 7, are as follows: in [26] show that the system meets relevant power quality stan-
1) timer and interrupt service routine (ISR); dards. Fig. 9 shows the observed spectrum for a 60-Hz square
2) idle-loop processing; wave. The measurement error is less than the maximum allow-
3) application message loop. able error of 5%. Power quality indexes were observed for an
The first provides a timer and foreground strategy. The second input of 1-V peak square wave at 60 Hz. The theoretical values
and third components together constitute the background of the indexes were computed. Comparison of the theoretical
strategy. The main window of the application has menu choices and experimental values yielded less than 2% error in all cases.
that allow the user to save collected data, select the type of Fig. 10 shows the spectrum for a 180-Hz square wave. The one
data-processing to be performed, view real-time results and significant feature in the experimental spectrum here is that at
access on-line help. Real-time results are available through higher frequencies the spreading effect leads to poor attenuation
dialog boxes such as the one shown in Fig. 8. of adjoining frequencies.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
730 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, VOL. 50, NO. 3, JUNE 2001
TABLE I [7] I. Ahmed and S. Lindquist, “Digital signal processors: Simplifying high-
POWER QUALITY INDEXES FOR A 60-Hz performance control,” Mach. Des., pp. 13–17, Sept. 1987.
SQUARE WAVE [26] [8] D. Koenig, Digital signal procesing hardware, , National Instruments,
Jan. 1992.
[9] Texas Instruments, TMS320C2x User’s Guide, Apr. 1990.
[10] Texas Instruments, Digital signal processing applications with the
TMS320 family, 1991.
[11] S. Meshkat and I. Ahmed, “Using DSPs in AC induction motor drives,”
Contr. Eng., pp. 303–305, Feb. 1988.
[12] B. K. Bose, “Power electronics—An emerging technology,” IEEE
Trans. Ind. Electron., vol. 36, pp. 403–412, Aug. 1989.
[13] T. Bucella and I. Ahmed, “Taking control with DSPs,” Mach. Des., Oct.
1989.
Power quality indexes were observed for an input 1-V peak [14] H. Kubota, K. Matsuse, and T. Nakano, “DSP-based speed adaptive flux
square wave at 60 Hz. The theoretical values of the indexes were observer of induction motor,” IEEE Trans. Ind. Applicat., vol. 29, pp.
344–348, Mar./Apr. 1993.
computed. Table I shows a comparison of the theoretical and [15] N. Matsui and H. Ohashi, “DSP-based adaptive control of a brushless
experimental values. The error is less than 2% in all cases. motor,” IEEE Trans. Ind. Applicat., vol. 28, pp. 448–454, Mar./Apr.
The system can be used to perform diagnostic power quality 1992.
[16] A. Gastli, T. Takeshita, and N. Matsui, “Speed-sensorless control of an
testing to evaluate waveform distortion, short-duration varia- induction motor using an improved v=f PWM inverter,” in Annu. Conf.
tions, and long-duration variations. The system is portable and IEE Jpn., 1992, pp. E38–E43.
holds promise as a powerful, low-cost tool for practicing power [17] N. Matsui, “Sensorless operation of brushless dc motor drives,” in Proc.
IECON, 1993, pp. 739–744.
quality engineers. This case study has provided some valuable [18] R. Dhaouadi, N. Mohan, and L. Norum, “Design and implementation of
insights for developing a DSP-based solution. Developing a an extended kalman filter for the state estimation of a permanent magnet
DSP-based power electronics system requires expertise not only synchronous motor,” IEEE Trans. Power Electron., vol. 6, pp. 491–497,
July 1991.
in the underlying power electronics, but also in microcomputer [19] A. Gastli and N. Matsui, “Stator flux controlled v=f PWM inverter with
system design and software development. Though development identification of IM parameters,” IEEE Trans. Ind. Electron., vol. 39, pp.
environments for DSPs are commercially available, they fall 334–340, Aug. 1992.
[20] R. J. Chance and J. A. Taufiq, “A TMS32010 based near optimized pulse
short of meeting the expectations of system designers. DSPs width modulated waveform generator,” in Proc. 3rd Int. Conf. Power
can obviate the need for specialized peripheral devices by Electronics and Variable Speed Drives, 1988, pp. 261–266.
capturing the functionality in software. Consequently, it is [21] P. N. Enjeti, P. D. Ziogas, J. F. Lindsay, and M. H. Rashid, “A new
PWM speed control system for high-performance ac motor drives,”
more cost-effective to build a high-end power electronics IEEE Trans. Ind. Electron., vol. 37, pp. 143–151, Apr. 1990.
system using a single-chip DSP for control rather than using a [22] X. Wang and B. T. Ooi, “Real-time multi-DSP control of three-phase
microprocessor with specialized peripheral devices. current-source unity power factor PWM rectifier,” IEEE Trans. Power
Electron., vol. 8, pp. 295–300, July 1993.
[23] J. Gou, B. Xie, and P. Enjeti, “A DSP-based real time power quality
IX. CONCLUSION measurement system,” in Proc. IEEE APEC, 1992, pp. 299–302.
[24] J. C. Montano, A. Lopez, M. Castilla, and J. Gutierrez, “DSP-based al-
Programmable DSPs are leading a revolution in signal pro- gorithm for electric power measurement,” Proc. Inst. Elect. Eng. A, vol.
cessing, bringing about the rapid convergence of computers, 140, no. 6, pp. 485–490, 1993.
[25] D. Mah, “Using DSP in bus-based test and measurement,” in Proc. Tech-
communication and consumer electronics. At the same time, nical Program—National Electronic Packaging and Production Conf.,
advances in DSP chip technology have had a positive impact vol. 3, 1992, pp. 1334–1343.
on the inherently interdisciplinary field of power electronics. [26] A. Lakshmikanth, M. M. Morcos, and W. N. White, “A real-time system
for power quality testing,” IEEE Trans. Instrum. Meas., vol. 47, pp.
Power electronics system designers have started to recognize the 1464–1468, Dec. 1998.
immense potential for developing high-end applications using [27] M. Sprague and R. Krishnan, “High performance DSP-based system ar-
DSPs. It is expected that more and more power electronics sys- chitecture for motor drive control,” in Proc. IEEE Power Electronics
Specialists Conf., vol. 2, 1994, pp. 1257–1262.
tems will be centered around DSPs in the future. [28] J. S. Lai and B. K. Bose, “A PC-based simulation and DSP-based con-
trol of an improved high frequency resonant DC link inverter induction
ACKNOWLEDGMENT motor drive,” in Proc. IECON, vol. 2, 1990, pp. 882–888.
[29] B. C. Mather, “Embedding DSP,” IEEE Spectr., pp. 52–55, Nov. 1991.
The authors would like to thank Dr. S. A. Dyer, Department of [30] D. Koenig, Digital signal processing fundamental, National Instruments,
June 1995.
Electrical and Computer Engineering, Kansas State University, [31] Motorola, DSP56002ADS—Application development system reference
for his useful suggestions. manual, , 1991.
[32] T. Bucella, “Comparing DSPs to microprocessors in motion control sys-
tems: Some real world data,” Intertec Communications, Inc., Tech. Rep.,
REFERENCES 1990.
[1] E. A. Lee, “Programmable DSPs: A brief overview,” IEEE Micro, pp. [33] M. El-Sharkawy, Real Time Digital Signal Processing Applications with
14–16, Oct. 1990. Motorola’s DSP56000 Family. Englewood Cliffs, NJ: Prentice-Hall,
[2] H. Hanselmann, “Using digital signal processors for control,” in Proc. 1990.
IECON, 1986. [34] Motorola, DSP56ADC16—Evaluation Board User’s Manual, Nov.
[3] S. A. Dyer and B. K. Harms, “Digital signal processing,” Advances in 1988.
Computers, vol. 37, pp. 59–117, 1993. [35] M. A. R. Saghir, P. Chow, and C. G. Lee, “Application-driven design
[4] A. Burns and A. Wellings, Real-Time Systems and Their Programming of DSP architectures and compilers,” in Proc. IEEE ICASSP, 1994, pp.
Languages. Reading, MA: Addison-Wesley, 1990. 437–440.
[5] A. Keithley, Metrabyte Data acquisition catalog and reference guide, [36] K. D. Funk, L. E. Wagner, and J. G. Thompson, “Real time data acqui-
1996–1997. sition and control techniques for automated testing,” in Proc. Amer. Soc.
[6] G. D. Bergland, “A fast Fourier transform algorithm for real-valued se- Agricultural Engineers Winter Meeting, Dec. 1989.
ries,” Commun. ACM, pp. 703–710, Oct. 1968.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.
LAKSHMIKANTH AND MORCOS: POWER QUALITY MONITORING SYSTEM 731
A. Lakshmikanth (S’92–M’97) received the B.E. Medhat M. Morcos (M’78–SM’86) received the
degree in electrical and electronics engineering Ph.D. degree in electrical engineering from the
from Anna University, India, and the M.S. degree in University of Waterloo, Waterloo, ON, Canada, in
electrical engineering from Kansas State University, 1984.
Manhattan, in 1994 and 1996, respectively. Currently, he is Professor of electrical and
He is currently with Cambridge Technology computer engineering and Distinguished Teaching
Partners, Monterey, CA. His interests include power Scholar at Kansas State University, Manhattan.
electronics, power quality, microcomputer-based His areas of interest include power electronics,
systems, and software engineering. artificial intelligence applications in power quality
Mr. Lakshmikanth is a member of Phi Kappa Phi and power systems protection, switching transients
and Tau Beta Pi. in transmission systems, electrical insulation, and
high-voltage engineering. He has a total of 30 years teaching and research
experience in these areas.
Dr. Morcos is a member of Eta Kappa Nu, Tau Beta Pi, Sigma Xi, and Phi
Kappa Phi.
Authorized licensed use limited to: GITAM University. Downloaded on November 06,2022 at 11:05:31 UTC from IEEE Xplore. Restrictions apply.