To provide the most up-to-date i nformation, the revisi on of our documents on the Worl d Wide Web will be
the most current. Your printed copy may be an earlier revision. To verify that you have the latest
information available, refer to http://www.freescale.com
The following revision history table summarizes changes contained in this document. For your
convenience, the page number designators have been linked to the appr opriate location.
This manual describes the Online Uninterruptible Power Supply (OUPS) application.
Audience
This manual targets design engineers interested in developing a UPS using a 56F83xx device.
Organization
This User’s Manual consists of the following sections:
•Chapter 1, Online UPS Theory and Description -- provides an introduction to the concepts of UPS and
describes the theory of operation.
•Chapter 2, Control Loops In The Online UPS-- describes methods and algorithms for control of the
OUPS.
•Chapter 3, Control Board Design Considerations -- describes the Control Board and its features.
•Chapter 4, Operational Description -- explains how the OUPS connects to and operates with an EVM.
•Chapter 5, Control Software Design Considerations -- describes routines and interrupt handlers for a
variety of control functions.
•Chapter 6, Connectivity Software Design Considerations -- explains how to communicate with the
OUPS using TCP/IP protocol.
•Chapter 7, Results -- discusses and illustrates OUPS performance in a variety of conditions.
•Appendix A, Schematics -- contains schematics for both Control Board and Power Board.
•Appendix B, Bill of Materials -- includes a detailed listing of parts used in the OUPS.
Preface, Rev. 0
Freescale Semiconduc torxi
Preliminary
Conventions
This document uses the following notational conventions:
Typeface, Symbol
or Term
Courier
Monospaced Type
ItalicDirectory names,
Code examples//Process command for line flash
project names,
calls,
functions,
statements,
procedures,
routines,
arguments,
file names,
applications,
variables,
directives,
code snippets
in text
MeaningExamples
BoldReference sources,
paths,
emphasis
...and contains these core directories:
applications contains applications software...
...CodeWarrior project, 3des.mcp is...
...the pConfig argument....
...defined in the C header file, aec.h....
...refer to the Targeting DSP56F83xx Platfo r m
manual....
...see: C:\Program Files\Frees cal e\h elp\t uto -
rials
Blue TextLinkable on-line...refer to Chapter 7, License....
NumberAny number is considered a
positive value, unless preceded by a minus symbol to
3V
-10
DES
-1
signify a negative value
ALL CAPITAL
LETTERS
# defines/
defined constants
# define INCLUDE_STACK_CHECK
Brackets [...]Function keys...by pressing function key [F7]
Quotation
Returned messages...the message, “Test Passed” is displayed....
marks, “...”
...if unsuccessful for any reason, it will return
“NULL”...
Online UPS Design Reference Manual, Rev. 0
xii Freescale Semiconductor
Preliminary
Definitions, Acronyms, and Abbreviations
The following list defines the acronyms and abbreviations used in this document. As this
template develops, this list will be generated from the document. As we develop more group
resources, these acronyms will be easily defined from a common acronym dictionary. Please note
that while the acronyms are in solid caps, terms in the definition should be initial capped ONLY
IF they are trademarked names or proper nouns.
ACAlternating Current
ARP Address Resolution Protocol
DCDirect Current
DCODigitally Controlled Oscillator
IIRInfinite Impulse Response
OUPSOnline Uninterruptible Power Supply
PFCPower Factor Correction
PIProportional-Integral
PIDProportional-Integral-Derivative
PLLPhase Locked Loop
PWMPulse Width Modulation
RMSRoot Mean Square
SCRSilicon Controlled Rectifier
TCBTransmission Control Block
UDPUser Datagram Protocol
UPSUninterruptible Power Supply
References
The following sources were used to produce this book; we recommend that you have a copy of
these references:
2. 56F8300 Peripheral User Manual, Freescale, MC56F8300UM
Preface, Rev. 0
Freescale Semiconduc torxiii
Preliminary
Online UPS Design Reference Manual, Rev. 0
xiv Freescale Semiconductor
Preliminary
Introduction
Chapter 1 Online UPS Theory and
Description
1.1 Introduction
Uninterruptible Power Supplies (UPS) are electronic devices designed to provide power to
critical mission systems. An Online UPS (OUPS) provides continuous power to the load during
power outage or glitches caused by power source switching.
1.1.1 The Concept of an Online UPS
The minimum components needed to design an Online UPS are the rectifier, the battery bank and
the inverter. The rectifier converts the distribution line’s AC (Alternating Current) power to DC
(Direct Current), the form of current suitable to store energy in a battery bank. At all times, this
DC is also fed to an inverter, which reconverts the DC power to an AC waveform connected to
any equipment utilizing AC that a user considers as mission critical. If the AC supply fails for
any reason, the inverter will continue to draw power from the batteries.
Figure 1-1. A Basic Online UPS
1.1.2 Input Power Factor Control (PFC)
When a sinusoidal input signal is connected to a full wave rectifier, conduction will occur only
during the peaks of the signal. This causes a two-fold inconvenience to the electricity distribution
line:
•Insertion of harmonics to the lines
•High current peaks, which imply greater losses on the distribution
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-1
Preliminary
These effects are aggravated by the long distances the electric distribution networks usually span.
From the electrical utility’s point of view, the best possible load is the pure resistive: The current
waveform should be a pure sinusoidal waveform identical to the voltage waveform and of the
same frequency and phase.
In order to show a resistive load to the utility lines, the input current to the UPS is controlled (i.e.,
modulated), to make it match a set point. This set point depends on the input voltage waveform,
and its amplitude is dependent on the equipment’s power consumption.
1.1.3 DC-to-DC Converters
If a rectifier is connected to the AC line supply, then the DC voltage will be equal to the peak
voltage of the line. (i.e., in a 120 V
configured for 12 or 24 V
, the UPS works by using DC-to-DC converters.
DC
line, the peak will be 120√2, 170V). If the battery bank is
RMS
For an online UPS, two power DC-to-DC converters are required. One converter operates as the
battery charger, and the other boosts the battery voltage in the absence of line input and generates
the appropriate DC required by the inverter.
1.1.4 Phase Locked Loop (PLL)
This UPS can operate in the Free Running mode or in the Locked-to-Line mode. If the AC main
line frequency is at the nominal value of 50Hz or 60Hz ± 5%, then the PLL locks the inverter
output to the line. If the AC main line frequency runs out of limits for any reason, the UPS will
automatically switch to run locked to the internal frequency reference.
The UPS will also work in the Free Running mode if commanded to operate as a frequency
converter. For example, it can connect to a 60Hz AC main line frequency and output a signal of
50Hz frequency, and vice versa.
The purpose of Phase-Locking the inverter to the line input is to enable the automatic bypass
feature, and to avoid signal “mixing” at the rails. These two features are detailed in the following
sections.
1.1.5 Bypass Operation
In order to allow a UPS bypass without loss of power at the load, two conditions must be met:
•The inverter output must be locked to the frequency and phase of the AC main line
•The inverter output and the AC main line’s RMS voltages must be within 10% of one
another
Online UPS Designer Reference Manual, Rev. 0
1-2 Freescale Semicond uctor
Preliminary
Introduction
When the bypass conditions are met, the bypass switch can transfer the load to the AC main line
in the event of a UPS failure or when commanded by the operator during routine maintenance. It
can also switch the load back to the inverter after any maintenance.
1.1.6 Rail Ripple
The energy to support the load is stored in the rail capacitors. These capacitors are current-fed by
the PFC circuitry in the Online mode or by the battery booster in the Battery Back-up mode.
In the Online mode, a ripple with the phase and twice the frequency of the AC main line will be
present at the rails, superimposed with a ripple with the phase and twice the frequency of the
inverter current. In this situation, if a frequency offset ∆f is present, lower-order components can
appear. Locked operation is preferred to minimize the effects of frequency mixing.
1.1.7 Pulse Width Modula tion (PWM)
High-power control requires switchable electronic devices, precluding their use in the active
region, where power dissipation in the device isvery high. For this reason, control is made by
pulse width modulation, where the duty cycle of a signal is modified, then a linear filtering
device passes the desired signal value to the analog components.
PWM is then used to implement inverters, PFCs, and DC-to-DC converters.
1.1.8 A Controller Solution to Control a UPS
The control system for a UPS must accomplish the following functions:
•Control strategies for inverter, PFC, PLL, and DC-to-DC converters. Every control loop
starts at an Analog-to-Digital Converter (ADC) in order to sense the signals, and ends at a
Pulse Width Modulator as an actuator.
•Deciding when to activate or deactivate a component
•Detecting failure conditions and implementing any required action
•Enabling Monitor and Control (M & C) communications
Compared to traditional analog controls, today’s low-cost and high-performance controllers
provide a better solution in performance and cost. A single MCU includes a powerful processor
core and such peripherals as PWMs, Timers, and Analog-to-Digital Converters. A single 56800E
device is able to assume the monitoring and real-time control required by an Online UPS.
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-3
Preliminary
1.2 System Overview
Figure 1-2 depicts a simplified UPS system.
Figure 1-2. UPS Simplified Schematic
Figure 1-3 shows a photo of a completed UPS prototype. The system’s power electronics and
ferromagnetic components are detailed on the left side of the the figure.
Figure 1-3. Prototype UPS
Online UPS Designer Reference Manual, Rev. 0
1-4 Freescale Semicond uctor
Preliminary
System Actuators
1.3 System Actuators
A simplified schematic of the controller’s relationship with actuators is shown in Figure 1-4,
where all switches represent MOSFETs or IGBTs.
56800E Controller
Figure 1-4. Relationship between a 56800E and Power Actuators
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-5
Preliminary
Figure 1-5. Simplified Schematic Diagram of the UPS
1.4 Input Rectifier Theory of Operation
The input rectifier is implemented as a four-diode bridge (X1, X2, D24, and D23). A soft start
system implemented with SCRs can prevent a huge in-rush current when the system starts, while
the system’s internal capacitors get charged to the line’s peak voltage.
Online UPS Designer Reference Manual, Rev. 0
1-6 Freescale Semicond uctor
Preliminary
Input Rectifier Theory of Operation
Figure 1-6. Input Rectifier
1.4.1 Rectifier Soft Start
If a high voltage is applied to a discharged capacitor, its low impedance will result in a very high
inrush current across the circuit, reducing the components’ longevity.
A soft start circuit is designed to avoid that circumstance. Figure 1-7 shows a full
wave-controlled rectifier bridge. If the trigger angle of X1 and X2 is gradually decreased from
the zero crossing towards the peak voltage, as demonstrated in Figure 1-8, the capacitor voltage
will then increase slowly. As the current on a capacitor equals the capacitance value times the
voltage derivative with respect to time, the input current will be proportional to the slope of the
voltage applied to the capacitor.
1.5 Power Factor Corrector (PFC) Theory of Operation
After the rectifier soft start finishes, X1 and X2 must act as diodes with continuous trigger. When
no PFC is implemented, the line current will be similar to that shown in Figure 1-9, due to the
diode–capacitor nature of a rectifier.
The objective of the PFC circuit is to simulate a resistive load to the power line; in other words, to
obtain a unity power factor and low harmonic content in the current waveform. A fast control
must be implemented in order to make the current waveform follow the AC voltage, while
elevating and controlling the rail voltage and supplying the average power required to the load.
Figure 1-10 shows how the PFC works, illustrating a current signal waveform similar in form to
the voltage waveform. The ripple in the figure is a consequence of the IGBT high frequency
switching.
Figure 1-9. Typical Rectifier Current vs. AC Line Voltage
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-9
Preliminary
Figure 1-10. PFC Current and Voltage Waveforms
Once the voltage on capacitors C3, C7 and C
shown in Figure 1-11 reach the AC main supply
8
peak after the rectifier soft start, the PFC is turned on, correcting the power factor presented to
the line and generating the rail DC voltages V
Online UPS Designer Reference Manual, Rev. 0
and VN at a value higher than the line peak.
P
1-10 Freescale Semicond uctor
Preliminary
Power Factor Corrector (PFC) Theory of Operation
Figure 1-11. PFC Schematic
In order to work as a PFC, U1 and U
When U
is on, U2 is off, and vice versa.
1
in Figure 1-11 turn on and off in complementary mode.
2
The switching frequency of operation is 20kHz . The line nominal frequencies are 50Hz or 60Hz,
so it is a valid approximation to consider the line voltage as a constant during a switching period.
For positive values of the line, when U
that shown in Figure 1-12, where C
capacitors to be the same, thus reducing the ripple voltage on C
is on (closed) and U1 is off (open), the circuit reduces to
2
is connected in parallel to C8, causing the voltages on these
3
.
8
Figure 1-12. Partial PFC Schematic when U1 Is Open and U2 Is Closed
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-11
Preliminary
For positive values of the line, when U1 is closed, and U2 is open, the circuit reduces as shown in
Figure 1-13, where C
line is applied directly to L
voltage could be considered constant, and the inductor current, which corresponds to the current
in the line (I
), depends on the voltage across its terminals.
LINE
is now connected in parallel to C7, thus reducing its ripple voltage. The
3
, increasing the current across it with a constant slope, because line
1
Figure 1-13. Partial PFC Schematic when U1 Is Closed and U2 Is Open
Inductor current is calculated by the equation:
t
1
I
=∆
L
Where:
V
is the voltage across the inductor terminals
L1
The peak current across the inductor at time t2 depends, among other factors, on the instant value
of the line voltage and the time difference t
2
∫
t
1
dtV
Lline
1
, which is the time that U1 remains closed.
2 – t1
Online UPS Designer Reference Manual, Rev. 0
1-12 Freescale Semicond uctor
Preliminary
Power Factor Corrector (PFC) Theory of Operation
Figure 1-14. Resulting Parallel Connection between C3 and C7
The voltage-boosting characteristic of the PFC is accomplished by increasing the voltage across
(and consequently, across C7 and C8). Given that a current is circulating in the inductor L1,
C
3
when U
forces D
opens, the voltage across L
1
into a conduction state and C3 and C8 to charge to the addition of the line and the
24
inductor terminal voltage, V
Figure 1-15. Voltage Boost across Capacitors C3 and C
. This is a typical boost configuration.
L1
adds to the line voltage as shown in Figure 1-15. This
1
8
Due to symmetry, this circuit works in the same way for negative values in line voltage.
Online UPS Theory and Description, Rev. 0
Freescale Semiconduc tor1-13
Preliminary
1.6 Battery Charger Theory of Operation
Figure 1-16 has been extracted from the UPS schematic shown in Figure 1-5. Using the high DC
voltages V
charge conditions for a battery bank formed by two 12V batteries connected in series, which must
be charged with constant current. When the float condition is reached, the charger must preserve
a constant voltage while providing the battery bank’s self-discharge current.
rail positive and VN rail negative as its power sources, this circuit provides the
P
Figure 1-16. Battery Charger Schematic
The battery charger is an application of a two-transistor flyback configuration using a coupling
inductor rather than a transformer. Because this operating mode implies no flow of current in the
secondary when the primary has a non-zero current, and vice versa, it means that no current flows
simultaneously in both windings.
Figure 1-16 shows a two-transistor version of a flyback converter, where U
and U6 are turned
5
on and off simultaneously. The advantage of such a topology over a single-transistor flyback
converter is that the switches’ voltage rating is V
through the diodes D
and D19, which are connected to the primary winding, a dissipative
18
- VN. Moreover, since a current path exists
P
snubber across the primary winding is not needed to dissipate the energy associated with the
transformer primary-winding leakage inductance.
The design, calculations and construction of TX
voltage from secondary to primary rising higher than V
are critical in order to prevent the reflected
1
- VN when D22 is on.
P
Online UPS Designer Reference Manual, Rev. 0
1-14 Freescale Semicond uctor
Preliminary
Loading...
+ 150 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.