AP16098
UPS Main Control
XC164CS Implementation of Main Control
Application Note
18
V1.0, 2007-03
Start
T12 Period-Match Interrupt
Service Routine
Enable Shadow
Transfer
DC-Bus is short-circuit?
Over Primary Current?
No
No
A/D Conversion for
Output Voltage
Output is short-circuit?
No
Calculate Output
Voltage RMS
Synchronize the
Line Frequency
PI Regulating for
Output Voltage
A/D Conversion for
Primary Current
Yes
Soft Start
Yes
Disable Inverter
Yes
Calculate
Current Loop
Calculate SPWM
Duty Cycle
Calculate
Line Voltage
Calculate
Output Current
150% Overload?
120% Overload?
Calculate
Battery Voltage
No
No
A/D Conversion for
IGBT Temperature
Overload
temperature?
Communication is
available?
End
No
No
Yes
Yes
Set OT Flag
Set COM Flag
Yes
Yes
10s Start
60s Start
Figure 10
Flow Chart for CCU6 T12 Period-Match Interrupt Service Routine