Вы находитесь на странице: 1из 180

Online UPS

Designer Reference Manual

56800E
16-bit Digital Signal Controllers

DRM069
Rev. 0
06/2005

freescale.com
Online UPS
Designer Reference Manual

To provide the most up-to-date information, the revision of our documents on the World 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 appropriate location.

Revision History
Revision Page
Date Description
Level Number(s)

06/2005 0 Initial release N/A


TABLE OF CONTENTS

Chapter 1 Online UPS Theory and Description


1.1 Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.1.1 The Concept of an Online UPS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.1.2 Input Power Factor Control (PFC). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1.1.3 DC-to-DC Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.1.4 Phase Locked Loop (PLL). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.1.5 Bypass Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
1.1.6 Rail Ripple. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.1.7 Pulse Width Modulation (PWM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.1.8 A Controller Solution to Control a UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
1.2 System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
1.3 System Actuators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5
1.4 Input Rectifier Theory of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
1.4.1 Rectifier Soft Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1.5 Power Factor Corrector (PFC) Theory of Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1.6 Battery Charger Theory of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
1.7 Battery Booster Theory of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
1.8 Inverter Theory of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
1.9 Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
1.10 Auxiliary Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
1.10.1 Power Supplies and Isolation Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-20
1.10.2 Sensing Circuits and Reference Voltage Generator . . . . . . . . . . . . . . . . . . . . . . . 1-23
1.10.3 Voltage Reference Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-25
1.10.4 Silicon Controlled Rectifier (SCR) Gate Drivers . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
1.10.5 IGBT and MOSFET Gate Drivers Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
1.11 Power Transfer Circuits (Bypass) Theory of Operation . . . . . . . . . . . . . . . . . . . . . . . 1-27
1.12 Overcurrent Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-28
1.13 Battery Temperature Sensing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-30

Chapter 2 Control Loops In The Online UPS


2.1 Control Algorithms Discrete Equivalents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1
2.2 PFC and Rail Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
2.3 Battery Charger Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2.4 Inverter Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
2.5 Battery Booster Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
2.6 Minimizing Delay in the Control Loops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-10

Table of Contents, Rev. 0


Freescale Semiconductor i
Preliminary
Chapter 3 Control Board Design Considerations
3.1 56F8346 Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
3.2 Reset/Modes/Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3.3 Program And Data Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
3.4 RS-232 Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
3.5 LCD Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
3.6 Peripheral Expansion Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
3.6.1 Wireless Board Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
3.6.2 PWM Ports Expansion Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
3.6.3 A/D Ports Expansion Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
3.6.4 Timer A Expansion Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
3.6.5 GPIOPort C Expansion Connector (Bits 0—1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3.6.6 GPIOPort D Expansion Connector (Bits 10—11) . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3.7 Daughter Card Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3.8 CAN Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
3.9 Debug Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
3.9.1 JTAG Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
3.9.2 Parallel JTAG Interface Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
3.10 A/D Filters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
3.11 Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14

Chapter 4 Operational Description


4.1 Panel Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4.2 Operation with EVM or Control Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
4.2.1 Jumper Configuration for EVM and Control Board Operation. . . . . . . . . . . . . . . . . 4-3
4.3 Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.3.1 Installing Batteries. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.3.2 Before Applying Power to the UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
4.3.3 Turning the UPS On . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
4.3.4 Turning the UPS Off . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8

Chapter 5 Control Software Design Considerations


5.1 Peripheral and I/O Pins Assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5.2 Main Execution Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
5.3 Interrupt Handlers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
5.3.1 ADC End of Conversion Interrupt Service Routine . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
5.3.2 UPS Overcurrent Protection Interrupt Handlers . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
5.3.3 Battery Temperature Reading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
5.3.4 Delay_Timer_OnInterrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12

Online UPS Designer Reference Manual, Rev. 0


ii Freescale Semiconductor
Preliminary
5.4 Program Loop Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
5.5 Inverter Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
5.6 PFC Control Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
5.7 Battery Booster Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
5.8 Battery Charger Control Loop. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5.9 Phase Locked Loop Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17
5.9.1 Phase Discriminator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17
5.9.2 Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18
5.9.3 Sine Wave Look-Up Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19
5.10 Frequency Measurement Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
5.11 Rectifier Soft Start Routine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21
5.12 Root Mean Square (RMS) Sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
5.13 Power Sensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
5.14 Routine for Measurement of the Battery Stored Charge . . . . . . . . . . . . . . . . . . . . . . 5-23
5.15 General Purpose Digital Filters Used in the Implementation . . . . . . . . . . . . . . . . . . . 5-24
5.15.1 10Hz Low Pass Filter, 2 Stages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
5.15.2 High-Frequency Noise Rejection Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
5.16 Flash Memory Access . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
5.17 Development Tools Used for Software Implementation . . . . . . . . . . . . . . . . . . . . . . . 5-26
5.17.1 Processor ExpertTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26
5.17.2 Intrinsic 56800E Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
5.17.3 Direct Register Writes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27
5.17.4 Assembly Inlines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-27

Chapter 6 Connectivity Software Design Considerations


6.1 Connectivity Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
6.2 Peripheral and I/O Pins Assignment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
6.3 Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.3.1 LAN91C111 Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.3.2 Network Buffers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6.3.3 Ethernet Abstraction Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.3.4 OpenTCP Stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.3.5 Application Level Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.4 Connectivity Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-3
6.4.1 System Services Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6.4.2 Physical Layer Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6.4.3 Network Layers Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6.4.4 Application Layer Initialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5

Table of Contents, Rev. 0


Freescale Semiconductor iii
Preliminary
6.5 Main Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
6.5.1 Stack Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
6.6 Interrupt Handlers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9

Chapter 7 Results
7.1 Inverter Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
7.1.1 Inverter Waveforms Under No Load Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
7.1.2 Inverter Voltage Harmonics Under No Load Conditions . . . . . . . . . . . . . . . . . . . . . 7-2
7.1.3 Inverter Waveforms Under Linear Load Conditions . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7.1.4 Inverter Voltage Harmonics Under No Load Conditions . . . . . . . . . . . . . . . . . . . . . 7-3
7.1.5 Inverter Waveforms Under Full Load Conditions—Battery Operated . . . . . . . . . . . 7-3
7.1.6 Inverter Voltage Harmonics Under Full Load Conditions—Battery Operated . . . . . 7-4
7.1.7 Inverter Transient Response—60W Cold Bulb . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
7.1.8 Inverter Transient Response to a Resistive Load (200W) . . . . . . . . . . . . . . . . . . . 7-5
7.2 PFC Performance Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
7.2.1 PFC Performance Under Full Load Conditions. . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7.2.2 PFC Performance at 298W Linear Load Conditions . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7.2.3 PFC Performance at 59W Linear Load Conditions . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
7.2.4 PFC—Transient Response to a Load Step. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
7.3 Frequence Performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8
7.4 Battery Charger Performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9
7.4.1 Battery Charger Performance, Current and Voltage Waveforms . . . . . . . . . . . . . . 7-9
7.4.2 Battery Charger—Floating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9
7.5 Bypass Switch Performance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10
7.5.1 Inverter Bypass Switch Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10

Appendix A Schematics
A.1 Control Board Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-2
A.2 Power Board Schematics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-15

Appendix B Bill of Materials


B.1 Specifications of Ferromagnetic Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B-9

Online UPS Designer Reference Manual, Rev. 0


iv Freescale Semiconductor
Preliminary
LIST OF FIGURES
1-1 A Basic Online UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
1-2 UPS Simplified Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
1-3 Prototype UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4
1-4 Relationship between a 56800E and Power Actuators . . . . . . . . . . . . . . . . . . . . . . 1-5
1-5 Simplified Schematic Diagram of the UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6
1-6 Input Rectifier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7
1-7 Full Wave-Controlled Rectifier Bridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
1-8 Relationship between Rectifier Soft Start Operation / Actuator Signals
and the AC Main Line Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
1-9 Typical Rectifier Current vs. AC Line Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9
1-10 PFC Current and Voltage Waveforms. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-10
1-11 PFC Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11
1-12 Partial PFC Schematic when U1 Is Open and U2 Is Closed. . . . . . . . . . . . . . . . . 1-11
1-13 Partial PFC Schematic when U1 Is Closed and U2 Is Open. . . . . . . . . . . . . . . . . 1-12
1-14 Resulting Parallel Connection between C3 and C7 . . . . . . . . . . . . . . . . . . . . . . . 1-13
1-15 Voltage Boost across Capacitors C3 and C8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
1-16 Battery Charger Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
1-17 Battery Booster Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
1-18 Drive Signals for Battery Booster Switches. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-16
1-19 Signals at Transformer Secondary Windings L10 and L9. . . . . . . . . . . . . . . . . . . 1-16
1-20 Signals at the Cathode of D25 and Anode of D26 . . . . . . . . . . . . . . . . . . . . . . . . 1-17
1-21 Inverter Schematic Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-18
1-22 Generation of a PWM Signal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-19
1-23 H Bridge Configuration used to Provide Multiple Floating Power Supplies. . . . . . 1-20
1-24 Waveforms at A and B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-21
1-25 Current Waveforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-22
1-26 Control Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-23
1-27 Partial View of the Auxiliary Power Supply and Optoisolation Network . . . . . . . . 1-24
1-28 General Design of the Sensing Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-24
1-29 Voltage Reference Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-25
1-30 SCR Gate Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
1-31 IGBT and MOSFET Gate Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-26
1-32 Bypass Relay Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-27
1-33 Relay Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-28

List of Figures, Rev. 0


Freescale Semiconductor v
Preliminary
1-34 Overcurrent Protection for Rectifier and Inverter . . . . . . . . . . . . . . . . . . . . . . . . . 1-29
1-35 Overcurrent Protection for Charger and Push-Pull . . . . . . . . . . . . . . . . . . . . . . . . 1-29
1-36 Battery Temperature Sensing Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-30
1-37 Battery Temperature Sensor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-31
2-1 PFC and Rail Control Loops (Positive Semicycle) . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
2-2 Battery Charger Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
2-3 Inverter Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
2-4 Battery Booster Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
3-1 56F8346 Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
3-2 Reset Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
3-3 Selection Mode and Reset Button. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
3-4 Program and Data Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
3-5 RS-232 Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
3-6 LCD Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
3-7 Wireless Board Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
3-8 PWM Ports Expansion Connectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
3-9 A/D Ports Expansion Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
3-10 Timer A Expansion Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8
3-11 GPIO Port C Expansion Connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3-12 GPIO Port D Expansion Connector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
3-13 Daughter Card Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
3-14 CAN Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
3-15 JTAG Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
3-16 Parallel JTAG Interface Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
3-17 Passive Low-pass Filters of the A/D Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
3-18 Power Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15
3-19 External Power Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16
3-20 Power Supply LEDs and Test Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-16
4-1 UPS Switches and Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
4-2 The OUPS with a Control Board Installed. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
4-3 Functional Components and Location of Jumpers on the Power Board . . . . . . . . . 4-5
4-4 Jumpers on the Control Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
4-5 The Right Side of the UPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-9
5-1 Main Routine Flow Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
5-2 Flow Diagram for the Interrupt Service Routine AD1_OnEnd (1 of 5) . . . . . . . . . . 5-5
5-3 Flow Diagram for the Interrupt Service Routine AD1_OnEnd (2 of 5) . . . . . . . . . . 5-6

Online UPS Designer Reference Manual, Rev. 0


vi Freescale Semiconductor
Preliminary
5-4 Flow Diagram for the Interrupt Service Routing AD1_OnEnd (3 of 5) . . . . . . . . . . 5-7
5-5 Flow Diagram for the Interrupt Service Routine AD1_OnEnd (4 of 5) . . . . . . . . . . 5-8
5-6 Flow Diagram for the Interrupt Service Routine AD1_OnEnd (5 of 5) . . . . . . . . . . 5-9
5-7 Overcurrent Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-10
5-8 Battery Temperature Reading. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
5-9 Program Loop Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
5-10 Inverter Control Loop Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-14
5-11 PFC Control Loop Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
5-12 Battery Booster Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5-13 Battery Charger Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16
5-14 Synchronous Phase Discriminator State Machine . . . . . . . . . . . . . . . . . . . . . . . . 5-17
5-15 PLL Control Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-19
5-16 Frequency Measurement Routine. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-21
5-17 SCR Control Signal Generation at the Beginning and End of the Rectifier
Soft Start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
5-18 RMS Sensing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
5-19 Power Sensing System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-23
5-20 Implementation of Low-Pass Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-25
5-21 Implementation of the High Frequency Reject Filter . . . . . . . . . . . . . . . . . . . . . . . 5-26
6-1 Implementation of OpenTCP for OUPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-2
6-2 Connectivity Initialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6-3 Main Application Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-6
6-4 Main Loop Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-7
7-1 Inverter Waverforms—No Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
7-2 Inverter Voltage Harmonics—No Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7-3 Inverter Waveforms—Linear Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2
7-4 Inverter Voltage Harmonics Under Linear Load Conditions . . . . . . . . . . . . . . . . . . 7-3
7-5 Inverter Waveforms Under Full Load Conditions—Battery Operated . . . . . . . . . . . 7-3
7-6 Inverter Voltage Harmonics—Full Load, Battery Operated. . . . . . . . . . . . . . . . . . . 7-4
7-7 Inverter Transient Response—60W Bulb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-4
7-8 Inverter Transient Response—Resistive Load (200W). . . . . . . . . . . . . . . . . . . . . . 7-5
7-9 PFC Waveforms—Full Load Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7-10 PFC Waveforms—Linear Load Conditions (298W) . . . . . . . . . . . . . . . . . . . . . . . . 7-6
7-11 PFC Waveforms—Linear Load Conditions (59W) . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
7-12 PFC Performance—Transient. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-7
7-13 Freerun Frequency Measurement. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-8

List of Figures, Rev. 0


Freescale Semiconductor vii
Preliminary
7-14 Battery Charger Performanc—Charging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9
7-15 Battery Charger—Floating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-9
7-16 Bypass Switching Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-10

Online UPS Designer Reference Manual, Rev. 0


viii Freescale Semiconductor
Preliminary
LIST OF TABLES
4-1 Jumper Position for Configuration of the Power Board . . . . . . . . . . . . . . . . . . . . . . 4-4
4-2 Jumper Position for Configuration of the Control Board . . . . . . . . . . . . . . . . . . . . . 4-6
5-1 Assignment of the Analog-to-Digital Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5-2 Digital Outputs and Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
5-3 Transitions of the Synchronous Phase Discriminator . . . . . . . . . . . . . . . . . . . . . . 5-18
6-1 Digital Outputs and Inputs Used for Connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
6-2 System Services Initialization Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-4
6-3 Physical Layer Initialization Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6-4 Network Layers Initialization Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6-5 Application Layer Initialization Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-5
6-6 Defines Used by Main Connectivity Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
6-7 Functions Used by Main Connectivity Loop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-8
6-8 Interrupts Used by Connectivity Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-9

List of Tables, Rev. 0


Freescale Semiconductor ix
Preliminary
Online UPS Designer Reference Manual, Rev. 0
x Freescale Semiconductor
Preliminary
About This Document
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 Semiconductor xi
Preliminary
Conventions
This document uses the following notational conventions:

Typeface, Symbol
Meaning Examples
or Term

Courier Code examples //Process command for line flash


Monospaced Type

Italic Directory names, ...and contains these core directories:


project names, applications contains applications software...
calls,
functions, ...CodeWarrior project, 3des.mcp is...
statements,
procedures, ...the pConfig argument....
routines,
arguments, ...defined in the C header file, aec.h....
file names,
applications,
variables,
directives,
code snippets
in text

Bold Reference sources, ...refer to the Targeting DSP56F83xx Platform


paths, manual....
emphasis ...see: C:\Program Files\Freescale\help\tuto-
rials

Blue Text Linkable on-line ...refer to Chapter 7, License....

Number Any number is considered a 3V


positive value, unless pre- -10
ceded by a minus symbol to DES-1
signify a negative value

ALL CAPITAL # defines/ # define INCLUDE_STACK_CHECK


LETTERS defined constants

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.
AC Alternating Current
ARP Address Resolution Protocol
DC Direct Current
DCO Digitally Controlled Oscillator
IIR Infinite Impulse Response
OUPS Online Uninterruptible Power Supply
PFC Power Factor Correction
PI Proportional-Integral
PID Proportional-Integral-Derivative
PLL Phase Locked Loop
PWM Pulse Width Modulation
RMS Root Mean Square
SCR Silicon Controlled Rectifier
TCB Transmission Control Block
UDP User Datagram Protocol
UPS Uninterruptible Power Supply

References
The following sources were used to produce this book; we recommend that you have a copy of
these references:
1. DSP56800E Reference Manual, Freescale, DSP56800ERM
2. 56F8300 Peripheral User Manual, Freescale, MC56F8300UM

Preface, Rev. 0
Freescale Semiconductor xiii
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 Semiconductor 1-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 VRMS line, the peak will be 120√2, 170V). If the battery bank is
configured for 12 or 24 VDC, the UPS works by using DC-to-DC converters.

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 Semiconductor
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 Modulation (PWM)


High-power control requires switchable electronic devices, precluding their use in the active
region, where power dissipation in the device is very 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 Semiconductor 1-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 Semiconductor
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 Semiconductor 1-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 Semiconductor
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.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-7
Preliminary
Figure 1-7. Full Wave-Controlled Rectifier Bridge

Figure 1-8. Relationship between Rectifier Soft Start Operation / Actuator Signals
and the AC Main Line Voltage

Online UPS Designer Reference Manual, Rev. 0


1-8 Freescale Semiconductor
Preliminary
Power Factor Corrector (PFC) Theory of Operation

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 Semiconductor 1-9
Preliminary
Figure 1-10. PFC Current and Voltage Waveforms

Once the voltage on capacitors C3, C7 and C8 shown in Figure 1-11 reach the AC main supply
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 VP and VN at a value higher than the line peak.

Online UPS Designer Reference Manual, Rev. 0


1-10 Freescale Semiconductor
Preliminary
Power Factor Corrector (PFC) Theory of Operation

Figure 1-11. PFC Schematic

In order to work as a PFC, U1 and U2 in Figure 1-11 turn on and off in complementary mode.
When U1 is on, U2 is off, and vice versa.

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 U2 is on (closed) and U1 is off (open), the circuit reduces to
that shown in Figure 1-12, where C3 is connected in parallel to C8, causing the voltages on these
capacitors to be the same, thus reducing the ripple voltage on C8.

Figure 1-12. Partial PFC Schematic when U1 Is Open and U2 Is Closed

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-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 C3 is now connected in parallel to C7, thus reducing its ripple voltage. The
line is applied directly to L1, increasing the current across it with a constant slope, because line
voltage could be considered constant, and the inductor current, which corresponds to the current
in the line (ILINE), depends on the voltage across its terminals.

Figure 1-13. Partial PFC Schematic when U1 Is Closed and U2 Is Open

Inductor current is calculated by the equation:

1 t2
∆Iline = ∫ V dt
L t 1 L1
Where:
VL1 is the voltage across the inductor terminals

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 t2 – t1, which is the time that U1 remains closed.

Online UPS Designer Reference Manual, Rev. 0


1-12 Freescale Semiconductor
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
C3 (and consequently, across C7 and C8). Given that a current is circulating in the inductor L1,
when U1 opens, the voltage across L1 adds to the line voltage as shown in Figure 1-15. This
forces D24 into a conduction state and C3 and C8 to charge to the addition of the line and the
inductor terminal voltage, VL1. This is a typical boost configuration.

Figure 1-15. Voltage Boost across Capacitors C3 and C8

Due to symmetry, this circuit works in the same way for negative values in line voltage.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-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 VP rail positive and VN rail negative as its power sources, this circuit provides the
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.

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 U5 and U6 are turned
on and off simultaneously. The advantage of such a topology over a single-transistor flyback
converter is that the switches’ voltage rating is VP - VN. Moreover, since a current path exists
through the diodes D18 and D19, which are connected to the primary winding, a dissipative
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 TX1 are critical in order to prevent the reflected
voltage from secondary to primary rising higher than VP - VN when D22 is on.

Online UPS Designer Reference Manual, Rev. 0


1-14 Freescale Semiconductor
Preliminary
Battery Booster Theory of Operation

1.7 Battery Booster Theory of Operation


The battery booster is a DC-to-DC converter and transforms the battery voltage of 24VDC to the
required differential 440VDC between rails. The rails are symmetric, implying VP = 220VDC at
the positive rail, and VN = -220VDC at the negative rail, as shown in Figure 1-17.

Although the topology of Figure 1-17 is usually called “booster” because its output voltage is
higher than input voltage, it is actually a push-pull converter with an arrangement of two forward
converters working alternatively and a transformer to increase the output voltage.

Figure 1-17. Battery Booster Schematic

The switches U9 and U10 cannot be closed at the same time. Typical drive signals are illustrated
in Figure 1-18.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-15
Preliminary
Figure 1-18. Drive Signals for Battery Booster Switches

Using a control signal like the one shown in Figure 1-18, the waveforms at the transformer
secondary over L10 and L9 are illustrated with positive and negative values of voltage in
Figure 1-19.

Figure 1-19. Signals at Transformer Secondary Windings L10 and L9

C9 remains charged to VBAT and is added because the coupling factor is not equal to one,
implying that a leakage inductor must be considered. C9 acts as a snubber, creating a current path
to avoid an uncontrolled voltage peak at the primary windings of the transformer.

Online UPS Designer Reference Manual, Rev. 0


1-16 Freescale Semiconductor
Preliminary
Battery Booster Theory of Operation

The four diodes D25, D26, D27 and D28 form a conventional full-wave rectifier bridge and
generate only positive values in the cathodes of D25 and D27 and negative values at the anodes
of D26 and D28, as shown in Figure 1-20.

Figure 1-20. Signals at the Cathode of D25 and Anode of D26

The objective of DC/DC converters is to generate a DC voltage. In order to filter any undesirable
AC components, two LC filters are added:

• L7-C7 for the negative rail


• L6-C8 for the positive rail

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-17
Preliminary
1.8 Inverter Theory of Operation

Figure 1-21. Inverter Schematic Diagram

The chosen inverter configuration is a half-bridge monophasic circuit. It must generate a


low-distortion sinusoidal waveform in the output terminals from the VP and VN DC rail voltages.
To produce such a signal, VP and VN must be higher than the AC positive and negative peak
voltages, respectively.

Consider a switching period of T seconds. Assume that U8 is closed during TP seconds, while U7
is open. During the remaining T – TP seconds, U7 is closed and U8 open. If the cutoff frequency
of the low-pass filter composed by inductor L5 and C6 is low enough to reject the 1/T Hz
switching frequency, then the output approximates to:

tp ⎛ t ⎞
Vo = VP + VN ⎜⎜1 − p ⎟⎟
T ⎝ T⎠

tp 1
< 1, = 20 kHz
T T

Where:
tp/T is the duty cycle of the control signal

Online UPS Designer Reference Manual, Rev. 0


1-18 Freescale Semiconductor
Preliminary
Auxiliary Circuits

The expression simplifies to :

tp
Vo = (VP − VN ) + VN
T
As 1/T = 20kHz is much higher than 50Hz or 60Hz, then the output voltage will result
proportional to TP, and the sinusoidal signal can be considered constant during T seconds.

1.9 Pulse Width Modulation


If a sinusoidal reference signal is compared to a symmetric triangle wave, the resulting signal is
pulse width modulated, as shown in Figure 1-22. The triangle waveform frequency corresponds
to the PWM switching frequency.

Figure 1-22. Generation of a PWM Signal

1.10 Auxiliary Circuits


Additional circuits are required to make the complete system operational and include.

• Power supplies
• Signal sensing circuitry

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-19
Preliminary
• Limiters
• Isolation circuits
• Driver circuits for SCRs, NMOSFETs and IGBTs

1.10.1 Power Supplies and Isolation Circuitry


This system requires multiple power supplies with floating references. The typical configuration
is shown in Figure 1-23, and consists of a flyback converter similar to the one used in the battery
charger. A 100kHz switching signal with a duty cycle of 35% is provided by the 56800E
controller and applied to an NMOS technology H bridge.

Figure 1-23. H Bridge Configuration used to Provide Multiple Floating Power Supplies

The output of the isolating transformer is half-wave rectified and applied to the load. Positive and
negative voltages are generated. The 39Ω resistor limits the current of the transformer’s
secondary when M1 and M2 are on. Resistors RL1 and RL2 represent the load.

All isolated power supplies are connected in parallel to the rail voltage, depicted as nodes A and
B in Figure 1-23.

Online UPS Designer Reference Manual, Rev. 0


1-20 Freescale Semiconductor
Preliminary
Auxiliary Circuits

Figure 1-24. Waveforms at A and B

While M1 and M2 are on, VCC is connected directly to the primary, increasing the current
linearly, as shown in Figure 1-25. Cn is simultaneously charging across Dn. The 39Ω resistor
acts as a current limiter. M1, M2, Dp, Cp, and the transformer shape a traditional flyback power
supply.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-21
Preliminary
Figure 1-25. Current Waveforms

When M1 and M2 are off, an inverted voltage is induced in the primary and D1, D2 which limit
that voltage to 15V plus 1.2 from two diode junctures, turning Dp on and charging Cp.

There are several transformers connected to the rails A and B which generate isolated power
supplies to drive SCRs, IGBTs, and MOSFETs used in the rectifier, inverter, battery charger, and
battery booster.

Figure 1-26 shows the control power supply, which uses a LM2576 step-down voltage regulator,
to generate +VCC = 15V fed by the redundant DC voltage coming from 18VAC or +VBAT or an
additional power supply VDCR coming from the battery charger. This circuit also generates the
Control Board Power Supply, which is isolated from +VCC.

Online UPS Designer Reference Manual, Rev. 0


1-22 Freescale Semiconductor
Preliminary
Auxiliary Circuits

Figure 1-26. Control Power Supply

1.10.2 Sensing Circuits and Reference Voltage Generator


All signals that require sensing as voltages, currents, and temperature at the Analog-to-Digital
Converters are converted to the appropriate input levels and diode-limited to avoid damage to the
ADCs; this process uses differential amplifiers as seen in Figure 1-28, because of the different
ground references shown in Figure 1-27.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-23
Preliminary
Controller

Figure 1-27. Partial View of the Auxiliary Power Supply and Optoisolation Network

Figure 1-28. General Design of the Sensing Circuits

Online UPS Designer Reference Manual, Rev. 0


1-24 Freescale Semiconductor
Preliminary
Auxiliary Circuits

The value of the resistors required to sense every signal are calculated in order to guarantee full
swing, minimizing analog and quantization noise at the ADCs.

The reference level of the ADC is used to shift the AC input signal to swing from 0 to VRH (i.e.,
0 volts in the input signal are mapped to VRH/2). If the output of the operational amplifier tends
to go out of limits for any reason, the diodes protect the ADC inputs.

1.10.3 Voltage Reference Supply


The voltage reference, VRH, is generated by the circuit shown in Figure 1-29. This circuit acts as
a buffer to the reference voltage VREFH from the controller. This circuit also generates two
auxiliary voltage outputs:

• VA equal to one diode voltage Vγ


• VB with value VRH-Vγ
These voltages will be used to limit the values of voltage applied to A/D modules inside the
controller.

Figure 1-29. Voltage Reference Generator

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-25
Preliminary
1.10.4 Silicon Controlled Rectifier (SCR) Gate Drivers
The circuit in Figure 1-30 shows the basic driver which handles the SCRs’ gates using an 4N35
optocoupler to generate an isolated current supply to trigger the rectifier’s SCRs.

Figure 1-30. SCR Gate Driver

1.10.5 IGBT and MOSFET Gate Drivers Circuit


Figure 1-31 illustrates the basic isolated circuit implemented to drive the IGBT’s and
MOSFET’s gates. It is based in a HCPL 3101 gate drive optocoupler.

Figure 1-31. IGBT and MOSFET Gate Driver

Online UPS Designer Reference Manual, Rev. 0


1-26 Freescale Semiconductor
Preliminary
Power Transfer Circuits (Bypass) Theory of Operation

1.11 Power Transfer Circuits (Bypass) Theory of Operation


Under normal conditions, the UPS inverter feeds all power to the load. However, in order to
ensure that the load is supported in the event of a failure, or during maintenance, the equipment
must also allow for direct connection to the AC main line. A switching relay is connected as
shown in Figure 1-32.

Figure 1-32. Bypass Relay Configuration

The relay’s transfer time must be shorter than a period of the AC line. A transfer time of less than
20ms is fast enough to comply with this constraint. The transfer is allowed if phase and voltage
conditions are satisfied, as explained in Section 1.1.4.

Figure 1-33 shows the circuit implemented to turn the bypass relay on and off using the BP1
signal. Please note the three different grounds used in the system.

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-27
Preliminary
Figure 1-33. Relay Driver

1.12 Overcurrent Protection


Figure 1-34 shows the rectifier and inverter current sensing circuit. Figure 1-35 shows the
circuits implemented to sense the battery charger and battery booster currents. These circuits
generate overcurrent signals when the current value reaches a defined level. These two signals
are connected directly to the controller’s FAULT 0 and FAULT 1 pins.

Online UPS Designer Reference Manual, Rev. 0


1-28 Freescale Semiconductor
Preliminary
Overcurrent Protection

Figure 1-34. Overcurrent Protection for Rectifier and Inverter

Figure 1-35. Overcurrent Protection for Charger and Push-Pull

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-29
Preliminary
The battery charger overcurrent protection generates a fault signal, named “SIC”, which turns off
the charger PWM signal. Likewise, the battery booster’s overcurrent protection circuit generates
the FPP signal, which turns off the drive signal for the MOSFETS.

1.13 Battery Temperature Sensing


The battery temperature sensing circuit is shown in Figure 1-36; it uses an LM-35-CZ, which is a
precision centigrade temperature sensor. The output of this circuit is a voltage that is proportional
to the temperature. This sensor must be located near the battery.

Figure 1-36. Battery Temperature Sensing Circuitry

Online UPS Designer Reference Manual, Rev. 0


1-30 Freescale Semiconductor
Preliminary
Battery Temperature Sensing

Figure 1-37. Battery Temperature Sensor

Online UPS Theory and Description, Rev. 0


Freescale Semiconductor 1-31
Preliminary
Online UPS Designer Reference Manual, Rev. 0
1-32 Freescale Semiconductor
Preliminary
Control Algorithms Discrete Equivalents

Chapter 2 Control Loops In The Online


UPS
The UPS’s control algorithms are digitally implemented. The topology chosen for the
compensators is the PID (Proportional – Integral – Derivative) and the PI (Proportional –
Integral), with a 3- bit resolution. All gain constants are 16-bit implemented. The accumulators
are all 32-bit, unless otherwise specified.

2.1 Control Algorithms Discrete Equivalents


An ideal PID analog controller is expressed as follows:

⎛ 1 ⎞
Gc( s ) = K p ⎜⎜1 + + τ d ⋅ s ⎟⎟
⎝ τi ⋅ s ⎠

An appropriate technique to discretize this transfer function is the backward difference method,
which is based on numerical integration theory and has the following equivalence rule:

d (1 − z −1 )
s→ →
dt Ts

Where:
Ts is the sampling period

The PID transfer function in discrete time domain is:

K p ⋅ Ts K p ⋅ τ d ⋅ (1 − z −1 )
G c (z) = K p + +
τi ⋅ (1 − z −1 ) Ts

It is implemented as follows:

C (k ) = K P ⋅ e(k ) + K I ⋅ ∑ e( j ) + K D ⋅ [e(k ) − e(k − 1)]


k

j =0

Control Loops In The Online UPS, Rev. 0


Freescale Semiconductor 2-1
Preliminary
Where:

K p ⋅ Ts
KI =
τi

is the discrete time integrator gain


and

K p ⋅τ d
KD =
Ts

is the discrete time differential gain

The proportional gain constant, KP, remains unmodified.

2.2 PFC and Rail Control


Figure 2-1 shows a simplified PFC control loop, valid only for positive AC line voltages. The
PFC is a current loop with a set point calculated as the product of the rail voltage control output
times the AC line voltage.

The voltage control must keep a constant DC rail. V. Positive Rail is sensed and compared to
Voltage Setpoint. The error signal then passes through a PI control network, which outputs one of
the operands used to calculate the current set point. The other operand is the AC Line Voltage,
VLINE. This signal is then used as the set point of a second PI control, which forms the current
control loop.

Online UPS Designer Reference Manual, Rev. 0


2-2 Freescale Semiconductor
Preliminary
PFC and Rail Control

Figure 2-1. PFC and Rail Control Loops (Positive Semicycle)

The goal of the rectifier stage is to maintain the rail DC voltage at ± 220V and to control the input
current to mimic the voltage waveform (and thus to make the complete system appear as a
resistive load to the AC main line). In order to achieve these two goals, two control loops are
required:
A current control loop, implemented with a PI controller, which generates a current as required
by the input inductor. Due to the circuit symmetry, it is possible to implement a control using the
line voltage absolute value to control the signal, regardless of its sign. A suitable controller for
this application is a PI compensator with the following parameters:

⎛ 1 ⎞
Gc(s) = 6.4⎜1 + ⎟
⎝ 0.0002 ⋅ s ⎠

Control Loops In The Online UPS, Rev. 0


Freescale Semiconductor 2-3
Preliminary
Using the backward difference method yields the following discrete time equivalent:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j )
k

j =0

With :
KP = 6.4
and
KI = 1.6

The second controller keeps the rail voltage constant and uses a low pass filter to reject the 60Hz
and 120Hz ripple. The process is much slower than any of these frequencies, and therefore should
not attempt to correct higher harmonic disturbances. The chosen controller is a PI. The output of
this controller modulates the AC main line voltage to obtain the reference for the current loop.

The low-pass filter is a first-order Infinite Impulse Response (IIR) filter with a 3dB cutoff
frequency of 5Hz, implemented with the following transfer function:

f ( z ) b0 ⋅ z
=
e( z ) z − a1

With:
b0 = 0.01
a1 = 0.9984

The following is the proper PI controller:

⎛ 1 ⎞
Gc ( s ) = 0.9⎜1 + ⎟
⎝ 0.0563 ⋅ s ⎠

Using the backward difference method yields the following discrete time equivalent:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j )
k

j =0

With:
KP = 0.9
and
KI = 0.0008

Online UPS Designer Reference Manual, Rev. 0


2-4 Freescale Semiconductor
Preliminary
Battery Charger Control

2.3 Battery Charger Control


The circuit in Figure 2-2 shows a schematic battery charger control loop, consisting of an inner
voltage loop and an outer current loop. The sensed battery voltage determines the charging
current (limited to 1 Ampere). This current is a function of the PWM duty cycle.

Figure 2-2. Battery Charger Control Loop

Given that the battery voltage is a slow signal, the sampling frequency for this control is
decimated by 16 relative to the 20kHz (20kHz/16 = 1250Hz) sampling frequency used elsewhere
in the system. The PWM switching frequency is preserved at 20kHz.

In order to avoid saturation of the voltage compensating network’s integrator, its input is
deactivated if the control output is above a predefined threshold.

The batteries are charged using the constant current–constant voltage approach. While the battery
voltage is lower than the floating voltage (in this case 28V), a constant current of 1A is applied.
When the battery terminal voltage reaches 28V, the voltage is kept constant, decreasing the
charge current. The battery charger system is implemented by two nested loops. The inner loop
controls the charging current and uses a PI control. The reference for this control is delivered by a
voltage control loop, whose output is limited from 0 to 1/3, where 1/3 (in Frac16 notation)
represents 1A. When the batteries are discharged, the voltage control increases the current

Control Loops In The Online UPS, Rev. 0


Freescale Semiconductor 2-5
Preliminary
reference, looking for a 28V voltage. However, when the voltage control loop reaches 1/3, the
integral action is disconnected and the output is limited, forcing the current loop to set a 1A
charging current to the battery. When floating voltage is reached, the voltage control loop reduces
its output, reducing the current applied to the batteries.

The controller chosen for the current control loop is a PI compensator with the following
parameters:

⎛ 1 ⎞
Gc(s) = 0.7⎜1 + ⎟
⎝ 0.001 ⋅ s ⎠

Using the backward difference method results in the following discrete time equivalent system:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j )
k

j =0

With:
KP = 0.7
and
KI = 0.035

The controller chosen for the voltage control loop is a PI compensator with the following
parameters:

⎛ 1 ⎞
Gc( s ) = 0.2⎜1 + ⎟
⎝ 32e − 3 ⋅ s ⎠

Using the backward difference method results in the following discrete time equivalent system:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j )
k

j =0

with:
KP = 0.02
and
KI = 0.0005

Online UPS Designer Reference Manual, Rev. 0


2-6 Freescale Semiconductor
Preliminary
Inverter Control

2.4 Inverter Control


The objective of the inverter control loop is to supply the load with a voltage defined by the
reference signal. This reference signal is generated by the PLL system, at a sampling frequency
of 20kHz, high above the 50/60Hz nominal frequency. For this reason, it is reasonable to
consider the set point a constant.

Figure 2-3. Inverter Control Loop

The inverter control is implemented with a nested topology. The outer loop controls the output
voltage and the inner loop controls the inductor current. This configuration allows better stability
of the feedback system and an implicit limitation of the current delivered to the load. The inner
control loop stabilizes the system, acting as a damper for the LC output circuit.

The controller chosen for the current control loop is a PI compensator with the following
parameters:

⎛ 1 ⎞
Gc( s ) = 0.84⎜1 + ⎟
⎝ 0.0017 ⋅ s ⎠

Control Loops In The Online UPS, Rev. 0


Freescale Semiconductor 2-7
Preliminary
Using the backward difference method results in the following discrete time equivalent system:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j )
k

j =0

With:
KP = 0.84
and
KI = 0.0024
The outer loop is the voltage control. The goal of this loop is to keep a sinusoidal voltage
waveform, regardless of the load characteristics. When nonlinear loads (as a full wave rectifier)
are connected, a high current is drawn at the peaks of the signal. The action taken to overcome
this condition is to inhibit the integral action by disconnecting the integrator input when the
current draw is high. This action reduces the output distortion and enhances the controller
response when the load requires high currents.

The controller chosen for the current control loop is a PI compensator with the following
parameters:

⎛ 1 ⎞
Gc(s) = 3.42⎜1 + + 0.0001688 ⋅ s ⎟
⎝ 0.00036 ⋅ s ⎠

Using the backward difference method results in the following discrete time equivalent system:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j ) + K D ⋅ [e( k ) − e( k − 1)]
k

j =0

With:
KP = 3.42
KI = 0.475
and
KD = 11.75

2.5 Battery Booster Control Loop


The function of this controller is to keep the rail DC voltage at ±220V while the system is
supported by the battery.

Online UPS Designer Reference Manual, Rev. 0


2-8 Freescale Semiconductor
Preliminary
Battery Booster Control Loop

Figure 2-4. Battery Booster Control Loop

Given that the rail voltage is a slow signal, the sampling frequency for this control is decimated
by 16 relative to the 20kHz (20kHz/16 = 1250Hz) sampling frequency used in other sections of
the system. The PWM switching frequency is preserved at 20kHz.

The system is implemented with a PID compensator in order to regulate the rail DC voltage. The
control output modulates the duty cycle of a push-pull power supply. The following are the
parameters of such a controller:

⎛ 1 ⎞
Gc(s) = 16⎜1 + + 0.000005 ⋅ s ⎟
⎝ 0.064 ⋅ s ⎠

Using the backward difference method yields the following discrete time equivalent system:

C ( k ) = K P ⋅ e( k ) + ∑ K I ⋅ e( j ) + K D ⋅ [e( k ) − e( k − 1)]
k

j =0

With:
KP = 16
KI = 0.2
and
KD = 0.1

Control Loops In The Online UPS, Rev. 0


Freescale Semiconductor 2-9
Preliminary
2.6 Minimizing Delay in the Control Loops
The triangular signal used as a carrier wave for the PWM is created from a counter that
accumulates at the controller’s clock speed (60MHz). The pulse width of the PWM is updated at
a rate of 20kHz. This implies that in order to obtain both the 20kHz sampling frequency and a
symmetric triangle wave, this counter must count from zero to 1500, then count back from 1500
to zero:

1 ⎛ 60 MHz ⎞
⎜ ⎟ = 1500
2 ⎝ 20 KHz ⎠

Given that the PWM(s) update their value when the PWM load command is given to the PWM
peripheral, the delay from the time elapsed between the sampling of the signal and the update of
the PWM compare values should be minimized, enhancing the system’s stability. The
implementation of this delay and the relationship between the PWM reference and the ADC
conversion is fully explained in Section 5.

Online UPS Designer Reference Manual, Rev. 0


2-10 Freescale Semiconductor
Preliminary
56F8346 Controller

Chapter 3 Control Board Design


Considerations
3.1 56F8346 Controller
Two source voltages are needed: one for the VDD_IO pins and the other for the ADC module. Jumper JG8
is provided to connect/disconnect the Temperature Sense Diode to the ADCA, Channel 7 (ANA7).

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-1
Preliminary
U1

138 62
A0 A0 PWMA0 PWMA0
10 64
A1 A1 PWMA1 PWMA1
11 65
A2 A2 PWMA2 PWMA2
12 67
A3 A3 PWMA3 PWMA3
13 68
A4 A4 PWMA4 PWMA4
14 70
A5 A5 PWMA5 PWMA5
17 113
A6 A6/PE2 ISA0/PC8 PC8
18 114
A7 A7/PE3 ISA1/PC9 PC9
19 115
A8 A8/PA0 ISA2/PC10 PC10
20 71
A9 A9/PA1 FAULTA0 FAULTA0
21 73
A10 A10/PA2 FAULTA1 FAULTA1
22 74
A11 A11/PA3 FAULTA2 FAULTA2
23
A12 A12/PA4 R60
24 139 FAULTA0
A13 A13/PA5 PHA0/TA0 PHASEA0
25 140
A14 A14/PA6 PHB0/TA1 PHASEB0
26 141 47K
A15 A15/PA7 INDEX0/TA2/PC6 PC6
33 142
PB0 PB0/A16 HOME0/TA3/PC7 PC7
59 88 R61
D0 D0 ANA0 ANA0 FAULTA1
60 89
D1 D1 ANA1 ANA1
72 90 47K
D2 D2 ANA2 ANA2
75 91
D3 D3 ANA3 ANA3
76 92
D4 D4 ANA4 ANA4 R62
77 93 FAULTA2
D5 D5 ANA5 ANA5
78 94
D6 D6 ANA6 ANA6
28 95 47K
D7 D7/PF0 ANA7 ANA7
29
D8 D8/PF1
30 34
D9 D9/PF2 PWMB0 PWMB0
32 35
D10 D10/PF3 PWMB1 PWMB1
133 36
D11 D11/PF4 PWMB2 PWMB2
134 39
D12 D12/PF5 PWMB3 PWMB3
135 40
D13 D13/PF6 PWMB4 PWMB4
136 41
D14 D14/PF7 PWMB5 PWMB5 R64
137 50 FAULTB0
D15 D15 ISB0/PD10 PD10
52
ISB1/PD11 PD11
46 53 47K
/CS0 PS/CS0 ISB2/PD12 PD12
47 56
/CS1 DS/CS1 FAULTB0 FAULTB0 R65
48 57 FAULTB1
/CS2 PD0/CS2 FAULTB1 FAULTB1
49 58
/CS3 PD1/CS3 FAULTB2 FAULTB2
61 47K
FAULTB3 FAULTB3
44
/WR WR R54
45 104 FAULTB2
/RD RD ANB0 ANB0
105
ANB1 ANB1
54 106 47K
/IRQA IRQA ANB2 ANB2
55 107
/IRQB IRQB ANB3 ANB3 R63
108 FAULTB3
ANB4 ANB4
112 109
EXTBOOT EXTBOOT ANB5 ANB5
143 110 47K
EMI_MODE EMI_MODE ANB6 ANB6
111
ANB7 ANB7
81
XTAL XTAL
82 8
EXTAL EXTAL INDEX1/TB2/MISO1/PC2 PC2
3 7
CLKO CLKMODE 87 CLKO PHB1/TB1/MOSI1/PC1 PC1
6
CLKMODE PHA1/TB0/SCLK1/PC0 PC0
9
HOME1/TB3/SS1/PC3 PC3
86
/RESET RESET
/RSTO 85 118
RSTO TC0/PE8 PE8
131 116
MISO0 MISO0/PE6 TD0/PE10 RXTXEN
132 117
MOSI0 MOSI0/PE5 TD1/PE11 CESI
130
SCLK0 SCLK0/PE4
129 126
/SS0 SS0/PE7 CAN_TX CAN_TX
127
CAN_RX CAN_RX
123 JG8
TDI TDI
124 96
TDO TDO TEMP_SENSE 1 ANA7
121
TCK TCK 2
120 4
/TRST TRST TXD0/PE0 TXD0
122 5
TMS TMS RXD0/PE1 RXD0
42
TXD1/PD6 PD6
43
RXD1/PD7 PD7

+3.3V 1 80
VDD_IO1 VDDA_OSC_PLL +3.3V_PLL
16
31 VDD_IO2 102
VDD_IO3 VDDA_ADC +3.3VA
38
66 VDD_IO4
VDD_IO5 C47 C82 C87
84 0.1uF 0.001uF 100pF +3.3V
119 VDD_IO6
VDD_IO7 103
125 VSSA_ADC Single trace
2 VPP1
VPP2 to GNDA
101
VREFH +VREFH R36
51
VCAPC1 1K
128
VCAPC2 JG1
83 CLKMODE
15 VCAPC3 100 2
+ VCAPC4 VREFP 99 1
C15 + 27 VREFMID 98
2.2uF C12 + 37 VSS_IO1 VREFN
2.2uF C13 + 63 VSS_IO2
2.2uF C14 69 VSS_IO3
VSS_IO4 C48 C49 C19
2.2uF 144 0.1uF 0.1uF 0.1uF
VSS_IO5
79 97
Use on-chip REG_EN VREFLO Single trace
regulators to GNDA

MC56F8346

Figure 3-1. 56F8346 Controller

The Control Board provides a Clock Boot Mode jumper, JG1. This jumper is used to select the
type of clock source being provided to the processor as it exits reset. The user can select between
the use of a crystal or an oscillator as the clock source for the processor.

Online UPS Designer Reference Manual, Rev. 0


3-2 Freescale Semiconductor
Preliminary
Reset/Modes/Clock

The fault inputs of the PWM modules are tied to ground as a pull-down configuration in order to
prevent false fault conditions; see Figure 3-1.

3.2 Reset/Modes/Clock
Logic is provided on the Control Board to generate an internal Power-On Reset; see Figure 3-2.
Additional reset logic is provided to support the reset signals from the JTAG connector, the
Parallel JTAG Interface and the user reset push-button, S1; see Figure 3-3.

U9A U9B
P_RESET 1 4
3 6
/RESET
2 5
/POR
74AC00 74AC00

U9C U9D
9 12
8 11
/J_TRST /TRST
10 13

74AC00 74AC00

Figure 3-2. Reset Logic

The Control Board uses an 8.00MHz cystal (Y1) connected to processor’s oscillator inputs
(XTAL and EXTAL). The crystal configuration is shown in Figure 3-3.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-3
Preliminary
+3.3V

EXTAL R28
10K +3.3V
R32
S1
Y1 10M 1 3 JG12
/POR 10K
8.00MHz R1 2 4 Jumper
1
RESET PD6 2
3
A/M
C46
0.1uF R16
XTAL
10K

+3.3V +3.3V
BOOT MODE JUMPER
EXT BOOT NC +3.3V
INT BOOT R25 R27
1 - 2 10K PUSHBUTTON 1 10K R18
JG14
10K
JG3 S2 Jumper
1 3 1
2 EXTBOOT PC10 PD12 2
2 4 110/220
1 3
R17
OPTION C20
0.1uF
10K

EMI MODE JUMPER +3.3V


+3.3V
EMI A0-A19 NC +3.3V
EMI A0-A15 1 - 2 R24 R26
10K PUSHBUTTON 2 10K R20
JG13
10K
JG4 S3 Jumper
1 3 1
2 EMI_MODE PE8 PD7 2
2 4 50/60
1 3
R19
ENTER C21
0.1uF
10K

Figure 3-3. Selection Mode and Reset Button

The Control Board provides an External/Internal Boot mode jumper, JG4. This jumper is used to
select the internal or external memory operation of the processor as it exits reset.

The Control Board also provides an EMI Boot Mode jumper, JG5. This jumper is used to select
the External Memory Addressing Range Operating mode of the processor as it exits reset. The
user can select either a 64K address space or an 8M address space.

As seen in Figure 3-3, the board includes two user pushbuttons, S2 and S3 (Option and Enter,
respectively,) that can be used for general purposes. The jumpers JG12, JG13, and JG14 are used
to select Auto/Manual modes, 50/60Hz, and 110/220V, respectively.

3.3 Program And Data Memory


The Control Board contains two 128K x 16-bit Fast Static RAM banks. SRAM bank 0 is
controlled by CS0 and SRAM bank 1 is controlled by CS1 and CS2; see Figure 3-4. This
provides a total of 256K x 16 bits of external memory.

Online UPS Designer Reference Manual, Rev. 0


3-4 Freescale Semiconductor
Preliminary
RS-232 Serial Communications

128Kx16-bit Program Memory (CS0) 128Kx16-bit Data Memory (CS1/CS2)


U2 U3
5 7 A0 5 7 D0
A0 A0 DQ1 D0 A1 A0 DQ1 D1
4 8 4 8
A1 A1 DQ2 D1 A2 A1 DQ2 D2
3 9 3 9
A2 A2 DQ3 D2 A3 A2 DQ3 D3
2 10 2 10
A3 A3 DQ4 D3 A4 A3 DQ4 D4
1 13 1 13
A4 A4 DQ5 D4 A5 A4 DQ5 D5
44 14 44 14
A5 A5 DQ6 D5 A6 A5 DQ6 D6
43 15 43 15
A6 A6 DQ7 D6 A7 A6 DQ7 D7
42 16 42 16
A7 A7 DQ8 D7 A8 A7 DQ8 D8
27 29 27 29
A8 A8 DQ9 D8 +3.3V +3.3V A9 A8 DQ9 D9
26 30 26 30
+3.3V A9 A9 DQ10 D9 A10 A9 DQ10 D10
25 31 25 31
A10 A10 DQ11 D10 A11 A10 DQ11 D11
24 32 24 32
A11 A11 DQ12 D11 A12 A11 DQ12 D12
21 35 21 35
A12 A12 DQ13 D12 R30 R29 A13 A12 DQ13 D13
20 36 20 36
A13 A13 DQ14 D13 10k A14 A13 DQ14 D14
R23 19 37 10k 19 37
A14 A14 DQ15 D14 A15 A14 DQ15 D15
10K 18 38 18 38
A15 A15 DQ16 D15 PB0 A15 DQ16
A16 22 22
PB0 A16 A16
11 11
VDD +3.3V /RD VDD +3.3V
JG5 41 33 41 33
/RD OE VDD /WR OE VDD
17 17
/CS0 1 /ECS0 /WR WE WE
6 JG10 6
2 39 CE 12 /ECS1 39 CE 12
LB VSS /CS1 1 2 /ECS2 LB VSS
40 34 40 34
UB VSS /CS2 3 4 UB VSS
GS72116TP-12 GS72116TP-12
R37 R38
1K 1K R39
1K

+3.3V
CS1/CS2 ENABLE JUMPER
CS0 ENABLE JUMPER R22 OPTION JG6
/ECS1
OPTION JG5 10K SRAM WORD ENABLE 1-2 3-4
SRAM UPPER BYTE ENABLE NC 3-4
SRAM ENABLE 1-2 R21
/ECS2
SRAM LOWER BYTE ENABLE 1-2 NC
SRAM DISABLE NC 10K
SRAM DISABLE NC NC

Figure 3-4. Program and Data Memory

3.4 RS-232 Serial Communications


The Control Board provides an isolated RS-232 interface by the use of an RS-232 level
converter, Maxim MAX3245EEAI, designated as U4, and two high speed optocouplers,
Fairchild 6N136S, designated as U20 and U21.

This circuitry transitions the SCI UART’s +3.3V signal levels to RS-232-compatible signal
levels and connects to the host’s serial port via connector P2.

Flow control is not provided. The SCI0 port signals can be isolated from the RS-232 level
converter by removing the jumpers in JG11. The RS-232 level converter/transceiver can be
disabled by placing a jumper at JG7; see Figure 3-5.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-5
Preliminary
+5.0V
5Vext

/EN R41 1K
R90 5Vext
390 T2IN R42 1K

U20
T3IN R43 1K
1 8 R108

3
NC1 VCC 2K C56
TXD0 1 Q3 2 7 0.1uF R2IN
BSV52LT1 +VF VE R44 1K
3.9K R47 3 6
2
-VF VD
R3IN R45 1K
4 5
NC2 GND
R4IN R34 1K
6N136S

5Vext R5IN R35 1K


U4
28 26
5Vext C11 C1+ VCC
+5.0V 1.0uF 3 C10
24 V-
C1- 1.0uF
1
R98 C8 C2+ 27 C9
U21 390 1.0uF V+ 1.0uF
R107 8 1 2 25
2K VCC NC1 C2- GND P2
C55 7 2 1 DCD
VE +VF JG11 6 DSR
0.1uF

3
6 3 R46 14 9 2
RXD0 VD -VF 1 2 T2IN T1IN T1OUT TXD
Q1 1 13 10 7
5 4 BSV52LT1 3 4 T3IN 12 T2IN T2OUT 11 1 T4 3 CTS
GND NC2 T3IN T3OUT 1 T5 8 RXD

2
3.9K 20 4 RTS
T6 1 R2OUTB DTR
6N136S 19 4 9
18 R1OUT R1IN 5 R2IN 5
T7 1 R2OUT R2IN R3IN
17 6
T8 1 R3OUT R3IN R4IN
16 7
T9 1 R4OUT R4IN R5IN
5Vext 15 8
T10 1 R5OUT R5IN SCI #0
/EN 23
FORCEON 21
RS-232
R40 22 INVALID 1 T3
RS-232 SHUTDOWN JUMPER 1K FORCEOFF CONNECTOR
MAX3245EEAI
RS-232 ENABLE N/C JG7
1
RS-232 DISABLE 1 - 2 2

Figure 3-5. RS-232 Serial Communications

3.5 LCD Interface


The Control Board contains an LCD as the primary user interface feedback. The LCD contains a
built-in internal driver. The display is controlled by some of the 56F8346’s GPIO pins.
Figure 3-5 shows this hardware interface. As seen in Figure 3-6, the LCD interface (J12) uses a
4-bit data bus (D4-D7).

J12
1
2 GND
+5.0V VCC
3
4 VO
PC2 RS
R33 5
10K 6 /RW
PC3 E
7
8 D0
9 D1
1

10 D2
11 D3
PC6 D4
R110 2 12
PC7 D5
20K 13
PC8 D6
14
PC9 D7
A
B A
3

C B
D C
D
LCD_DISPLAY

Figure 3-6. LCD Interface

Online UPS Designer Reference Manual, Rev. 0


3-6 Freescale Semiconductor
Preliminary
Peripheral Expansion Connectors

3.6 Peripheral Expansion Connectors


3.6.1 Wireless Board Connector
The Control Board contains a connector, J11, intended for use by the 13192 RF Daughter Card
(13192RFC). The MC13192 RF modem daughter card is a low-cost development board that
provides a simple interface to Freescale's MC13192 transceiver.
The MC13192 is a short-range, low-power, 2.4GHz ISM band transceiver which contains a
complete 802.15.4 physical layer (PHY) modem designed for the IEEE 802.15.4 wireless
standard supporting star and mesh networking. For further information, please visit
www.freescale.com/zigbee .

J11
1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
17 18
/IRQA 19 20
21 22
23 24
25 26
27 28
29 30
RXTXEN 31 32 /RESET
33 34 CESI
MOSI0 35 36 SCLK0
/SS0 37 38 MISO0
+3.3V 39 40
WIRELESS BOARD

Figure 3-7. Wireless Board Connector

3.6.2 PWM Ports Expansion Connectors


The PWM ports A and B are attached to the J5 and J14 connectors, respectively.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-7
Preliminary
J5 J14
PWMA0 1 2 PWMA1 PWMB0 1 2 PWMB1
PWMA2 3 4 PWMA3 PWMB2 3 4 PWMB3
PWMA4 5 6 PWMA5 PWMB4 5 6 PWMB5
FAULTA0 7 8 FAULTA1 FAULTB0 7 8 FAULTB1
FAULTA2 9 10 FAULTB2 9 10 FAULTB3
PC8 11 12 PC9 11 12
PC10 13 14 13 14
PWMA PWMB

Figure 3-8. PWM Ports Expansion Connectors

3.6.3 A/D Ports Expansion Connectors


The 8-channel Analog-to-Digital conversion port A is attached to the J7 connector and port B is
attached to J13; see Figure 3-9. There is an RC network on each of the Analog ports’ input
signals; see Figure 3-17.

J7 J13
AN0 1 2 AN1 AN8 1 2 AN9
AN2 3 4 AN3 AN10 3 4 AN11
AN4 5 6 AN5 AN12 5 6 AN13
AN6 7 8 AN7 R8 R10 AN14 7 8 AN15 R14 R15
9 10 +VREFH 9 10 +VREFH
A/D PORT A 0 Ohm 0 Ohm A/D PORT B 0 Ohm 0 Ohm
C85 C84
J15 0.47uF 0.47uF
J16
1 1
2 2
SHIELDING PIN SHIELDING PIN

Figure 3-9. A/D Ports Expansion Connectors

3.6.4 Timer A Expansion Connector


The TA0 and TA1 signals of Timer Channel A port are attached to the J9 connector.

J9
PHASEA0 1 2 PHASEB0
3 4 R11 R9
5 6 +3.3V
7 8 0 Ohm 0 Ohm
9 10
C86
0.47uF
TIMER CHANNEL A

Figure 3-10. Timer A Expansion Connector

Online UPS Designer Reference Manual, Rev. 0


3-8 Freescale Semiconductor
Preliminary
Daughter Card Connector

3.6.5 GPIOPort C Expansion Connector (Bits 0—1)


PC0 (GPIOC0) and PC1 (GPIOC1) pins are attached to the J8 connector.

J8
PC1 1 2
PC0 3 4 R13 R12
5 6 +3.3V
7 8 0 Ohm 0 Ohm
9 10
C83
0.47uF
SCRs
GATE

Figure 3-11. GPIO Port C Expansion Connector

3.6.6 GPIOPort D Expansion Connector (Bits 10—11)


PD10 (GPIOD10) and PD11 (GPIOD11) pins are attached to the J4 connector.

J4
1 2
3 4
5 6
7 8
9 10
PD10 11 12 PD11
13 14
BYPASS

Figure 3-12. GPIO Port D Expansion Connector

3.7 Daughter Card Connector


The Control Board includes two daughter card connectors. One connector, J1, contains the
processor’s peripheral port signals. The second connector, J2, contains the processor’s external
memory bus signals. The Daughter Card connectors are used to connect the Ethernet evaluation
daughter card; see Figure 3-13.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-9
Preliminary
J1 J2

A10 1 2 A11 1 2
A9 3 4 /CS1 CLKO 3 4
A8 5 6 A15 5 6
A7 7 8 A14 7 8
9 10 9 10
/WR 11 12 A13 11 12
D0 13 14 A12 13 14
D1 15 16 D8 15 16
D2 17 18 D9 17 18
19 20 SCLK0 19 20
D3 21 22 D10 21 22
D4 23 24 D11 MOSI0 23 24
D5 25 26 D12 MISO0 25 26
D6 27 28 D13 27 28
29 30 /SS0 29 30
D7 31 32 D14 31 32
/CS0 33 34 D15 33 34
A0 35 36 /RD /RESET 35 36
A1 37 38 A6 37 38
39 40 39 40
A2 41 42 A5 41 42
A3 43 44 A4 /IRQB 43 44
/CS3 45 46 /CS2 /IRQA 45 46
+3.3V 47 48 +3.3V 47 48
49 50 49 50
51 51

ADDRESS/DATA PERIPHERAL
91930-21151 91930-21151

Figure 3-13. Daughter Card Connectors

3.8 CAN Interface


The Control Board contains a CAN physical-layer interface chip that is attached to the FlexCAN
port’s CAN_RX and CAN_TX pins through optocouplers. The Control Board uses a Philips
high-speed, 1.0Mbps, physical-layer interface chip, PCA82C250.

The CANH and CANL signals pass through inductors before attaching to the CAN bus
connectors. A primary, J6, and daisy-chain, J6, CAN connectors are provided to allow easy
daisy-chaining of CAN devices. CAN bus termination of 120 ohms can be provided by adding a
jumper to JG2. The FlexCAN port is attached to J17 connector; see Figure 3-14.

Online UPS Designer Reference Manual, Rev. 0


3-10 Freescale Semiconductor
Preliminary
Debug Support

+5.0V

+5.0V
R92 CAN_RX
390
C40 0.1uF

JG2
R48 R95 390 BCANH CAN BUS

3
3.9K 1
1 Q2 TERMINATION
CAN_TX 2
BSV52LT1
2

4
R109

5
NC1

NC2
+VF

-VF
120
U13

VE

VO

GND
VCC
1/4W
6N137S BCANL

GND
VCC
6N137S

VO
VE

NC2
NC1

+VF
U14

-VF
J6
8

5
BCANL 1 2 BCANH

4
3 4
5 6
7 8
9 10
5Vext
R93 390 5Vext
J17
CAN_TX 1 2
CAN_RX 3 4
R97
C39 0.1uF 390 CAN
U16
1 4
TXD RXD L7
3 7 CANH BCANH
5Vext VCC CANH CANL BCANL
C34 2 6
0.1uF GND CANL
8 5
Rs Vref

PCA82C250

Figure 3-14. CAN Interface

3.9 Debug Support


The Control Board provides an on-board Parallel JTAG Host Target Interface and a JTAG
interface connector for external target interface support. Two interface connectors are provided to
support each of these debugging approaches. These two connectors are designated the JTAG
connector and the Host Parallel Interface connector.

3.9.1 JTAG Connector


The JTAG connector on the Control Board allows the connection of an external Host Target
Interface for downloading programs and working with the 56F8346’s registers. This connector is
used to communicate with an external Host Target Interface which passes information and data
back and forth with a host processor running a debugger program.

When this connector is used with an external Host Target Interface, the parallel JTAG interface
should be disabled by placing a jumper in jumper block JG9.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-11
Preliminary
J3
/DE /J_TRST
13 14
+3.3V P_RESET 11 12
9 10 TMS
7 8 KEY
TCK 5 6
TDO 3 4
TDI 1 2
JTAG Connector

Figure 3-15. JTAG Connector

3.9.2 Parallel JTAG Interface Connector


The Parallel JTAG Interface connector, P1, allows the 56F8346 to communicate with a Parallel
Printer Port on a Windows PC. All interface signals are optoisolated. Using this connector, the
user can download programs and work with the 56F8346’s registers. When using the parallel
JTAG interface, the jumper at JG9 should be removed; see Figure 3-16.

Online UPS Designer Reference Manual, Rev. 0


3-12 Freescale Semiconductor
Preliminary
Debug Support

PORT_IDENT

R31
P1
10k
1
14 U11
2 PORT_RESET 2 18
15 1A1 1Y1 PORT_RESET
3 PORT_TMS 4 16
16 1A2 1Y2 PORT_TMS
4 PORT_TCK 6 14
17 1A3 1Y3 PORT_TCK
5 PORT_TDI 8 12
18 1A4 1Y4 PORT_TDI
6 /PORT_TRST 11 9
19 2A1 2Y1 /PORT_TRST
R52
7 PORT_DE 13 7
20 2A2 2Y2 1 T2
5.1K
8 15
2A3 PORT_TDO
21
9 PORT_VCC 20 17
5Vext VCC 2A4 PORT_CONNECT
22
10
23 1
PORT_TDO R105 1G
11 5
24 2Y 3 19
51 Ohm 2G
12
25
PORT_CONNECT R104
13 3 10 R53 R49
2Y 4 GND 5.1K 5.1K
51 Ohm
MC74HC244DW

+5.0V +5.0V

R87 R86 R85 R84


U17 390 390 C50 U18 390 390 C51
390 R101
1 8 0.1uF 5Vext 1 8 0.1uF
PORT_RESET +VF1 VCC +VF1 VCC
390 R88
2 7 2 7
-VF1 VO1 1A1 PORT_TCK -VF1 VO1 1A3
390 R89 390 R94
3 6 3 6
PORT_TMS -VF2 VO2 1A2 PORT_TDI -VF2 VO2 1A4
5Vext 4 5 5Vext 4 5
+VF2 GND +VF2 GND

HCPL-2631S HCPL-2631S

5Vext
+5.0V

R82 R91
R83
U12 C53 390 390
390 U19
1 8 C52 0.1uF
NC1 VCC 8 1 +5.0V
0.1uF VCC +VF1
2 7 390 R99
5Vext +VF VE 7 2
390 R96 PORT_CONNECT VO1 -VF1 2Y 4
3 6 390 R100
/PORT_TRST -VF VD 2A1 6 3
PORT_TDO VO2 -VF2 2Y 3
4 5
NC2 GND 5 4 +5.0V
GND +VF2

6N137S
HCPL-2631S

+3.3V

R3 0 Ohm U10 R58


2 18 P_RESET TDO
1A1 1A1 1Y 1
R4 0 Ohm 47K
4 16 TMS
1A2 1A2 1Y 2
R5 0 Ohm R57
6 14 TCK PWR
1A3 1A3 1Y 3
R6 0 Ohm 47K
8 12 TDI
1A4 1A4 1Y 4
R7 0 Ohm R56
11 9 /J_TRST /DE
2A1 2A1 2Y 1
7 13 P_DE 47K
T1 1 2Y 2 2A2
R59
5 15 TDO TMS
2Y 3 2Y 3 2A3
3 17 PWR 47K
2Y 4 2Y 4 2A4
+3.3V

20 R55
1 VCC /J_TRST
19 1G 10
2G GND 47K
2
1

JG9 R51
MC74LCX244DW P_DE
R50
5.1K
5.1K
On-Board
Host Target Interface
Disable

Figure 3-16. Parallel JTAG Interface Connector

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-13
Preliminary
3.10 A/D Filters
As Figure 3-17 shows, all Analog-to-Digital ports of the processor are connected to RC networks
that work as low-pass filters.

R80 R79 R71


AN0 ANA0 AN7 ANA7 AN12 ANB4
560 560 560
C75 C76 C69
0.0022uF 0.0022uF 0.0022uF

R81 R75 R76


AN1 ANA1 AN8 ANB0 AN13 ANB5
560 560 560
C77 C65 C70
0.0022uF 0.0022uF 0.0022uF

R68 R72 R77


AN2 ANA2 AN9 ANB1 AN14 ANB6
560 560 560
C78 C66 C71
0.0022uF 0.0022uF 0.0022uF

R70 R73 R78


AN3 ANA3 AN10 ANB2 AN15 ANB7
560 560 560
C79 C67 C72
0.0022uF 0.0022uF 0.0022uF

R74
R69 AN11 ANB3
AN4 ANA4 560
NOTE: Use a single trace
560 C68
0.0022uF
for GNDA signals to the
C80
0.0022uF common GNDA point.

R67
AN5 ANA5
560
C73
0.0022uF

R66
AN6 ANA6
560
C74
0.0022uF

Figure 3-17. Passive Low-pass Filters of the A/D Ports

3.11 Power Supply


The Control Board has two power inputs through the 2.1mm coax power jacks P3 and P4.

The main power input (P3) must be fed with a voltage of +12V DC at 1.2A. This power input
feeds a voltage regulator of 5V DC (U6), which supplies two more 3.3V DC regulators. The first
of the 3.3V DC (U8) regulators supplies the voltage to all of the 3.3V DC ICs. The second 3.3V
DC (U7) regulator feeds the ADC module of the controller and feeds another voltage regulator of
3.0V DC (U15) used as a reference for the controller’s ADC; see Figure 3-18.

Online UPS Designer Reference Manual, Rev. 0


3-14 Freescale Semiconductor
Preliminary
Power Supply

UNREGULATED POWER INPUT


7-12V DC/AC +12V

U6 LM2575S-5.0
P3 D1
2 1 1 2 1 4 +5.0V
6 VIN FB
+ C1 C22 3 TAP L1
S1ABDICT-ND
3
470uF 0.1uF 5 GND 2
16VDC ON/OFF OUT
PM5022 330uF
D6 + C7
330uF C54
10BQ060
10VDC 0.1uF
Diode schottky

D3 D4
2 1 2 1
DNP DNP
S1ABDICT-ND S1ABDICT-ND

R106
U8 U7
+VREFH
VCC
3 2 3 2 10 DNP
+5.0V VIN VOUT L2 +5.0V VIN VOUT L3
1 4 1 4
GND VOUT +3.3V GND VOUT +3.3VA
FERRITE BEAD + FERRITE BEAD
C3
MC33269DT-3.3 C16 47uF MC33269DT-3.3 C18 C23 + C4
2.2uF TANT 10VDC 2.2uF TANT 0.1uF 47uF
10VDC 10VDC L4 10VDC JG6
1
FERRITE BEAD 2

R2
0 Ohm

Single trace
to GNDA.

L5 U15
1
+3.3V +3.3V_PLL +3.3VA VIN +3.0V
5
FERRITE BEAD VOUT +VREFH
3
EN 4
+ C5 2 NR + C81
C24
47uF 0.1uF GND C59 10uF
10VDC REG113NA-3/3K 0.01uF 6VDC

Figure 3-18. Power Input

The second power input (P4) feeds the +5V DC voltage regulator, U5. This regulator supplies the
voltage to a part of the optocouplers and the components before them.

Control Board Design Considerations, Rev. 0


Freescale Semiconductor 3-15
Preliminary
EXTERNAL POWER D5
SUPPLY INPUT 2 1

7-12Vext DC +12Vext
S1ABDICT-ND

U5 5Vext
P4 D2
2 1 1 2 3 2
VIN VOUT
L6
+ C2 C33 1 4
S1ABDICT-ND
3

470uF 0.1uF GND VOUT


FERRITE BEAD +
16VDC C6
MC33269DT-5.0 C17 47uF
2.2uF TANT 10VDC
10VDC

Figure 3-19. External Power Input

Several test points were placed over the Control Board and LEDs indicate when the power
sources are turned on; see Figure 3-20.

+5.0V 5Vext

GROUNDext +5.0Vext
R103 R102
TEST POINT TEST POINT 270
POWER GOOD LED 270
POWER GOOD LED
TP9 TP8
POWER SUPPLY +5.0V POWER SUPPLY 5Vext
1

1
LED1 LED2
GREEN LED GREEN LED

5Vext
2

+3.3VA ANALOG GROUND GROUND +3.3V GROUND GROUND +5.0V


TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT
TP2 TP6 TP3 TP1 TP4 TP5 TP7
1

1
+3.3VA
+3.3V +5.0V

Figure 3-20. Power Supply LEDs and Test Points

Online UPS Designer Reference Manual, Rev. 0


3-16 Freescale Semiconductor
Preliminary
Panel Description

Chapter 4 Operational Description


4.1 Panel Description

Online UPS I
Power
o ON
Freescale
VAC Out EVM Serial
I Port
UPS ON 300 VA
o Max.

Output
Fuse 3A
EVM
Parallel
Port

Ethernet
Port
VDC Battery
Switch Input
Fuse 4A

AC Main
IN

UPS Front Panel UPS Back Panel

Figure 4-1. UPS Switches and Connectors

The UPS contains the following switches and connectors:

On the front panel:

• Power-On Switch, which disconnects the AC main line and the EVM power supply,
powering off the complete system
• UPS On Switch, which enables or disables the inverter output.
On the back panel:
• Outputs: Two standard 120/240 VAC power outlets
• Fuse F1: Line input fuse, 4 A
• Fuse F2: Inverter output fuse, 3 A
• Line Connector Cable: 120/240VAC main 50/60Hz line input

Operational Description, Rev. 0


Freescale Semiconductor 4-1
Preliminary
• VDC Battery Switch: Must be in the “off” position when the batteries are to be connected
or disconnected to the system. After connection or disconnection, this switch must be in
the “on” position.
• EVM or Control Board Serial Port: For connection of PC master software debug utility
• EVM or Control Board Parallel Port: For connection of Codewarrior development system
• Ethernet Port: For connection to the Internet

4.2 Operation with EVM or Control Board


The UPS operates with a 56F8346 OUPS Control Board designed for this project.

In addition to the peripherals found on the EVM, the Control Board features:

• A 16 x 2 character LCD display


• Two push buttons, labeled “Option” and “Enter”
• A LAN card installed in the daughter card connectors
• 110/220V, 50/60Hz and Auto/Manual jumpers
• An additional external power connector for the JTAG optocouplers

Online UPS Designer Reference Manual, Rev. 0


4-2 Freescale Semiconductor
Preliminary
Operation with EVM or Control Board

Figure 4-2. The OUPS with a Control Board Installed

4.2.1 Jumper Configuration for EVM and Control Board Operation


The system’s jumper configuration depends on the card chosen for the control. If an EVM is
used, the settings for output voltage, auto or manual frequency configuration, and 50Hz or 60Hz
operation are made from the Power Board. Settings are made locally if the Control Board is
chosen. The 120/220V input line voltage jumper (JP4) must always be configured at the Power
Board.

• Jumpers on the Power Board:


— JP1, JP2 and JP3 must be set when the system operates with an EVM. Do not install
jumpers when the system operates with a Control Board.
JP4 must always be set.
— JP1: 120/220V inverter voltage jumper
— JP2: Auto/Manual Jumper.
When configured in Auto, the UPS self-determines the frequency of operation of the
inverter, and configures itself to generate a signal locked in phase and frequency to the

Operational Description, Rev. 0


Freescale Semiconductor 4-3
Preliminary
one from the AC main supply line.
When configured in Manual, the frequency of the inverter signal is determined by the
50/60Hz jumper.
— JP3: 50/60Hz jumper.
Read only when the Auto/Manual jumper is in the Manual position.
This configuration forces the inverter to operate at the designed frequency, allowing
this equipment to be used as a frequency converter.
— JP4: 120/220V input line supply jumper

Table 4-1. Jumper Position for Configuration of the Power Board

JP1
1 2 3 1 2 3 220V Inverter Voltage
120V Inverter Voltage
JP2
1 2 3 1 2 3 Manual mode
Auto mode
JP3
1 2 3 1 2 3 50Hz mode
60Hz mode
JP4
1 2 3 1 2 3 220V Line Input Voltage
120V Line Input Voltage

Online UPS Designer Reference Manual, Rev. 0


4-4 Freescale Semiconductor
Preliminary
Operation with EVM or Control Board

Figure 4-3. Functional Components and Location of Jumpers on the Power Board

• Jumpers on the Control Board:


— JG14: 120/220V inverter voltage jumper
— JG12: Auto/Manual Jumper.
When configured in Auto, the UPS self-determines the frequency of operation of the
inverter, and configures itself to generate a signal locked in phase and frequency to the
one from the AC main supply line.
When configured in Manual, the frequency of the inverter signal is determined by the
50/60Hz jumper.

Operational Description, Rev. 0


Freescale Semiconductor 4-5
Preliminary
— JG13: 50/60Hz jumper.
Read only when the Auto/Manual jumper is in the Manual position.
This configuration forces the inverter to operate at the designed frequency, allowing
this equipment to be used as a frequency converter.

Table 4-2. Jumper Position for Configuration of the Control Board

JG14
1 2 3 1 2 3 220V Inverter Voltage
120V Inverter Voltage
JG12
1 2 3 1 2 3 Manual mode
Auto mode
JG13
1 2 3 1 2 3 50Hz mode
60Hz mode

Figure 4-4. Jumpers on the Control Board

Online UPS Designer Reference Manual, Rev. 0


4-6 Freescale Semiconductor
Preliminary
Operation

4.3 Operation
This equipment is a fully operational Online UPS with cold start, input power factor correction
and a maximum output power of 300VA. This equipment can also operate without batteries,
allowing its use as a regulator or as a frequency converter (50/60Hz).

4.3.1 Installing Batteries


When batteries are not used, the UPS can be used as a frequency converter, voltage converter,
and voltage regulator. When batteries are installed, the equipment will also back up the load in
the event of AC main line supply failure. In order to prevent strong sparks caused by the sudden
charge of the input capacitor located after the battery connector, a VDC battery switch is
installed. When in the “off” position, this switch will connect a resistor in series between the
battery and the input capacitor. This switch must be in the “off” position any time that batteries
are to be connected or disconnected.
Switch to the “on” position after the batteries are connected to the equipment. If operating
without batteries, the switch must remain in the “off” position in order to prevent strong sparks if
batteries are connected. Batteries are connected in series to supply 24VDC. The red cable denotes
positive polarity; the black cable denotes negative polarity.

4.3.2 Before Applying Power to the UPS


Before connecting the equipment to the power outlet for the first time, do the following:

• Check that the POWER ON switch is in the “off” position


• Check that the UPS ON switch is in the “off” position
• Check that the VDC Battery switch is in the “off” position
• Check that all ribbon cable connectors are securely connected and in place
• Check that the two 12V Batteries, if used, are correctly connected. The batteries are
intended to be connected in series. The black cable corresponds to the negative polarity
connector; the red cable is assigned to the positive polarity connector.
DANGER: Do not touch the printed circuit board. High Voltages (120VAC or 220VAC and
±220VDC) are present.

WARNING: This equipment is not designed to support the hot swap of batteries. Batteries
should never be connected or disconnected when the equipment is in operation.

Decide whether to operate with or without batteries and take any actions before turning the
equipment on.

Operational Description, Rev. 0


Freescale Semiconductor 4-7
Preliminary
Connecting the equipment to the AC outlet is optional, as it supports cold start. Connection to the
AC outlet can be done at any time, regardless of the UPS state of operation.

4.3.3 Turning the UPS On


• When the AC main supply is to be used, plug the power cord female side to the VAC IN
inlet, and the male side to the 120V main. If not plugged in, the UPS will cold start from
the batteries.
• Turn on the POWER ON switch
• Verify that both green and yellow LEDs on the upper-left side of the Power Board turn on
• The user can turn the inverter switch on and off (UPS ON) at any point
• The user can disconnect the AC Line Supplyas desired the UPS will maintain the power
supply to the load

4.3.4 Turning the UPS Off


• Turn off the load connected or unplug it from VAC OUT outlets
• Turn off the UPS ON switch
• Turn off the POWER ON switch
• Turn off the VDC BAT breaker
• Unplug the power cord from the 120V main
Figure 4-5 illustrates the UPS, focusing on the right side and highlighting the locations of the
EVM and the battery.

Online UPS Designer Reference Manual, Rev. 0


4-8 Freescale Semiconductor
Preliminary
Operation

Figure 4-5. The Right Side of the UPS

Operational Description, Rev. 0


Freescale Semiconductor 4-9
Preliminary
Online UPS Designer Reference Manual, Rev. 0
4-10 Freescale Semiconductor
Preliminary
Peripheral and I/O Pins Assignment

Chapter 5 Control Software Design


Considerations
5.1 Peripheral and I/O Pins Assignment

Table 5-1. Assignment of the Analog-to-Digital Converters

Peripheral Input Signal

ADCA 0 Inverter Output Voltage

ADCA 1 Inverter Inductor Current

ADCA 2 Line Input Voltage

ADCA 3 Line Input Current

ADCA 4 Battery Voltage

ADCA 5 Battery Current

ADCA 6 Rail Voltage Difference (VP + VN)

ADCA 7 UPS Load Current

ADCB 0 Battery Temperature Sensor

Table 5-2. Digital Outputs and Inputs

Peripheral Port Function

PWMA 0 and 1 Inverter Switching Network – Output

PWMA 2 and 3 Battery Booster Switching Network – Output

PWMA 4 and 5 Power Factor Correction Switching - Output Network

Timer A0 Battery Charger PWM – Output

Timer A1 100kHz 35% Duty Cycle signal to auxiliary power supplies – Output

Timer C0 General purpose delay generator (start up and LCD)

Timer C2 Sets delay between PMW load and ADC start of conversion
Synchronizes ADC to PWM

GPIOC0 Rectifier SCR Control – Output

GPIOC1 Inverter Enable – Input

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-1
Preliminary
Table 5-2. Digital Outputs and Inputs (Continued)
GPIOD6 Auto/Manual Frequency Selection Jumper – Input

GPIOD7 50/60Hz Manual Frequency Selection Jumper – Input

GPIOD10 Bypass relay control – Output

GPIOD12 120 / 220V selector

PWMA - Fault 0 Inverter Overcurrent Protection; PWM Fault 0 – Input

PWMA – Fault 1 PFC Overcurrent Short Circuit Protection; PWM Fault 1 – Input

PWMA – Fault 2 Battery Booster Overcurrent Short Circuit Protection; PWM Fault 2 – Input

5.2 Main Execution Routine


All real-time operational software runs in the interrupt service routines. The main execution
routine is dedicated to Monitor and Control functions. All real-time processing is accomplished
by interrupt service routines.

Online UPS Designer Reference Manual, Rev. 0


5-2 Freescale Semiconductor
Preliminary
Main Execution Routine

Declaration of Variables

Initialization of Variables

Configuration of DSP Core


and Peripherals by Processor
Expert

3 second Delay

Determination of:
•Auto/Manual jumper position.
•50/60 Hz jumper position.
•AC Main Line Frequency

Set UPS Initial Operational


Conditions

Infinite Loop:
Square root calculations of RMSs
Check battery charge flag to determine flash write.
If temperature_counter = 20000 then start ADC B
conversion.
Scale adjust of output variables
Format operational variables to ASCII strings to show
at Display and Communications

Figure 5-1. Main Routine Flow Diagram

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-3
Preliminary
5.3 Interrupt Handlers
The following interruptions perform the system’s environment sensing:
• ADCA End Of Conversion
• ADC End Of Conversion
• PWM Fault 0
• PWM Fault 1
• PWM Fault 2
• Delay_Timer_OnInterrupt

5.3.1 ADC End of Conversion Interrupt Service Routine


All real-time controls are executed inside this routine. Figure 5-2 through Figure 5-6 show the
flow of the program.

Online UPS Designer Reference Manual, Rev. 0


5-4 Freescale Semiconductor
Preliminary
Interrupt Handlers

Figure 5-2. Flow Diagram for the Interrupt Service Routine AD1_OnEnd (1 of 5)

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-5
Preliminary
Figure 5-3. Flow Diagram for the Interrupt Service Routine AD1_OnEnd (2 of 5)

Online UPS Designer Reference Manual, Rev. 0


5-6 Freescale Semiconductor
Preliminary
Interrupt Handlers

Figure 5-4. Flow Diagram for the Interrupt Service Routing AD1_OnEnd (3 of 5)

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-7
Preliminary
Figure 5-5. Flow Diagram for the Interrupt Service Routine AD1_OnEnd (4 of 5)

Online UPS Designer Reference Manual, Rev. 0


5-8 Freescale Semiconductor
Preliminary
Interrupt Handlers

Figure 5-6. Flow Diagram for the Interrupt Service Routine AD1_OnEnd (5 of 5)

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-9
Preliminary
5.3.2 UPS Overcurrent Protection Interrupt Handlers

Figure 5-7. Overcurrent Management

Three overcurrent events are sensed and connected to the Fault inputs of the PWM modules.
These are:

• Inverter Current out of Limits


• Rectifier (PFC) Current out of Limits
• Booster Current out of Limits

Online UPS Designer Reference Manual, Rev. 0


5-10 Freescale Semiconductor
Preliminary
Interrupt Handlers

PWM Fault inputs are set up to disable the corresponding PWM pins when overcurrent is
detected.

A single overcurrent event should not disable the complete system, as peak currents can occur
when switched capacitive loads are connected (i.e., a power supply implemented with rectifier
and capacitor). For this reason, a current out of limits counter is implemented in all of the
PWM-controlled systems. Every time the interrupt handler routine is called, the counter increases
by an amount A. The 20kHz End of Conversion interrupt decreases the counter by an amount B.
The UPS is sent to the fail condition only if:
kA - Bn > Threshold

Where:
k is the number of times the current out of limits event occurs
n is the number of times the 20kHz routine is called

The weights A and B and the threshold are selected to balance a trade-off requiring the system
not be shut down when capacitive loads cause periodic overcurrent events, and to shut down the
UPS when a continued short circuit condition is detected.

5.3.3 Battery Temperature Reading


The interrupt service routine AD2_OnEnd reads and stores the battery temperature to a variable.
The execution of the ISR is shown in Figure 5-8.

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-11
Preliminary
Interrupt Handler for ADC B End of
Conversion

Read Temperature from ADC B 0


Reset Tempertature counter

ADC Stop

RTI

Figure 5-8. Battery Temperature Reading

5.3.4 Delay_Timer_OnInterrupt
This routine merely counts 21 times 140ms (the time interval of the timer) in order to generate a
time delay of 3 seconds following the controller’s core start-up. This is a wait time to allow the
auxiliary power supplies to stabilize.

5.4 Program Loop Timing


The timing of the program originates at the PWM, configured for one complete cycle reload, and
center-aligned. The modulo of the PWM is set to 1500, generating a 20kHz triangle wave from
the 60MHz internal bus clock.

The SYNC signal of the PWM is passed to Timer C2 to provide the sync signal to the ADCA
peripheral. At Timer C2, the SYNC signal is delayed in order to reduce the time between the
sampling and the updating of the values at the PWM, enhancing the stability of the discrete time
control algorithms.

Online UPS Designer Reference Manual, Rev. 0


5-12 Freescale Semiconductor
Preliminary
Inverter Control Loop

Figure 5-9. Program Loop Timing

After the configured delay, Timer C2 signals the ADCs to start conversion. At the end of the
conversion, the ADC module interrupts the core processor. All control loops are executed in this
interruption.

5.5 Inverter Control Loop


The control network for the inverter is constructed with an inner current PI control loop and an
outer PID control loop as shown in Figure 5-10.

The outer control loop receives the sinusoidal wave synthesized by the PLL module as a
reference and compares it with the inverter output voltage. The error signal passes through a PID
compensator whose output constitutes the set point for the inner PI control loop. This current set
point is compared with the load current.

The transfer function of a discrete time PID control loop is calculated by this equation:

⎡ Z Z −1 ⎤
C( Z) = K T ⎢K P + KI + KD ⎥
⎣ Z − 1 Z ⎦

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-13
Preliminary
The transfer function of a discrete time PI control loop is calculated by the following equation:

⎡ K *Z⎤
C( Z) = ⎢K P + I K
⎣ Z − 1 ⎥⎦ T

The sine wave generated is used as the set point of the inverter control. The inverter uses the
output voltage and current as sensing inputs to the control, which have a double control loop
topology, inner PI current control and outer PID voltage control. Figure 5-10 shows the details of
the inverter loop as implemented in the source code. Signal names are the actual variable names
in the C code.

PID ControlwithSaturation Function

Inverter_SoftStart PI ControlwithSaturation Function


P
(0 to 1 in 1.6 sec) Gain = 0.9
Shift = 2 Gain = 0.35 P
+ Shift = 2 + PWM
I
PLL Sin Actuator &
Table x
+
Σ
Gain = 0.475
Shift = 1
Gain = 0.25
Shift = 1
+
Σ
+
Σ Gain = 0.3
Shift = 1 I
Σ Switching Inductance
Lookup Gain = 0.04 + Network
- D + -
Capacitor
Gain = 0.38
Shift = 5 and Load
INVERTER_OUTPUTSETTING
UPS_OutputCurrent
Disconnect
Integrator if
|output|
greater than
0.833

UPS_OutputVoltage

Figure 5-10. Inverter Control Loop Diagram

5.6 PFC Control Loop


Figure 5-11 shows the actual function implementation of the PFC control loop. It consists of two
controls: One to control the rail-to-rail voltage and another to control the current drawn to the AC
main line. The current set point for the inner loop is the AC line voltage times a factor linearly
proportional to the error signal at the rails (and finally dependent on the UPS load current). The
hardware implementation in this UPS (please refer to Figure 5-11) requires the inner control to
work with the absolute values of the signals in order to avoid discontinuities at the current control
output.
Both control loops use Proportional–Integral (PI) compensators, implemented with 32-bit
integrators. The Z domain transfer function of a PI compensator is:

⎡ K * Z⎤
C( Z) = ⎢K P + I K
⎣ Z − 1 ⎥⎦ T

Online UPS Designer Reference Manual, Rev. 0


5-14 Freescale Semiconductor
Preliminary
Battery Booster Control Loop

Where:
KP is the proportional gain
KI is the integral gain.
A total gain, KT, is implemented in order to allow flexibility when tuning the control; i.e.,
varying the total loop gain without the necessity of modifying the individual gains.

RailtoRail_SoftStart PIControlwithSaturationFunction
(0 to 1 in 2.4 sec) PIControlwithLowSaturation Function
Gain = 0.8 P
Gain= 0.9 P Shift =0
+ + PWM
Shift =0 If input
x
Actuator &
Rail_SetPoint
x
+
Σ
5Hz Low
Pass Filter
Gain= 1
Shift =0 Σ Signal <0, abs
+
Σ Gain = 1
Shift =3
Σ Switching
Line Input &
Rail Network
output 0 I Network
Gain= 0.0008 I Gain= 0.2 +
- + -
Shift =0 sign

abs
Disconnect Line_CurrentInput
Integrator if
output lower
than0

RailtoRail_InstantVoltage

Figure 5-11. PFC Control Loop Diagram

5.7 Battery Booster Control Loop


The battery booster control signals for the switches are not complementary but 180° phase shifted. This is
implemented at PWMA channels 2 and 3, defining the compare value of channel 3 as 1500 (the full scale
of the PWM) minus the compare value of channel 2, and inverting its output. A protection time of 4ms is
implemented between the active state of these signals at maximum duty cycle .

Decimation by 16 is implemented for a routine sample frequency of 1250Hz. Figure 5-12 shows the
battery booster system.

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-15
Preliminary
PIDBooster Function (Runs at 1250 Hz)

P
Gain = 1

I + PWM
+
SetPointBoost Σ Gain =
0.0125
+
Σ
If input
Signal < 0,
Actuator &
Switching
- output 0 Network
+
Gain = D
0.00625
1 15
∑ x(n − k )
16 k =0 16
Disconnect
Integrator if
Decimation |derivative|
greater than
0.00005

RailtoRail_InstantVoltage

Figure 5-12. Battery Booster Control Loop

5.8 Battery Charger Control Loop


The battery charger is a constant current power supply. The control loop uses the measured
battery current to calculate the appropriate voltage set point. Decimation of the sampling rate by
16 allows for better precision for the battery voltage variable. The variables are sensed at 20kHz,
but the battery voltage routine is executed at 20kHz/16 = 1250Hz. Moving averaging of the
samples is implemented for noise filtering.
Due to the slow speed of the system, the integrator input of the voltage control is disabled when
the output of the controls reaches a defined limit.
Please see Figure 5-13 for a detailed diagram of the battery charger system.

PIControlwithSaturation Function
Charger_SoftStart
PIControlwithSaturation Function (Runs at 1250 Hz)
Gain = 0.5 P
Gain = 0.4 P Shift = 1
+ + If input PWM Battery
Shift = 0 If input
Charger_ReferenceVoltageLimit
+
Σ
Gain=0.05
Shift = 0 Σ Signal < 0,
+
Σ Gain = 0.7 Σ x signal < 0,
output = 0
Actuator &
Switching
Charger
Network
output 0 Shift = 0 I Network
I Gain = 0.05 +
- Gain = 0.01 + -
1 15
∑x(n−k)
16 k=0 16 Disconnect
Integrator if Battery_InstantCurrent
|output|
Decimation
greater than
1/3

Battery_InstantVoltage

Figure 5-13. Battery Charger Control Loop

Online UPS Designer Reference Manual, Rev. 0


5-16 Freescale Semiconductor
Preliminary
Phase Locked Loop Routine

5.9 Phase Locked Loop Routine


5.9.1 Phase Discriminator
The Phase Locked Loop uses a phase and frequency discriminator inspired by the Phase
Comparator II of the Fairchild Semiconductor’s CD4046, modified to fit a synchronous state
machine. The continuous arrows in Figure 5-14 correspond to the asynchronous state machine.
The dashed arrows were added to fit the synchronous implementation.

0
4 8
00 00 00
6 9
01 10 10 01 01 10 A
5 2 1

11 11 11
7 3 B

Output: -1 0 1

xy x: PLL Reference Existing Transitions for


Asynchronous State Machine
y: DCO Output
Added Transitions for
synchronous State Machine
z z: State Index

Figure 5-14. Synchronous Phase Discriminator State Machine

Table 5-3 is the transition table for the state machine. The input description is formed by x, the
sign of the reference signal to the PLL, and y, the sign of the Digitally Controlled Oscillator
(DCO) output. The present state combines with the input xy and determines both the next state
and the output of the phase discriminator.

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-17
Preliminary
Table 5-3. Transitions of the Synchronous Phase Discriminator

Next State (Depending on Input xy)


Output
Input xy 11 10 01 00

0 3 A 5 0 0

1 B A 1 0 0

2 7 2 5 0 0

3 3 2 1 0 0

4 3 2 5 4 -1
State Index

5 3 2 5 4 -1

6 7 6 5 4 -1

7 7 6 5 4 -1

8 3 A 1 8 1

9 B A 9 8 1

A 3 A 1 8 1

B B A 9 8 1

The phase discriminator output feeds a phase accumulator that integrates from the reference
signal’s positive zero crossing to the next one. After one iteration is ended, the accumulator
output is fed to a PI control, then reset. The Proportional—Integral control routine runs at every
positive zero crossing.

The output of the control is added to the sine wave index, transforming the table look-up
algorithm in a numerically controlled oscillator, then closing the Phase Locked Loop.

5.9.2 Control Loop


The PLL reference may be either AC Main Line or Freerun. The Freerun operation is chosen if
the AC Main Line frequency is out of specifications, as explained in Section 5.10. See Figure 5-15
for a block diagram of the PLL Control Loop.

Online UPS Designer Reference Manual, Rev. 0


5-18 Freescale Semiconductor
Preliminary
Phase Locked Loop Routine

f0= 50 or 60 Hz

P
0 Gain = 0.09
Line_VoltageInput Low Pass +
Look up
Phase
Discriminator I
Σ Σ Table_Index
calculation Table
Freerun Reference Gain = 0.0016 +
1

PLL_FreerunFlag Low Pass


F_Table_Sample Table_Sample

Figure 5-15. PLL Control Loop

5.9.3 Sine Wave Look-Up Table


The sine wave is generated by look-up of a table of 800 samples from a full cycle of a sine wave,
scaled from –1 to 1 in Frac16 fixed point fractional number format.

At 20kHz sample frequency, the sine wave table pointer increments 2.4 memory positions per
sample to yield a 60Hz wave. To generate a 50Hz wave, the increment is 2.0 positions. The
custom data type FixedInt was created to implement fractional advances. The phase value is
stored in a long signed integer. Only the most significant 16-bit integer word is used to address
two consecutive samples of the table, then a linear interpolation using the fractional part of the
index is performed.
typedef union{
struct{
unsigned int IntL;
int IntH;
}I;
long L;
}FixedInt;
FixedInt Data Type Definition

The FixedInt can be used as a long (variable.L) or as its integer part (variable.I.IntH) plus its
unsigned fractional part (variable.I.IntL). The integer part is used to address the table, and is a
modulo 800 circular counter.

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-19
Preliminary
5.10 Frequency Measurement Routine
The AC main line frequency is measured with two purposes:
• Auto sensing line frequency when the UPS starts up
• Determinating the quality of the AC main line frequency.
If out of limits, the UPS will switch to the internal reference mode.
To avoid divisions, period rather than frequency is measured in the form of interrupt counts (50µs
each). The time window for interrupt counts is 10 cycles of the line signal.

Online UPS Designer Reference Manual, Rev. 0


5-20 Freescale Semiconductor
Preliminary
Rectifier Soft Start Routine

Figure 5-16. Frequency Measurement Routine

5.11 Rectifier Soft Start Routine


In order to implement the rectifier soft start, a software synchronized ramp is generated and
compared with the rectifier trigger level signal, which starts at a value higher than the peak of the

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-21
Preliminary
ramp, then decrements towards zero. The result of the compare operation generates a PWM
signal that is set at the zero crossing time minus time T, and is always reset at the zero crossing.
As the trigger level decrements, the time τ increases from zero to a half period. This signal can
drive the input SCRs that form the full wave rectifier at the input of the UPS.

Figure 5-17. SCR Control Signal Generation at the Beginning and End of the Rectifier
Soft Start

5.12 Root Mean Square (RMS) Sensing


RMS sensing is accomplished by filtering the squared input signal by two cascaded second-order
digital filters. This operation is done in real time, sample-by-sample in the converter interruption
routine. The next two blocks are performed in noncritical processing times.

Figure 5-18. RMS Sensing System

Online UPS Designer Reference Manual, Rev. 0


5-22 Freescale Semiconductor
Preliminary
Routine for Measurement of the Battery Stored Charge

5.13 Power Sensing


Like RMS sensing, power sensing is performed in two operations, first multiplying and filtering
in real time, then adjusting the display processing routine. This routine is applied to calculate
both the input and the output power.

Figure 5-19. Power Sensing System

5.14 Routine for Measurement of the Battery Stored Charge


Measuring the battery stored chargeis complicated by several requirements:

• Determining the state of the battery charge when first connected to the UPS
• The ability to modify the algorithm according to the capacity of the battery connected
• Integrating the charging/discharging current over long periods (hours for the recharging
process), when the system sampling rate is 20kHz
• Performing low gain integrations to minimize the quantization effect
• Correcting the effect of different sensing circuits
The hardware is implemented with one sensing circuit for the battery charge, but a
different sensing circuit for the battery discharge. Shunt resistors have in a 10:1 ratio for
charge/discharge, respectively.
These requirements are met by implementing three nested integrators with variable gains and
integration time windows, depending on whether the battery is accepting or yielding charge. The
same constants are used to tune the charge measurement algorithm, depending on the battery size.
Full charge is indicated when the outer integrator reaches one in Frac32 notation.

The first time that the batteries are connected to the system, the battery stored charge is unknown
until the charging current decreases to reach the floating regime. When such a condition is

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-23
Preliminary
detected, the battery stored charge variable is forced to one (100%), and the
integration/deintegration summations are executed to track the battery charge. This condition is
stored in the Valid Battery Charge flag variable.
The charging capacity integration while the battery is accepting charge is then:

n 2 ⎛⎜ 1200 1 ⎛ 1000 3 ⎞⎞
Battery _ StoredCh arg e = ∑ 1200 ⎜ ∑ 1200

⎜ ∑ 2000
Battery _ Ins tan tCurrent⎟⎟ ⎟

IntegrationWindow 3=1 ⎝ IntegrationWindow 2=1 ⎝ IntegrationWindow1=1 ⎠⎠

The integration used to update the charge when the battery is delivering charge is:

n 2 ⎛⎜ 1200 1 ⎛ 1000
− 30 ⎞⎞
Battery _ StoredCh arg e = ∑ ⎜ ∑ ⎜
⎜ ∑ Battery _ Ins tan tCurrent ⎟⎟ ⎟

Integratio nWindow 3=1 500 ⎝ Integratio nWindow 2 =1 120 ⎝ Integratio nWindow 1=1 2000 ⎠⎠

The constants presented correspond to 7.2AH / 10H batteries. Note the asymmetry between
charging and discharging constants.

To avoid deletion of the charge information when the system is powered down, the flags and
integrators are stored in Flash memory. It is the operator’s responsibility to record this
information in the system.

5.15 General Purpose Digital Filters Used in the Implementation


5.15.1 10Hz Low Pass Filter, 2 Stages
When averaging is required in RMS and power sensing, a cascade of two 10Hz low-pass filters is
implemented to minimize quantization effects.

Each stage corresponds to the digital implementation of a first-order Butterworth filter, with a
3dB cut-off frequency of 10Hz.

The Laplace transfer function of the analog filter is:

6.2732 x10 6
H (s) =
6.299 x106 + 99843 S

Applying a bilinear transformation over the transfer function, with fs = 20kHz yields the
Z-domain transfer function:

1.56833 x10 −3 + 1.56833 x10 −3 Z −1


H (Z ) =
1 − 0.99686 Z −1

Online UPS Designer Reference Manual, Rev. 0


5-24 Freescale Semiconductor
Preliminary
General Purpose Digital Filters Used in the Implementation

The transposed direct form II is chosen for discrete time implementation using 32-bit registers for
the accumulators (w1 and w2):

Figure 5-20. Implementation of Low-Pass Filter

The calculated gains are:


b0 = 1.56833408x10-3
b1 = 1.56833408x10-3
a1 = -0.996863

5.15.2 High-Frequency Noise Rejection Filter


A second-order low-pass filter is used when high-frequency noise is to be rejected from the line
signal (i.e., before zero crossing algorithms).

The design starting point is an analog low-pass Butterworth filter with a 3dB cut-off at 1kHz. For
a second-order filter, the Laplace transfer function is:

180 S 2 − 1.44 x10 7 S + 6.4266 x1016


H (S ) =
1.6012 x109 S 2 + 1.4346 x1013 S + 6.4267 x1016

Applying the bilinear transform to calculate a discrete time implementation yields:

2.0083 x10 −2 + 4.0165 x10 −2 Z −1 + 2.0083 x10 −2 Z −2


H (Z ) =
1 − 1.561Z −1 + 6.4135 x10 −1 Z − 2

For the accumulators (w1 and w2), 32-bit registers were chosen. To allow the implementation of
a1 = -1.561, whose magnitude is greater than one, without losing the use of saturated arithmetic,
the coefficients are modified and shifts to the left are introduced, resulting in the following
implementation of a transposed direct form II:

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-25
Preliminary
Figure 5-21. Implementation of the High Frequency Reject Filter

The final gains used in this implementation are:


b0 = 2.0083x10-2
b1 = 4.0165x10-2
b2 = 2.0083x10-2
a1 = -7.80509 x10-1
a2 = 3.206757 x10-1

5.16 Flash Memory Access


Flash memory is used to store the charge value and flags controlling the battery load
measurement. The embedded bean functions SetLongFlash and GetLongFlash are used to
interface with Flash.

5.17 Development Tools Used for Software Implementation

5.17.1 Processor ExpertTM


Processor Expert beans have been used to initialize the internal PLL bus generator, ADC, PWMs,
Timer interruption, pulse generation, GPIO pins, interrupt vector and interrupt service routines.

Online UPS Designer Reference Manual, Rev. 0


5-26 Freescale Semiconductor
Preliminary
Development Tools Used for Software Implementation

5.17.2 Intrinsic 56800E Functions


The following functions from the “intrinsics_56800E.h” library are used:
turn_on_sat();
turn_off_conv_rndg();
Word16 add(Word16,Word16);
Word16 mult(Word16 , Word16);
Word 16 msu(Word32,Word16,Word16);
Word 16 sub(Word16,Word16);
Word16 mac_r(Word32,Word16,Word16);
Word16 abs_s(Word16)
Word16 shlfts(Word16,Word16);
Word16 msu_r(Word32,Word16,Word16);
Word16 negate(Word16);
Word32 L_mac(Word32,Word16,Word16);
Word32 L_msu(Word32,Word16,Word16);
Word32 L_mult(Word16,Word16);
Word32 L_shifts(Word32, Word16)
Word32 L_add(Word32, Word32);

These functions allow filter calculation using the full set of features for fixed-point arithmetic and
saturation from the 56800E core processor.

5.17.3 Direct Register Writes


Direct write to configuration registers by the Processor Expert Support Library PESL was used In
the following cases:

• Timer C initialization
• Enable and Disable Software control in the PWM module
• Turning off and on PWMs 0 and 1
• PWM and Timer A duty cycle set up

5.17.4 Assembly Inlines


No explicit assembly inlines have been used in the C Source Code

Control Software Design Considerations, Rev. 0


Freescale Semiconductor 5-27
Preliminary
Online UPS Designer Reference Manual, Rev. 0
5-28 Freescale Semiconductor
Preliminary
Peripheral and I/O Pins Assignment

Chapter 6 Connectivity Software Design


Considerations
6.1 Connectivity Description
The OUPS’ connectivity allows the user to communicate with the board via the TCP/IP protocol,
supporting known standards as HTTP Web pages or e-mails.

The software used for OUPS connectivity will run on a 56F8346 controller, a member of the
56F8300 family. The 56F8346’s operational software is downloaded by the CodeWarrior IDE
into the device’s internal flash and executed from there. The TCP/IP stack software provides the
functionality that allows remote UPS configuration and monitoring using transparent
bi-directional transfer of Internet Protocol (IP) and Transmission Control Protocol (TCP) traffic
between an HTTP client and the UPS unit across an Ethernet network.

This software is based in OpenTCP Software, an open source project developed by Viola
Systems. It brings a highly reliable, portable TCP/IP stack for 8/16-bit microcontrollers. More
information about OpenTCP software can be found at: http://www.opentcp.org/.

For detailed documentation of the OpenTCP API, please refer to:


http://www.opentcp.org/documentation/api/html/index.html

6.2 Peripheral and I/O Pins Assignment

Table 6-1. Digital Outputs and Inputs Used for Connectivity

Peripheral Port Function

A0-A15 Address Bus for Ethernet Controller

D0-D15 Data Bus for Ethernet Controller

CS2 Chip Select for Ethernet Controller

WR Write Signal for Ethernet Controller

RD Read Signal for Ethernet Controller

IRQA Interrupt Request from Ethernet Controller

Reset Reset

Connectivity Software Design Considerations, Rev. 0


Freescale Semiconductor 6-1
Preliminary
6.3 Implementation
The OpenTCP software allows an easy implementation for defining proper layers.
Figure 6-1 shows the implementation of the OpenTCP software for the 568F346:

Application
Application Level
Level Processing
Processing

OpenTCP
OpenTCP Stack
Stack

Ethernet
Ethernet Abstraction
Abstraction Layer
Layer

mBUFs
mBUFsInterface
Interface mBUF
mBUFQUEUE
QUEUE

LAN91C111
LAN91C111 Driver
Driver(Ethernet
(Ethernet Controller
Controller Driver)
Driver)

Figure 6-1. Implementation of OpenTCP for OUPS

6.3.1 LAN91C111 Driver


The LAN91C111 Ethernet Controller allows the processor to communicate with the Ethernet
bus. Its driver handles the proper initialization for a correct physical layer and the reception and
transmission of packages.

6.3.2 Network Buffers


This block is the part of the OpenTCP port for the 56F8346 that handles the buffering of frames
coming from the Ethernet controller adapter. Ethernet frames travel up the stack in the form of
special buffers, called mBufs, special structures that include fields to support the OpenTCP
macros to process a frame on a byte-by-byte basis.

Online UPS Designer Reference Manual, Rev. 0


6-2 Freescale Semiconductor
Preliminary
Connectivity Initialization

6.3.3 Ethernet Abstraction Layer


The Network Adapter Block is the part of the TCP/IP stack that interfaces the packet processing
portion of the stack to the actual Ethernet controller. This block handles Ethernet frames coming
and going through the network. Incoming frames are detected by the Network Adapter Block and
transferred to the top portion of the OpenTCP stack. The TCP/IP connectivity interfaces to the
UPS control software by sending and receiving frames through the well-defined OpenTCP
networking interface.

6.3.4 OpenTCP Stack


The OpenTCP Stack is open source, reliable code which handles packet processing and allows a
direct and standard interface with the OUPS code.

6.3.5 Application Level Processing


Application functions are called by the OUPS and allow the OUPS to perform such required
activities, as servicing HTTP Web pages or sending e-mails.

6.4 Connectivity Initialization


Connectivity initialization is performed during the UPS initialization routine. All layers, from the
lowest level and continuing upwards, must be initialized properly in order to execute the
application layers, which in this case are the HTTP Server and the SMTP Client.

Connectivity Software Design Considerations, Rev. 0


Freescale Semiconductor 6-3
Preliminary
Figure 6-2. Connectivity Initialization

6.4.1 System Services Initialization


Routines in Table 6-2 are performed to initialize system services for connectivity.

Table 6-2. System Services Initialization Functions

Function Description

void timer_pool_init(void) This function resets all timer counters to zero and initializes all timers to an
available (free) state

void nBufInit(void) Initializes the memory buffer subsystem

Online UPS Designer Reference Manual, Rev. 0


6-4 Freescale Semiconductor
Preliminary
Connectivity Initialization

6.4.2 Physical Layer Initialization


Table 6-3 details routines used to initialize the Ethernet controller and physical layer.

Table 6-3. Physical Layer Initialization Functions

Function Description

void eth_init( void ) Generic initialization for 56800E SMSC Ethernet boards
Called from application start-up code
Initializes the Ethernet chip select, interrupt, etc.

void smc_init( void ) Initialization routine called by network device driver code

int smc_open( void ) Opens and initializes the SMC chip/board

6.4.3 Network Layers Initialization


Routines in Table 6-4 are used to initialize all network layers.

Table 6-4. Network Layers Initialization Functions

Function Description

void arp_init (void) Call this function to properly initialize the Address Resolution Protocol
(ARP) cache table and so that ARP allocates and initializes a timer for
its use

INT8 udp_init (void) Initializes the User Datagram Protocol (UDP) socket pool to put
everything into a known state at start up

INT8 tcp_init (void) Initializes all sockets and corresponding Transmission Control Blocks
(TCBs) to a known state
Timers are also allocated for each socket and everything is brought to a
predefined state

6.4.4 Application Layer Initialization


Routines in Table 6-5 initialize the application layer. The OUPS works as an HTTP Server and
an SMTP Client.

Table 6-5. Application Layer Initialization Functions

Function Description

INT8 https_init(void) Initializes the HTTP server

void smtpc_init (void) Initializes theSMTP client

Connectivity Software Design Considerations, Rev. 0


Freescale Semiconductor 6-5
Preliminary
6.5 Main Application
After initialization, the software enters an infinite loop. During this loop, the OUPS will perform
simple monitor and control functions along with the main connectivity loop. The most critical
section of control is executed in interrupt service routines, and these will always have the highest
priority.
Figure 6-3 shows the tasks performed during the main application loop, although some of the
activity is performed in the interrupt context when the microcontroller receives an IRQA
interrupt.

Figure 6-3. Main Application Diagram

Online UPS Designer Reference Manual, Rev. 0


6-6 Freescale Semiconductor
Preliminary
Main Application

6.5.1 Stack Loop


During the infinite loop, the software will execute the steps outlined in Figure 6-4.

Figure 6-4. Main Loop Diagram

The defines in Table 6-6 are required for the main loop.

Connectivity Software Design Considerations, Rev. 0


Freescale Semiconductor 6-7
Preliminary
Table 6-6. Defines Used by Main Connectivity Loop

#define NETWORK_CHECK_IF_RECEIVED() ETH_Receive()

Description: Invoke this macro periodically to check if there is new data in the Ethernet controller

#define NETWORK_CHECK_IF_RECEIVED() ETH_Receive()

Description: Invoke this macro when the received Ethernet packet is not needed any more and can be
discarded.

Routines in Table 6-7 are required for the main loop

Table 6-7. Functions Used by Main Connectivity Loop

UINT8 process_arp (struct ethernet_frame* frame)

Description: Invokes the process_arp function when the ARP packet is received

INT16 process_ip_in (struct ethernet_frame* frame)

Description: Processes the IP packet received by checking necessary header information and storing it
according to the received_ip_packet variable

INT16 process_icmp_in (struct ip_frame* frame, UINT16 len)

Description: Invokes the process_icmp_in when the IP datagram containing an ICMP message is
detected
This function checks the accuracy of and ICMP message received and sends ICMP replies
when requested

INT16 process_udp_in(struct ip_frame* frame, UINT16 len)

Description: Invoke this function to process UDP frames received

INT16 process_tcp_in (struct ip_frame* frame, UINT16 len)

Description: Invoke this function to process TCP frames received

void arp_manage (void)

Description: Iterates through ARP cache aging entries


If a timed-out entry is found, removes it (dynamic address) or updates it (static address)

void tcp_poll (void)

Description: Checks all TCP sockets and performs various actions if time-outs occur
The type of action is performed is defined by the state of the TCP socket.

Online UPS Designer Reference Manual, Rev. 0


6-8 Freescale Semiconductor
Preliminary
Interrupt Handlers

Table 6-7. Functions Used by Main Connectivity Loop (Continued)

void https_run (void)

Description: This function is the main “thread” of the HTTP server program and should be called
periodically from the main loop

void smtpc_run (void)

Description: This function is the main “thread” of the SMTP client program and should be called
periodically when the SMTP client is active
It is responsible for sending commands and data to the SMTP server and making callbacks
to the user function stubs

6.6 Interrupt Handlers


The connectivity software requires one interrupt from the Ethernet controller. This interrupt is
located in IRQA.

Table 6-8. Interrupts Used by Connectivity Software

void smc_isr ( void )

Description: This interrupt can be called with any of the following sources:
• Reception: A packet was received
• Transmition Complete: When at least one packet transmission was completed or one of
the following errors occurs:
—- Transmit Underrun
—- SQE Error
—- Lost Carrier
—- Late Collision
—- 16 Collisions
• Transmition Empty: Set if TX FIFO goes empty
• Allocate: When TX ram pages are allocated correctly
• Receiver Overrun: Receiver aborts due to an overrun caused by a failed memory
allocation, a packet is greater than 2Kb, or if a message was discarded
• Ethernet Protocol Handler: Set when the Ethernet Protocol Handler detects a special
condition (LINK OK, Counter ROLL Over, etc.)
• Early Receive Interrupt: Set when a packet is being received and the number of bytes
received exceeds a threshold
• Physical Error: Set when one of several physical layer issues occur (LINK FAIL, Loss of
Synchronization, CodeWord Error, etc.)

Connectivity Software Design Considerations, Rev. 0


Freescale Semiconductor 6-9
Preliminary
Online UPS Designer Reference Manual, Rev. 0
6-10 Freescale Semiconductor
Preliminary
Inverter Performance

Chapter 7 Results
7.1 Inverter Performance
The following parameters were measured using a Fluke 43B Power Quality Analyzer:

• RMS Amplitude
• Real Power
• Reactive Power
• Total Power
• Power Factor
• Harmonic Distortion
• Current Crest Factor
The following load types were connected at the inverter output for these measures:

• Linear Load: 110Ω


• Nonlinear Load: A full-wave rectifier followed by 220µF capacitor and 330Ω in parallel
• Full load: The linear load in parallel with the nonlinear load
The full load measurement was made under online (AC Main) and offline (battery
operation) conditions

7.1.1 Inverter Waveforms Under No Load Conditions

Figure 7-1. Inverter Waverforms—No Load

Results, Rev. 0
Freescale Semiconductor 7-1
Preliminary
7.1.2 Inverter Voltage Harmonics Under No Load Conditions

Figure 7-2. Inverter Voltage Harmonics—No Load

7.1.3 Inverter Waveforms Under Linear Load Conditions

Figure 7-3. Inverter Waveforms—Linear Load

Online UPS Designer Reference Manual, Rev. 0


7-2 Freescale Semiconductor
Preliminary
Inverter Performance

7.1.4 Inverter Voltage Harmonics Under No Load Conditions

Figure 7-4. Inverter Voltage Harmonics Under Linear Load Conditions

7.1.5 Inverter Waveforms Under Full Load Conditions—Battery Operated

Figure 7-5. Inverter Waveforms Under Full Load Conditions—Battery Operated

Results, Rev. 0
Freescale Semiconductor 7-3
Preliminary
7.1.6 Inverter Voltage Harmonics Under Full Load Conditions—Battery
Operated

Figure 7-6. Inverter Voltage Harmonics—Full Load, Battery Operated

7.1.7 Inverter Transient Response—60W Cold Bulb

Figure 7-7. Inverter Transient Response—60W Bulb

Online UPS Designer Reference Manual, Rev. 0


7-4 Freescale Semiconductor
Preliminary
PFC Performance Measurements

7.1.8 Inverter Transient Response to a Resistive Load (200W)

Figure 7-8. Inverter Transient Response—Resistive Load (200W)

7.2 PFC Performance Measurements


The following parameters were measured using a Fluke 43B Power Quality Analyzer:

• RMS Amplitude
• Real Power
• Reactive Power
• Total Power
• Power Factor
• Harmonic Distortion
Loads connected to the PFC for measurements:

• Inverter with full load plus battery charger.


• Inverter with linear load plus battery charger.
• Inverter with no load plus battery charger.
For all measurements, the inverter was phase and frequency locked to the AC main line (60Hz).

Results, Rev. 0
Freescale Semiconductor 7-5
Preliminary
7.2.1 PFC Performance Under Full Load Conditions

Figure 7-9. PFC Waveforms—Full Load Conditions

7.2.2 PFC Performance at 298W Linear Load Conditions

Figure 7-10. PFC Waveforms—Linear Load Conditions (298W)

Online UPS Designer Reference Manual, Rev. 0


7-6 Freescale Semiconductor
Preliminary
PFC Performance Measurements

7.2.3 PFC Performance at 59W Linear Load Conditions

Figure 7-11. PFC Waveforms—Linear Load Conditions (59W)

7.2.4 PFC—Transient Response to a Load Step

Figure 7-12. PFC Performance—Transient

Results, Rev. 0
Freescale Semiconductor 7-7
Preliminary
7.3 Frequence Performance
Freerun Output Frequency: 60.0105Hz

Figure 7-13. Freerun Frequency Measurement

Online UPS Designer Reference Manual, Rev. 0


7-8 Freescale Semiconductor
Preliminary
Battery Charger Performance

7.4 Battery Charger Performance


7.4.1 Battery Charger Performance, Current and Voltage Waveforms

Figure 7-14. Battery Charger Performanc—Charging

7.4.2 Battery Charger—Floating Conditions

Figure 7-15. Battery Charger—Floating

Results, Rev. 0
Freescale Semiconductor 7-9
Preliminary
7.5 Bypass Switch Performance
7.5.1 Inverter Bypass Switch Operation

Figure 7-16. Bypass Switching Time

Online UPS Designer Reference Manual, Rev. 0


7-10 Freescale Semiconductor
Preliminary
Appendix A Schematics

Schematics, Rev. 0
Freescale Semiconductor Appendix A-1
Preliminary
5 4 3 2 1

U1

A0 138 A0 PWMA0 62 PWMA0


A1 10 A1 PWMA1 64 PWMA1
A2 11 A2 PWMA2 65 PWMA2
A3 12 A3 PWMA3 67 PWMA3
A4 13 A4 PWMA4 68 PWMA4

Appendix A-2
A5 14 A5 PWMA5 70 PWMA5
A6 17 A6/PE2 ISA0/PC8 113 PC8
A7 18 A7/PE3 ISA1/PC9 114 PC9
A8 19 A8/PA0 ISA2/PC10 115 PC10
D A9 20 A9/PA1 FAULTA0 71 FAULTA0 D
A10 21 A10/PA2 FAULTA1 73 FAULTA1
A11 22 A11/PA3 FAULTA2 74 FAULTA2
A12 23 A12/PA4
A13 24 A13/PA5 PHA0/TA0 139 PHASEA0 R60
25 140 FAULTA0
A14 A14/PA6 PHB0/TA1 PHASEB0
A15 26 A15/PA7 INDEX0/TA2/PC6 141 PC6 47K
PB0 33 PB0/A16 HOME0/TA3/PC7 142 PC7

D0 59 D0 ANA0 88 ANA0 R61


60 89 FAULTA1
D1 D1 ANA1 ANA1
D2 72 D2 ANA2 90 ANA2 47K
D3 75 D3 ANA3 91 ANA3
D4 76 D4 ANA4 92 ANA4
D5 77 D5 ANA5 93 ANA5 R62
78 94 FAULTA2
D6 D6 ANA6 ANA6
D7 28 D7/PF0 ANA7 95 ANA7 47K
D8 29 D8/PF1
D9 30 D9/PF2 PWMB0 34 PWMB0
D10 32 D10/PF3 PWMB1 35 PWMB1
D11 133 D11/PF4 PWMB2 36 PWMB2
D12 134 D12/PF5 PWMB3 39 PWMB3
D13 135 D13/PF6 PWMB4 40 PWMB4
D14 136 D14/PF7 PWMB5 41 PWMB5
D15 137 D15 ISB0/PD10 50 PD10 R64
52 FAULTB0
ISB1/PD11 PD11
/CS0 46 PS/CS0 ISB2/PD12 53 PD12 47K
/CS1 47 DS/CS1 FAULTB0 56 FAULTB0
/CS2 48 PD0/CS2 FAULTB1 57 FAULTB1 R65
49 58 FAULTB1
/CS3 PD1/CS3 FAULTB2 FAULTB2
C 61 C
FAULTB3 FAULTB3 47K
/WR 44 WR
/RD 45 RD ANB0 104 ANB0 R54
105 FAULTB2
ANB1 ANB1
/IRQA 54 IRQA ANB2 106 ANB2 47K
/IRQB 55 IRQB ANB3 107 ANB3
ANB4 108 ANB4 R63
112 109 FAULTB3
EXTBOOT EXTBOOT ANB5 ANB5
EMI_MODE 143 EMI_MODE ANB6 110 ANB6 47K
ANB7 111 ANB7
XTAL 81 XTAL
EXTAL 82 EXTAL INDEX1/TB2/MISO1/PC2 8 PC2
CLKO 3 CLKO PHB1/TB1/MOSI1/PC1 7 PC1
CLKMODE 87 6
CLKMODE PHA1/TB0/SCLK1/PC0 PC0
HOME1/TB3/SS1/PC3 9 PC3
/RESET 86 RESET
/RSTO 85 RSTO TC0/PE8 118 PE8

MISO0 131 MISO0/PE6 TD0/PE10 116 RXTXEN


MOSI0 132 MOSI0/PE5 TD1/PE11 117 CESI
SCLK0 130 SCLK0/PE4
129 126
A.1 Control Board Schematics

/SS0 SS0/PE7 CAN_TX CAN_TX +3.3V


CAN_RX 127 CAN_RX
123 JG8
TDI TDI
TDO 124 TDO TEMP_SENSE 96 1
121 ANA7
TCK TCK 2
/TRST 120 TRST TXD0/PE0 4 TXD0
122 5 R36
TMS TMS RXD0/PE1 RXD0
1K
42 JG1
B TXD1/PD6 PD6 B
43 CLKMODE
RXD1/PD7 PD7 2
1
+3.3V 1 VDD_IO1 VDDA_OSC_PLL 80 +3.3V_PLL
16 VDD_IO2
31 VDD_IO3 VDDA_ADC 102 +3.3VA
38 VDD_IO4
66 VDD_IO5 C47 C82 C87
84 VDD_IO6 0.1uF 0.001uF 100pF
119 VDD_IO7
VSSA_ADC 103
125 VPP1
Single trace
2 VPP2 to GNDA
VREFH 101 +VREFH
51 VCAPC1
128 VCAPC2
83 VCAPC3
15 VCAPC4 VREFP 100
+ 99
C15 + VREFMID
27 VSS_IO1 VREFN 98
2.2uF C12 + 37
2.2uF C13 + VSS_IO2
63 VSS_IO3
2.2uF C14 69 C48 C49 C19
2.2uF VSS_IO4
144 VSS_IO5 0.1uF 0.1uF 0.1uF

79 REG_EN VREFLO 97

Online UPS Designer Reference Manual, Rev. 0


Use on-chip Single trace
regulators to GNDA
Guadalajara Applications Laboratory
A MC56F8346 Periferico Sur 7999, Col. Sta Ma Tequepexpan A

Guadalajara, México.
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 1 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
5 4 3 2 1

Preliminary
+3.3V

EXTAL R28
10K +3.3V

R32
D S1 D
Y1 10M 1 3 JG12
/POR 10K
8.00MHz R1 2 4 Jumper
1

Freescale Semiconductor
RESET PD6 2
3 A/M
C46
0.1uF R16
XTAL
10K

+3.3V +3.3V
BOOT MODE JUMPER
EXT BOOT NC +3.3V
INT BOOT R25 R27
1 - 2 10K 10K R18
PUSHBUTTON 1
JG14
10K
JG3 S2 Jumper
C 1 C
2 EXTBOOT 1 3 PC10 PD12 2
1 2 4 3
110/220
R17
OPTION C20
0.1uF
10K

EMI MODE JUMPER +3.3V


+3.3V
EMI A0-A19 NC +3.3V
EMI A0-A15 1 - 2 R24 R26
10K 10K R20
PUSHBUTTON 2
JG13
10K
JG4 S3 Jumper
1
2 EMI_MODE 1 3 PE8 PD7 2
1 2 4 3
50/60
B B
R19
ENTER C21
0.1uF
10K

Schematics, Rev. 0
Guadalajara Applications Laboratory
Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651
A A

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 2 of 13
5 4 3 2 1

Appendix A-3
5 4 3 2 1

Appendix A-4
128Kx16-bit Program Memory (CS0) 128Kx16-bit Data Memory (CS1/CS2)
U2 U3
5 7 A0 5 7 D0
D A0 A0 DQ1 D0 A0 DQ1 D
4 8 A1 4 8 D1
A1 A1 DQ2 D1 A1 DQ2
3 9 A2 3 9 D2
A2 A2 DQ3 D2 A2 DQ3
2 10 A3 2 10 D3
A3 A3 DQ4 D3 A3 DQ4
1 13 A4 1 13 D4
A4 A4 DQ5 D4 A4 DQ5
44 14 A5 44 14 D5
A5 A5 DQ6 D5 A5 DQ6
43 15 A6 43 15 D6
A6 A6 DQ7 D6 A6 DQ7
42 16 A7 42 16 D7
A7 A7 DQ8 D7 A7 DQ8
27 29 A8 27 29 D8
A8 A8 DQ9 D8 +3.3V +3.3V A8 DQ9
26 30 A9 26 30 D9
+3.3V A9 A9 DQ10 D9 A9 DQ10
25 31 A10 25 31 D10
A10 A10 DQ11 D10 A10 DQ11
24 32 A11 24 32 D11
A11 A11 DQ12 D11 A11 DQ12
21 35 A12 21 35 D12
A12 A12 DQ13 D12 R30 R29 A12 DQ13
20 36 A13 20 36 D13
A13 A13 DQ14 D13 10k A13 DQ14
R23 19 37 10k A14 19 37 D14
A14 A14 DQ15 D14 A14 DQ15
10K 18 38 A15 18 38 D15
A15 A15 DQ16 D15 A15 DQ16
A16 22 PB0 22
PB0 A16 A16
VDD 11 +3.3V VDD 11 +3.3V
JG5 41 33 /RD 41 33
/RD OE VDD OE VDD
17 /WR 17
/CS0 1 /WR WE WE
/ECS0 6 JG10 6
2 CE /ECS1 CE
39 LB VSS 12 /CS1 1 2 39 LB VSS 12
C /ECS2 C
40 UB VSS 34 /CS2 3 4 40 UB VSS 34

GS72116TP-12 GS72116TP-12
R37 R38
1K 1K R39
1K

+3.3V
CS1/CS2 ENABLE JUMPER
CS0 ENABLE JUMPER R22
/ECS1
OPTION JG6
OPTION JG5 10K SRAM WORD ENABLE 1-2 3-4
SRAM UPPER BYTE ENABLE NC 3-4
SRAM ENABLE 1-2 R21
/ECS2
SRAM LOWER BYTE ENABLE 1-2 NC
B SRAM DISABLE 10K B
NC SRAM DISABLE NC NC

Online UPS Designer Reference Manual, Rev. 0


Guadalajara Applications Laboratory
Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.
A +52 (33) 3283-0650 FAX: +52 (33) 3283-0651 A

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 3 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
Preliminary
5 4 3 2 1

+5.0V

R90 5Vext
390
D D
U20

Freescale Semiconductor
1 8 R108

3
NC1 VCC 2K C56
TXD0 1 Q3 2 7 0.1uF
BSV52LT1 +VF VE
3.9K R47 3 6

2
-VF VD
4 NC2 GND 5

6N136S

5Vext
U4
28 C1+ VCC 26
5Vext C11
+5.0V 1.0uF C10 5Vext
V- 3
24 C1- 1.0uF
1 /EN R41 1K
R98 C8 C2+ C9
V+ 27
C U21 390 1.0uF 1.0uF C
R107 8 1 2 25 T2IN R42 1K
2K VCC NC1 C2- GND P2
C55 7 2 1 DCD
VE +VF JG11 DSR T3IN R43 1K
0.1uF 6

3
6 3 R46 14 9 2
RXD0 VD -VF 1 2 T1IN T1OUT TXD
Q1 1 T2IN 13 10 7
BSV52LT1 3 4 T3IN T2IN T2OUT 1 T4 CTS R2IN R44 1K
5 GND NC2 4 12 T3IN T3OUT 11 1 T5 3
8 RXD

2
3.9K RTS
T6 1 20 R2OUTB 4
6N136S 19 4 9 DTR R3IN R45 1K
R1OUT R1IN R2IN
T7 1 18 R2OUT R2IN 5 5
17 6 R3IN
T8 1 R3OUT R3IN
16 7 R4IN R4IN R34 1K
T9 1 R4OUT R4IN
5Vext 15 8 R5IN
T10 1 R5OUT R5IN SCI #0
/EN 23 R5IN R35 1K
FORCEON
21
RS-232
R40 INVALID 1 T3
RS-232 SHUTDOWN JUMPER 22 FORCEOFF CONNECTOR
1K
MAX3245EEAI
B RS-232 ENABLE N/C JG7 B

1
RS-232 DISABLE 2
1 - 2

Schematics, Rev. 0
Guadalajara Applications Laboratory
Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.
A +52 (33) 3283-0650 FAX: +52 (33) 3283-0651 A

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 4 of 13
5 4 3 2 1

Appendix A-5
5 4 3 2 1

Appendix A-6
D D

J12
1 GND
+5.0V 2 VCC
3 VO
PC2 4 RS
R33 5
10K /RW
PC3 6 E
7 D0
8 D1
9

1
D2
10 D3
C PC6 11 D4 C
R110 2 12
PC7 D5
20K 13
PC8 D6
PC9 14 D7
A A
B

3
B
C C
D D
LCD_DISPLAY

B B

Guadalajara Applications Laboratory


Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651

A Title MC56F8346 OUPS CONTROL BOARD A

Online UPS Designer Reference Manual, Rev. 0


Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.
Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 5 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
5 4 3 2 1

J11
1 2

Preliminary
3 4
5 6
7 8
9 10 J5 J14
11 12
13 14 PWMA0 1 2 PWMA1 PWMB0 1 2 PWMB1
D 15 16 PWMA2 3 4 PWMA3 PWMB2 3 4 PWMB3 D
17 18 PWMA4 5 6 PWMA5 PWMB4 5 6 PWMB5
/IRQA 19 20 FAULTA0 7 8 FAULTA1 FAULTB0 7 8 FAULTB1
21 22 FAULTA2 9 10 FAULTB2 9 10 FAULTB3
23 24 PC8 11 12 PC9 11 12
25 26 PC10 13 14 13 14

Freescale Semiconductor
27 28
29 30
PWMA PWMB
RXTXEN 31 32 /RESET
33 34 CESI
MOSI0 35 36 SCLK0
/SS0 37 38 MISO0
+3.3V 39 40
WIRELESS BOARD

J7 J13
C AN0 1 2 AN1 AN8 1 2 AN9 C
AN2 3 4 AN3 AN10 3 4 AN11
AN4 5 6 AN5 AN12 5 6 AN13
AN6 7 8 AN7 R8 R10 AN14 7 8 AN15 R14 R15
9 10 +VREFH 9 10 +VREFH
A/D PORT A 0 Ohm 0 Ohm A/D PORT B 0 Ohm 0 Ohm
C85 C84
J15 0.47uF 0.47uF
J16
1 1
2 2
SHIELDING PIN SHIELDING PIN

J9 J8
J10
PHASEA0 1 2 PHASEB0 PC1 1 2
3 4 R11 R9 PC0 3 4 R13 R12 CAN_TX 1 2
B B
5 6 +3.3V 5 6 +3.3V CAN_RX 3 4
7 8 0 Ohm 0 Ohm 7 8 0 Ohm 0 Ohm
9 10 9 10
CAN
C86 C83
0.47uF 0.47uF
TIMER CHANNEL A SCRs

Schematics, Rev. 0
GATE

J4
1 2 Guadalajara Applications Laboratory
3 4
5 6 Periferico Sur 7999, Col. Sta Ma Tequepexpan
7 8
9 10 Guadalajara, México.
PD10 11 12 PD11
13 14 +52 (33) 3283-0650 FAX: +52 (33) 3283-0651
A A
BYPASS
Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 6 of 13
5 4 3 2 1

Appendix A-7
5 4 3 2 1

Appendix A-8
D J1 J2 D

A10 1 2 A11 1 2
A9 3 4 /CS1 CLKO 3 4
A8 5 6 A15 5 6
A7 7 8 A14 7 8
9 10 9 10
/WR 11 12 A13 11 12
D0 13 14 A12 13 14
D1 15 16 D8 15 16
D2 17 18 D9 17 18
19 20 SCLK0 19 20
D3 21 22 D10 21 22
D4 23 24 D11 MOSI0 23 24
D5 25 26 D12 MISO0 25 26
D6 27 28 D13 27 28
29 30 /SS0 29 30
D7 31 32 D14 31 32
C C
/CS0 33 34 D15 33 34
A0 35 36 /RD /RESET 35 36
A1 37 38 A6 37 38
39 40 39 40
A2 41 42 A5 41 42
A3 43 44 A4 /IRQB 43 44
/CS3 45 46 /CS2 /IRQA 45 46
+3.3V 47 48 +3.3V 47 48
49 50 49 50
51 51

ADDRESS/DATA PERIPHERAL
91930-21151 91930-21151

B B

Guadalajara Applications Laboratory


Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.

Online UPS Designer Reference Manual, Rev. 0


+52 (33) 3283-0650 FAX: +52 (33) 3283-0651
A A
Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
A 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 7 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
5 4 3 2 1

Preliminary
+5.0V

+5.0V
R92 CAN_RX
390
D D
C40 0.1uF

Freescale Semiconductor
R48 R95 390

3
3.9K
CAN_TX 1 Q2
BSV52LT1

2
1
2
3
4
8
7
6
5

-VF
U13

+VF

NC1
NC2
VE
VO
6N137S JG2

VCC
GND
BCANH CAN BUS
1 TERMINATION
6N137S 2

VCC
VE
VO
GND
U14

NC1
+VF
-VF
NC2

8
7
6
5
C R109 C

1
2
3
4
120
1/4W
BCANL
5Vext
R93 390 5Vext

R97
C39 0.1uF 390 J6
U16
BCANL 1 2 BCANH
1 TXD RXD 4 3 4
L7
CANH BCANH 5 6
5Vext 3 VCC CANH 7 7 8
CANL BCANL
C34 9 10
2 GND CANL 6
0.1uF
B B
8 Rs Vref 5

PCA82C250
CAN -TRANSCEIVER

Schematics, Rev. 0
Guadalajara Applications Laboratory
Periferico Sur 7999, Col. Sta Ma Tequepexpan
Guadalajara, México.
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651
A A
Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 8 of 13
5 4 3 2 1

Appendix A-9
5 4 3 2 1

Appendix A-10
Parallel JTAG Interface
D D

PORT_IDENT

R31
P1 +3.3V
10k
1
14 U11 R3 0 Ohm U10 R58
2 PORT_RESET 2 18 2 18 P_RESET TDO
1A1 1Y1 PORT_RESET 1A1 1A1 1Y1
15 R4 0 Ohm 47K
3 PORT_TMS 4 16 4 16 TMS
1A2 1Y2 PORT_TMS 1A2 1A2 1Y2
16 R5 0 Ohm R57
4 PORT_TCK 6 14 6 14 TCK PWR
1A3 1Y3 PORT_TCK 1A3 1A3 1Y3
17 R6 0 Ohm 47K
5 PORT_TDI 8 12 8 12 TDI
1A4 1Y4 PORT_TDI 1A4 1A4 1Y4
18 R7 0 Ohm R56
6 /PORT_TRST 11 9 11 9 /J_TRST /DE
2A1 2Y1 /PORT_TRST 2A1 2A1 2Y1
19 R52 47K
7 PORT_DE 13 7 7 13 P_DE
2A2 2Y2 1 T2 T1 1 2Y2 2A2
20 5.1K R59
8 15 5 15 TDO TMS
2A3 PORT_TDO 2Y3 2Y3 2A3
21 47K
9 PORT_VCC 20 17 3 17 PWR
5Vext VCC 2A4 PORT_CONNECT 2Y4 2Y4 2A4
C 22 C
10 +3.3V
23 R105 1G 1
11 PORT_TDO 5 20
2Y3 VCC R55
24 19 1 /J_TRST
51 Ohm 2G 1G
12 19 2G GND 10
25 47K
PORT_CONNECT R104
R53 R49

2
1
13 3 2Y4 GND 10 JG9 R51
5.1K 5.1K MC74LCX244DW P_DE
51 Ohm
MC74HC244DW R50
5.1K
5.1K
On-Board
Host Target Interface
Disable

U9A U9B
P_RESET 1 4
3 6 J3
/RESET
B 2 5 /DE /J_TRST B
/POR 13 14
+3.3V P_RESET 11 12
74AC00 74AC00 TMS
9 10
7 8 KEY
U9C U9D
TCK 5 6
9 12 TDO 3 4
8 11 /TRST TDI 1 2
/J_TRST 10 13
JTAG Connector
74AC00 74AC00

U9 CAPACITORS

+3.3V /POR

Guadalajara Applications Laboratory


Periferico Sur 7999, Col. Sta Ma Tequepexpan
C44 C45 Guadalajara, México.
A 0.1uF 0.1uF A
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651

Online UPS Designer Reference Manual, Rev. 0


P_RESET
Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
B 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 9 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
Preliminary
5 4 3 2 1

JTAG OPTOCOUPLERS (OUTPUTS)

Freescale Semiconductor
D
+5.0V +5.0V +5.0V D

R87 R86 R85 R84 R83


U17 390 390 C50 U18 390 390 C51 U12 390
390 R101
1 8 0.1uF 5Vext 1 8 0.1uF 1 8 C52
PORT_RESET +VF1 VCC +VF1 VCC NC1 VCC
390 R88 0.1uF
2 -VF1 VO1 7 1A1 PORT_TCK 2 -VF1 VO1 7 1A3 5Vext 2 +VF VE 7
390 R89 390 R94 390 R96
PORT_TMS 3 -VF2 VO2 6 1A2 PORT_TDI 3 -VF2 VO2 6 1A4 /PORT_TRST 3 -VF VD 6 2A1

5Vext 4 +VF2 GND 5 5Vext 4 +VF2 GND 5 4 NC2 GND 5

HCPL-2631S HCPL-2631S 6N137S

C C

JTAG OPTOCOUPLERS (INPUTS)

5Vext

B B

R82 R91
C53 390 390
U19
0.1uF
8 VCC +VF1 1 +5.0V
390 R99
PORT_CONNECT 7 VO1 -VF1 2 2Y4

Schematics, Rev. 0
390 R100
PORT_TDO 6 VO2 -VF2 3 2Y3
5 GND +VF2 4 +5.0V Guadalajara Applications Laboratory
Periferico Sur 7999, Col. Sta Ma Tequepexpan
HCPL-2631S
Guadalajara, México.
+52 (33) 3283-0650 FAX: +52 (33) 3283-0651
A A

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 10 of 13
5 4 3 2 1

Appendix A-11
5 4 3 2 1

R80 R79 R71


AN0 ANA0 AN7 ANA7 AN12 ANB4

Appendix A-12
560 560 560
C75 C76 C69
D 0.0022uF 0.0022uF 0.0022uF D

R81 R75 R76


AN1 ANA1 AN8 ANB0 AN13 ANB5
560 560 560
C77 C65 C70
0.0022uF 0.0022uF 0.0022uF

R68 R72 R77


AN2 ANA2 AN9 ANB1 AN14 ANB6
560 560 560
C78 C66 C71
0.0022uF 0.0022uF 0.0022uF
C C

R70 R73 R78


AN3 ANA3 AN10 ANB2 AN15 ANB7
560 560 560
C79 C67 C72
0.0022uF 0.0022uF 0.0022uF

R74
R69 AN11 ANB3
AN4 ANA4 560
560
NOTE: Use a single trace
C68 for GNDA signals to the
C80 0.0022uF
0.0022uF
common GNDA point.
B B

R67
AN5 ANA5
560
C73
0.0022uF

Guadalajara Applications Laboratory


R66 Periferico Sur 7999, Col. Sta Ma Tequepexpan
AN6 ANA6

Online UPS Designer Reference Manual, Rev. 0


560 Guadalajara, México.
C74 +52 (33) 3283-0650 FAX: +52 (33) 3283-0651
0.0022uF
A A

Title MC56F8346 OUPS CONTROL BOARD

Rev.
Size Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 11 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
5 4 3 2 1

Preliminary
EXTERNAL POWER D5
SUPPLY INPUT 2 1
UNREGULATED POWER INPUT
S1ABDICT-ND
7-12Vext DC +12Vext
7-12V DC/AC +12V
U5 5Vext
U6 LM2575S-5.0 P4 D2
D P3 D1 D
2 1 1 2 3 VIN VOUT 2
2 1 1 2 1 4 +5.0V L6
VIN FB + C2 C33
6 1 4

3
+ C1 TAP S1ABDICT-ND GND VOUT
C22 3 L1 470uF 0.1uF

3
S1ABDICT-ND GND FERRITE BEAD +
470uF 0.1uF 5 2 16VDC C6
16VDC ON/OFF OUT MC33269DT-5.0 C17 47uF
PM5022 330uF 2.2uF TANT 10VDC

Freescale Semiconductor
D6 + C7 10VDC
330uF C54
10BQ060
10VDC 0.1uF
Diode schottky

D3 D4
2 1 2 1
DNP DNP
S1ABDICT-ND S1ABDICT-ND

R106
C U8 U7 C
+VREFH
VCC
10 DNP
+5.0V 3 VIN VOUT 2 +5.0V 3 VIN VOUT 2
L2 L3
1 GND VOUT 4 +3.3V 1 GND VOUT 4 +3.3VA
FERRITE BEAD + FERRITE BEAD GROUNDext +5.0Vext
C3
MC33269DT-3.3 C16 47uF MC33269DT-3.3 C18 C23 + C4 TEST POINT TEST POINT
2.2uF TANT 10VDC 2.2uF TANT 0.1uF 47uF
10VDC 10VDC L4 10VDC JG6 NOTE: Remove 0 OHM TP9 TP8
1
1

1 resistor to use Analog


FERRITE BEAD 2 GND isolation jumper.

R2
0 Ohm
5Vext

Single trace
to GNDA.

+5.0V 5Vext

L5 U15
B B
1 R103 R102
+3.3V +3.3V_PLL +3.3VA VIN +3.0V
5 270 270
FERRITE BEAD VOUT +VREFH POWER GOOD LED POWER GOOD LED
3 EN
NR 4 POWER SUPPLY +5.0V POWER SUPPLY 5Vext
+ C5 C24 2 + C81
1
1

47uF 0.1uF GND C59 10uF


10VDC REG113NA-3/3K 0.01uF 6VDC LED1 LED2
GREEN LED GREEN LED

Schematics, Rev. 0
2
2

+3.3VA ANALOG GROUND GROUND +3.3V GROUND GROUND +5.0V


TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT TEST POINT
TP2 TP6 TP3 TP1 TP4 TP5 TP7

1
1
1
1
1
1
1

Guadalajara Applications Laboratory


Periferico Sur 7999, Col. Sta Ma Tequepexpan
A A
Guadalajara, México.
+3.3VA
+3.3V +5.0V +52 (33) 3283-0650 FAX: +52 (33) 3283-0651

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 12 of 13
5 4 3 2 1

Appendix A-13
5 4 3 2 1

U1
MC56F8346
+3.3V +3.3VA

Appendix A-14
D D

C25 C26 C27 C28 C60 C61 C62 C29 C30


0.1uF 0.1uF 0.1uF 0.1uF 0.01uF 0.01uF 0.01uF 0.1uF 0.1uF

U2 U3 U4 U9 U10 U11
GS72116 GS72116 MAX3245 74AC00 74LCX244 74HC244

+3.3V +3.3V +5.0V


+3.3V +3.3V +3.3V +3.3V 5Vext
C C

C38 C37 C58


C31 C63 C32 C64 C36 0.1uF 0.1uF 0.01uF
0.1uF 0.01uF 0.1uF 0.01uF 0.1uF

J1 J7 J23 J13
PERIPHERAL CONNECTOR A/D A CONNECTOR LCD_DISPLAY A/D B CONNECTOR

+5.0V +3.3V +VREFH +5.0V +VREFH


B B

C42 C41 C43 C35 C57


0.1uF 0.1uF 0.1uF 0.1uF 0.1uF

Guadalajara Applications Laboratory


Periferico Sur 7999, Col. Sta Ma Tequepexpan

Online UPS Designer Reference Manual, Rev. 0


Guadalajara, México.
A +52 (33) 3283-0650 FAX: +52 (33) 3283-0651 A

Title MC56F8346 OUPS CONTROL BOARD

Document OUPS_CONTROL_BOARD_SCH_REV1_2.DSN Rev.


Size
Custom 1.2
Date: May 04, 2005 Designer: Diego Garay Sheet 13 of 13
5 4 3 2 1

Freescale Semiconductor
Preliminary
Preliminary
8 7 6 5 4 3 2 1

POWER SUPPLIES SAMPLING SIGNALS RECT. SAMPLING SIGNALS PUSH PULL SAMPLING SIGNALS B.CHARGER SAMPLING SIGNALS INVERTER

+VBAT +VBAT VRHD VRHD VRHD VRHD


TA1 TA1 VRHD VRHD VRH VRH FAULTA1 FAULTA1 VRH VRH VRH VRH FAULTA0 FAULTA0
VDCR VDCR VA VA VA VA VA VA VA VA
D +VREFH +VREFH VRH VRH VB VB VB VB VB VB VB VB D
ANA2 ANA2 ANA4 ANA4 ANA0 ANA0

Freescale Semiconductor
CMPI CMPI Vi Vi +VBAT +VBAT ANA5 ANA5 Vo Vo
3.3V 3.3V OUT1 OUT1 ANA3 ANA3 ANA6 ANA6 ANB0 ANB0 ANA1 ANA1
Ii+ Ii+ +VDC +VDC -VBAT -VBAT Io+ Io+
VA VA OUT2 OUT2 -RSC -RSC SIC SIC ANA7 ANA7
VB VB FPP FPP ICo+ ICo+
PSUP10 SSRECT10 SSPP10 SSCHRG10 SSINV10
J25
+BAT R211
R210 +VDC

1
+VDC
R209 R212
+VBAT
C120 330K 330K
0VMPS 0VICS 0.47uF/630V 0VIIS
Io+

+VDC VDCR 330K


-VCC +VCC 0.01uF/1000V GMPS -VDC +VCC -VCC
GICS GIIS 330K
C135 PPS
MUR4100E MUR4100E CMPI
Ii- Io- C11
GSS 0VIRS
R22 IRG4PH40UD
C13 C9 68 1% 0VSSS6020L C10
GIRS D5 R272 D7 D8 IRF2807 1500uF/250V
820 2W R21
Q4 Q5 D12 C14 40MT120UH
C T1 C
0.1uF/50V 0.1uF/50V
Ii+ MUR4100E
0.1uF/50V MUR1100E 68 1%

2
J24 MUR4100E Q1 Q3
J23 C127 0.1uF/50V

3
2
1
L5 0.47uF/630V MUR4100E MUR460

1
1
Vi Q8 T2

-
10000uF/35V D72

+
J22

M
Vo
J19 D7A D8A 1
1
2
3

C17 L1 D13 MUR110 L6


1

1 C18 C16
-

R263
+

PFC L CHARGER T J21 J33

3
M

2 40MT120UH
C12 6K8
3 R23 1 1
0.47uF/630V D9A
U4 470uF/35V INVERTER L

2
Vi LA55PV1 PUSHPULL L D10A
R206 C129 U3 C137
0VSI R24
1500uF/250V MUR4100E 0.01 1% IRC 0VPS LA55PV1
0.1 1% IRC
N R205 1500uF/250V MUR4100E IRF2807 1 IRG4PH40UD 20uF/330V
330K R208 PPS C128
A.2 Power Board Schematics

S6020L D6 C159 D10 +RSP D11 C15 0.47uF/630V

3
Q7
330K 330K 330K D9 PUSHPULL T MUR1100E Q6
0VIRI MUR4100E 1500uF/250V
R207
GSI 0.01uF/1000V Q2
MUR4100E MUR4100E
GIRI C136 -RSC
B J26 0VIII B
EVM INTERFACE -VDC GMPI 0VICI
-BAT
0.01uF/1000V R214 R215
PWMA0

1
ANA0 ANA0 PWMA0 -VDC
ANA1 ANA1 PWMA1 PWMA1 GICI
ANA2 ANA2 PWMA2 PWMA2
R213 R216
ANA3 ANA3 PWMA3 PWMA3 GIII
PWMA4 -VBAT 330K
ANA4 ANA4 PWMA4 330K
ANA5 ANA5 PWMA5 PWMA5
ANA6 ANA6 TA0 TA0
330K
ANA7 ANA7 TA1 TA1 DRIVERS RECTIFIER DRIVERS PUSH PULL DRIVERS BATT. CHARGER DRIVERS INVERTER
ANB0 ANB0 +VREFH +VREFH 330K

Schematics, Rev. 0
VRHD VRHD 3.3V 3.3V
BP1 BP1 GPIOC0 GPIOC0 GIRS GIRS FPP FPP
FAULTA0 FAULTA0 GPIOC0 GPIOC0 GMPS GMPS GICS GICS GIIS GIIS
FAULTA1 FAULTA1 GIRI GIRI
PWMA4 PWMA4 PWMA2 PWMA2 TA0 TA0 PWMA0 PWMA0
EVMINT10
PWMA5 PWMA5 GSS GSS PWMA3 PWMA3 GMPI GMPI SIC SIC GICI GICI PWMA1 PWMA1 GIII GIII

GSI GSI
BYPASS
DRVRECT10 DRVPP10 DRVCHR10 DRVINV10

A
Vi Vi A
Vo Vo ICo+ ICo+
FREESCALE
+VBAT +VBAT
VRHD VRHD ONLINE UPS MC56F8346
BP1 BP1
Title
BYPASS00 GENERAL

Size Document Number Rev


B OUPSPB V0 R1 0.1

Date: May 03, 2005 Sheet 1 of 17


8 7 6 5 4 3 2 1

Appendix A-15
8 7 6 5 4 3 2 1

Appendix A-16
VRH
VRH

VB
VB
D D
VRH
VA VB
VA
R33
2K87 1% D38
R30 R31 LM6144AIN 1N4004
10 U11C R38
Vi +
13.3K 1% 8 ANA2
205K 1% C54 9
R32 - 100
NC D39 C56
2K87 1%
1N4004
NEAR J12 NC
R238 R34
VA NEAR J12

205K 1% 13.3K 1% 1K43 1%


R35

C C
VRH
NEAR J12 VB

R49 R229
2K87 1% D40
1N4004
R48 2K87 1% U11D
Ii+ 12 R43
Ii+ +
3.01K 1% 14 ANA3
Ii- 13
- C61 100
R47
C60
FROM U4 3.01K 1% LM6144AIN 1N4004 D41 NC
NC
R46

VA
1K43 1% NEAR J12
VRHD

R158
10K
R162 820K

B R156 R153 R157 +5V B

22K 22K
22K
11
R155 U11B
6
- R154
7 4 U12A R194
22K + +
5 12 FAULTA1
1K C114 5
- LM319 0
LM6144AIN
6
3

D68 D69

11
R152 U11A
2
-
1N4004 0.01uF/50V +5V
1
22K 3
+ 1N4004 +5V CD9
R234 R160
LM6144AIN
VRH

4
470
R235 CCW P1
2K87 1% C132 0.1uF/50V
C115 1K/25V
+5V
+5V
CD11 0.1uF/50V
R161

2K87 1% 0.1uF/50V 470


A A
0.1uF/50V FREESCALE

Online UPS Designer Reference Manual, Rev. 0


ONLINE UPS D MC56F8346

Title
SAMPLIG SIGNALS - RECTIFIER

Size Document Number Rev


B OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 2 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

Preliminary
D D

Freescale Semiconductor
VRH 0.01uF/50V
VRH
C156

VB
VB
R64

C VA 2.74K 1% VB C
VA

D42
R62 1N4004
R60 R61 U5B
6
- R68
+VDC ANA6
412K 1% 7 ANA6
191K 1% 6.81K 1% +
5 D43
0VICI R65 R66 R67 100
-VDC LM6144AIN C62
1N4004 0.47uF/50V
412K 1% 191K 1% 6.81K 1%
R63 C155
0.01uF/50V VA NEAR J12
2.74K 1%

VRH
B B

Schematics, Rev. 0
FREESCALE

A ONLINE UPS D MC56F8346 A

Title
SAMPLING SIGNALS - PUSHPULL

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 3 of 17


8 7 6 5 4 3 2 1

Appendix A-17
8 7 6 5 4 3 2 1

Appendix A-18
+5V
VB
VB
CD3

VA +5V VB
VA
0.1uF/50V
D62

4
0.01uF/50V LM6144AIN 1N4004
R133
3 U5A R136
D +VBAT + D
1 ANA4
21K 1% C157
2
R134 - 100
1K87 1% D63

11
1N4004 C106
NEAR J12 0.47uF/50V
R135 R132
VA NEAR J12
-VBAT
21K 1% 1K87 1%

C158
0.01uF/50V
NEAR J12 VB
R142
R151 110K 1%
D64
U5D
+RSP 12 R145 11K 1% 1N4004
+ U5C
14 10 R147
11K 1% +
13 R146 8 ANA5
FROM R23 - 1K 1% C110 9 100
-
LM6144AIN C109 C111
C D65 C
R143 LM6144AIN 1N4004 NC
R141 0.1uF/50V
-RSC
0.01uF/50V
11K 1% 110K 1% VA
NEAR J12

R140 R187 +VCC


820K
CD5
-VCC 20K +VCC

R201 -VCC

8
6
11
U24A 0.1uF/50V
U24B 150 1%
R202 -
10 +5V 4
+ R195
SIC 7 12 FPP
+ R203
9 5 LM319
0 - 0
LM319 3K9 1%

6
3

11
C126 +5V
R183
R204 0.47uF/50V
0
+VCC -VCC
CCW P3
B 150 1% B
1K/25V
C119

0.1uF/50V R185

470

+5V

NEAR J12 VB
R243
330 R241
J31 274K 1% D82
Vs R239 1N4004
1 U25B
Vo T+ 5 R244
G 2 +
3 7 ANB0
T- 110K 1% 6
- 100
BAT. TEMP. SENSOR D89 R240 D83 C138
1N4004 110K 1% LM6144AIN 1N4004 NC
R242
NEAR J12
VA
A D90 274K 1% A
1N4004 FREESCALE

ONLINE UPS D MC56F8346

Online UPS Designer Reference Manual, Rev. 0


Title
SAMPLING SIGNALS - BATTERY CHARGER

Size Document Number Rev


B OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 4 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

Preliminary
LCD VOLTAGE SELECTOR
POS JP1
1-2 120V
D D
J10 J11 2-3 220V
PWMA0 1 2 PWMA1 1 2
PWMA2 3 4 PWMA3 VRHD 3 4
PWMA5

Freescale Semiconductor
PWMA4 5 6 5 6 INPUT LINE SENSING

3
1
FAULTA0 7 8 FAULTA1 7 8 POS JP2
9 10 BP1 BP1 9 10 BP2 1-2 AUTO
11 12 120/220 11 12 2-3 MAN

2
13 14 13 14 EVM
JP1
PWMA R252 C142 BYPASS
10K 0.1uF/50V MANUAL FREQUENCY SELECTOR
POS JP3
1-2 50HZ
2-3 60HZ
J12 EVM
ANA0 1 2 ANA1
C R228 R227 J30 C
ANA2 3 4 ANA3
ANA4 5 6 ANA5 2 INV. ON
ANA6 7 8 ANA7 1
+VREFH 1K 100
9 10
J15
CD15 GPIOC1
A/D PORT A 0.1uF/50V 1 2
GPIOC0 3 4
5 6 3.3V
TP26

SCR's GATES CD16


J13 0.1uF/50V
ANB0 1 2
3 4
5 6
7 8 VRHD EVM VRHD

3
1
1
3

9 10
B B
J17
A/D PORT B A/M 50/60

2
2

1 2
JP2 3 4 JP3
R254

Schematics, Rev. 0
R253 5 6 10K
10K C144
A/M - 50/60
J18 C143
TA1 0.1uF/50V 0.1uF/50V
TA0 1 2
3 4
5 6

TIMER CHANNEL A

FREESCALE

A ONLINE UPS MC56F8346 A

Title
HEADERS

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 5 of 17


8 7 6 5 4 3 2 1

Appendix A-19
8 7 6 5 4 3 2 1

Appendix A-20
D D
+VCC

R101 +VMPS
1K2
0.1uF/50V
U17
TP19 R225 1 8 C79
NC V+
2 7 R104
A GND
PWMA2 3 K 02 6 GMPS
10K 4 NC O1 5
39 R105
HP3101 10K
0VMPS
-VMPS
R102
C 330 C

TP20

FPP

+VCC

R103 +VMPI
1K2
0.1uF/50V
U18
B B
TP18 R226 1 8 C80
NC V+
2 7 R109
A GND
PWMA3 3 K 02 6 GMPI
10K 4 NC O1 5
39 R110
HP3101 10K

-VMPI
R200
330

FREESCALE

Online UPS Designer Reference Manual, Rev. 0


A ONLINE UPS D MC56F8346 A

Title
DRIVERS PUSHPULL

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 6 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

+VCC

Preliminary
+VIRS

R73
1K2
D 0.1uF/50V D
TP16 U13
R71 1 8
NC V+ C69
2 7 R74
A GND
PWMA4 3 K 02 6 GIRS
10K 4 5

Freescale Semiconductor
NC O1 R75
39
R72 HP3101 10K
330
-VIRS

0VIRS

+VCC

+VIRI

C R78 C
1K2
0.1uF/50V
TP17 U14
R76 1 8 C70
NC V+
2 7 R79
A GND
PWMA5 3 K 02 6 GIRI
10K 4 5
NC O1 R80
39
R77 HP3101 10K
330 0VIRI
-VIRI

B B

DRIVERS SCR'S

Schematics, Rev. 0
GSS GSS

GPIOC0 GPIOC0

GSI GSI

DRVSCR00
FREESCALE

A ONLINE UPS D MC56F8346 A

Title
DRIVERS RECTIFIER

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 7 of 17


8 7 6 5 4 3 2 1

Appendix A-21
8 7 6 5 4 3 2 1

Appendix A-22
+VSS R81 R83
D D

22
+VCC 560
D49 D50 Q19
2N2907
R93
Q20
1K 1N4004 1N4004
R85 TIP41C
820 R84
U16 330
R94 R95
1 AN BA 6
1K8 2 5 GSS
KA CO
3 NC EM 4 R86
15K C77 R82
4N35A 220K 1K
0VSS

C C
0.47uF/50V

+VSI R87 R89

22
560
D51 D52 Q21
2N2907
Q22
1N4004 1N4004
+VCC +VCC +VCC R91 TIP41C
820 R90
R96 U15 330
R219 R97 1 6
AN BA
R217 18K 2 5 GSI
B Q49 KA CO B
47K 15K 3 4
2N2222 15K NC EM R92 R88
C78
4N35A 220K 1K
R98
Q23 0VSI
GPIOC0 2N2222
10K
0.47uF/50V
R218 R99
6K8 1K8

FREESCALE

Online UPS Designer Reference Manual, Rev. 0


A ONLINE UPS D MC56F8346 A

Title
DRIVERS SCR'S

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 8 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

Preliminary
+VSS R81 R83
D D

22
+VCC 560
D49 D50 Q19

Freescale Semiconductor
2N2907
R93
Q20
1K 1N4004 1N4004
R85 TIP41C
820 R84
U16 330
R94 R95
1 AN BA 6
1K8 2 5 GSS
KA CO
3 NC EM 4 R86
15K C77 R82
4N35A 220K 1K
0VSS

C C
0.47uF/50V

+VSI R87 R89

22
560
D51 D52 Q21
2N2907
Q22
1N4004 1N4004
+VCC +VCC +VCC R91 TIP41C
820 R90
R96 U15 330
R219 R97 1 6
AN BA
R217 18K 2 5 GSI
B Q49 KA CO B
47K 15K 3 4
2N2222 15K NC EM R92 R88
C78
4N35A 220K 1K
R98
Q23 0VSI
GPIOC0

Schematics, Rev. 0
2N2222
10K
0.47uF/50V
R218 R99
6K8 1K8

FREESCALE

A ONLINE UPS D MC56F8346 A

Title
DRIVERS SCR'S

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 8 of 17


8 7 6 5 4 3 2 1

Appendix A-23
8 7 6 5 4 3 2 1

Appendix A-24
D D
+VCC

+VIIS

R122
1K2
0.1uF/50V
TP22 U21
R120 1 8 C95
NC V+
2 7 R123
A GND
PWMA0 3 K 02 6 GIIS
10K 4 5
NC O1 R124
39
R121 HP3101 10K
330 0VIIS
-VIIS

C C

+VCC

+VIII

R127
1K2
TP21 0.1uF/50V
U22
R125 1 8 C96
NC V+
2 7 R128
A GND
PWMA1 3 K 02 6 GIII
10K 4 5
NC O1 R129
39
B 10K B
R126 HP3101
330 0VIII
-VIII

Online UPS Designer Reference Manual, Rev. 0


FREESCALE

A ONLINE UPS D MC56F8346 A

Title
DRIVERS INVERTER

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 9 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

Preliminary
+VICS
D D

+VCC 0.1uF/50V
U19
1 8 C87
NC V+

Freescale Semiconductor
R189 2 7 R114
A GND
3 K 02 6 GICS
4 NC O1 5
15K 39 R115
HP3101 10K
0VICS
-VICS

C C

R271
820

+VICI

0.1uF/50V
U20
TP24 15K 1 8 C88
NC V+
R188 2 7 R116
A GND
SIC 3 K 02 6 GICI
B
4 NC O1 5 B
+VCC +VCC 39 R117
HP3101 10K
R224 R113 0VICI
47K 18K -VICI
TP23 Q32

Schematics, Rev. 0
R111
Q48
TA0 2N2222
10K R118
R112 2N2222 1K8
6K8

FREESCALE

A ONLINE UPS D MC56F8346 A

Title
DRIVERS BATTERY CHARGER

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 10 of 17


8 7 6 5 4 3 2 1

Appendix A-25
8 7 6 5 4 3 2 1

Appendix A-26
CONTROL POWER SUPPLIES GATE DRIVERS POWER SUPPLIES
D D

VDCR VDCR

+VBAT +VBAT OUT1 OUT1


TA1 TA1

OUT1 OUT1
OUT2 OUT2
OUT2 OUT2

PSCG00 PSDR00

C C

REFERENCE SIGNALS PUSH PULL GATE DRIVERS POWER SUPPLIES


VRHD VRHD

+VREFH +VREFH VRH VRH


CMPI CMPI
3.3V 3.3V VA VA

B VB VB B

+VBAT +VBAT
RSGN10

PSDRPP00

FREESCALE

Online UPS Designer Reference Manual, Rev. 0


A ONLINE UPS MC56F8346 A

Title
POWER SUPPLIES

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 11 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

+5V
TP6

Preliminary
R25
+5V 3K3
VRH
D VB D
R223 R175
2K7 0

+5V

Freescale Semiconductor
11
LM6144AIN
2 U2A
-
CD13
U2B - Q9
6 1
R27 R231 7 3
+ 2N2907
+
+VREFH 5 LM6144AIN
D37 0.1uF/50V

4
100 100 1N4004 +5V
C52
0.1uF/50V

C53 R26
10uF/16V R29 68
C 1K8 C
VA

U2D
-
13
14 Q10
12
+ 2N2222

D36 LM6144AIN
1N4004
+5V
+5V

R193
0
B B
R232 R233
U2C
3.3V 10
+ Q46
8
100 100 2N2222

Schematics, Rev. 0
9
- LM6144AIN TP5
C131
VRHD

10uF/25V R192
TP7 1K

FREESCALE

A ONLINE UPS MC56F8346 A

Title
REFERENCE SIGNALS

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 12 of 17


8 7 6 5 4 3 2 1

Appendix A-27
8 7 6 5 4 3 2 1

+VCC +VCC
+VCC
C160 C161
D93

Appendix A-28
10uF/25V 0.1uF/50V R267 T12 J32
2K7 C154 CONTROL BOARD
0VPS 0VPS 2 JTAG
MUR110
D 1 D
OPTOCOUPLERS
R270 D92 D91 POWER SUPPLY
1N4746A
R269 10uF/16V
R268
4K7 6K8 Q52 Q51 MUR110
2N2907 TIP31C
INPUT LINE VOLTAGE SELECTOR 680
POS JP4 R266
1-2 120V R273 1K8
2-3 220V
Q53
2N2222 0VPS
18K
D75
R274
VDCR 2K2 J28
MUR110
C122 1 CONTROL BOARD
D29
TP1 1000uF/25V 2 POWER SUPPLY
C C
+VBAT J29 0VPS TP2
1N4004 +VCC' D76

1
2
F1 L2

1
3
RL204-T U23

1
2
D66 1N4736
D30 D77 1A PON MUR1620CTR R148

VI
VO
RL204-T 11K 1%
C112

2
J27 1000uF/25V 4
C20 F
1 1
18VAC 2
2 JP4 C19 C36
3 R149

G
/ON
D32 D78

3
5
C113 TP3 1K 1%
RL204-T 1000uF/25V
+VCC -VCC
B B
RL204-T 3300uF/50V 330uF/50V 0.1uF/50V
0VPS R197 R198
LM2576T-ADJ 2K7 2K7

L4 U26
T11 +VCC' +VCC LM7805 +5V
1000uF/25V D73 D74
OUT1 1 VI VO 3
7uH/5A
GND

C35 C124
C125 1000uF/25V C150
2

MUR110 10uF/16V
D22

Online UPS Designer Reference Manual, Rev. 0


TP4 GREEN YELLOW
OUT2 -VCC FREESCALE
0.47uF/50V
A ONLINE UPS MC56F8346 A

Title
CONTROL POWER SUPPLIES

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 13 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

SCR'S GATE DRIVERS RECTIFIER GATE DRIVERS BATTERY CHARGER GATE DRIVERS INVERTER GATE DRIVERS
MUR110 MUR110
MUR110 MUR110

Preliminary
T3 D14 +VSS D28 +VIRS D16 +VICS D23 +VIIS
OUT1 OUT1 T4 OUT1 T5 OUT1 T6

C21 C22 C24 C26


D D
TP8 0.47uF/50V TP10 0.47uF/50V TP12 0.47uF/50V TP14 0.47uF/50V
0VICS 0VIIS
OUT2 OUT2 OUT2 OUT2

Freescale Semiconductor
0VSS C23 C25 C27
0VIRS
0.47uF/50V 0.47uF/50V
D27 R176 0.47uF/50V D17 R178 D24 R180

-VIRS -VICS -VIIS


MUR110 39 1/2W MUR110 39 1/2W MUR110 39 1/2W

MUR110 MUR110 MUR110 MUR110


T7 D15 +VSI D20 +VIRI D18 +VICI D25 +VIII
OUT1 OUT1 T8 OUT1 T9 OUT1 T10
C C

C28 C29 C31 C33

TP9 0.47uF/50V TP11 0.47uF/50V TP13 0.47uF/50V TP15 0.47uF/50V


0VIRI 0VICI 0VIII
OUT2 OUT2 OUT2 OUT2

0VSI C30 C32 C34


0.47uF/50V
0.47uF/50V 0.47uF/50V
D21 R177 D19 R179 D26 R181

-VIRI -VICI -VIII


MUR110 39 1/2W MUR110 39 1/2W MUR110 39 1/2W
OUT1

B OUT2 B

C51
0.01uF/50V
C50
L3 0.01uF/50V

Schematics, Rev. 0
+VCC' +VCC1
0.1uF/50V CERAMIC
C123 U6

4
2
3
1
8
7uH/5A L6203
C121

B1
B2

O1
O2

VS
1000uF/25V
0VPS 0VPS 9 VR
R150
TA1 11 EN I2 7
+VCC1 R221
100 5 I1 FREESCALE
R220
10K 2K7 S
GND

R222
A ONLINE UPS MC56F8346 A
1K
6

10

0VPS Title
0VPS GATE DRIVERS POWER SUPPLIES
0VPS
C49 0.22uF/50V Size Document Number Rev
A OUPSPB V0 R1 0.1
0VPS
Date: May 04, 2005 Sheet 14 of 17
8 7 6 5 4 3 2 1

Appendix A-29
8 7 6 5 4 3 2 1

Appendix A-30
PUSH PULL GATE DRIVERS

D D

U7 U8
LM78L15 +VMPS LM78L15 +VMPI
CMPI 1 VI VO 3 +VBAT 1 VI VO 3

GND
GND
C40

2
2
1uF/50V
0VMPS

C C

U10 0VMPS U9
0VPS D34 LM79L12 -VMPS D35 LM79L12 -VMPI
2 VI VO 3 2 VI VO 3

MUR110 D79 MUR110

GND
GND

C45 D80 C48


C46
C43

1
1

1uF/50V 1uF/50V 1N5819 0.47uF/50V


0VMPS

1N5819 0.47uF/50V
B B

0VPS
N AGND

FREESCALE

Online UPS Designer Reference Manual, Rev. 0


A ONLINE UPS MC56F8346 A

Title
PUSH PULL GATE DRIVERS POWER SUPPLIES

Size Document Number Rev


A OUPSPB V0 R1 0.1

Date: May 04, 2005 Sheet 15 of 17


8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
8 7 6 5 4 3 2 1

Preliminary
D +VBAT D
0.1uF/50V
0.1uF/50V
-VCC +VCC
C152 C153
ICo-

C147 R265

Freescale Semiconductor
0.22uF/400V 68

R255
100/5W ICo+

3
2
1
K1 VLOAD

+
RELAY RY610012 J34 M J35 J20
Vo
1 1 1
Vi R262 2
R257
R256 100/5W 3 Vout
100/5W 680/1W D86 U27 VO 4
1N4751 LA55PV1 5
C C
30V 6
220uF/50V C145
C146 C149 0.22uF/400V
0.22uF/400V D87
1N4751
30V

D88
VRHD 1N4004
R258
22K
U25C
TP25 9
- R260
8 Q50
10
+ TIP31C
BP1
2K2
B R264 B
U25D
10K LM6144AIN R261 -
3K3 13
C151 R259 14
22K 12
+
LM6144AIN

Schematics, Rev. 0
0.1uF/50V 0.1uF/50V
C148

FREESCALE

A ONLINE UPS MC56F8346 A

Title
BYPASS

Size Document Number Rev


A OUPSPB V0 R1 L1

Date: May 04, 2005 Sheet 16 of 17


8 7 6 5 4 3 2 1

Appendix A-31
8 7 6 5 4 3 2 1

VRH

Appendix A-32
VRH

VB
VB
VRH
VB

VA
VA R20 D1
2K87 1% LM6144AIN 1N4004
R10 R6
D U1C D
10 R7
Vo +
8 ANA0
205K 1% 13.3K 1% C1 9
- 100 D2
R5
NC C4
2K87 1%
1N4004 0.1uF/50V CERAMIC
NEAR J12
R251 R2
VA NEAR J12
1K43 1%
205K 1% 13.3K 1%
R1 +5V

VRH
2K87 1% +5V C141 VB
0.1uF/50V
NEAR J12 R247 R248
2K87 1% LM6144AIN D84

4
1N4004
R245 U25A
3 R250
ICo+ +
1 ANA7
ICo- 3K01 1%
2
- 100 D85
R246 C140 C139
C 3K01 1% C

11
FROM U27 NC 1N4004 NC

R249 VA NEAR J12

1K43 1%

VRH
2K87 1% VB

NEAR J12 R11 R230


2K87 1% D3
1N4004
R12 U1D
Io+ 12 R17
Io+ +
3.01K 1% 14 ANA1
Io- 13
- C5 D4
R13 100
C6
FROM U3 3.01K 1% LM6144AIN NC 1N4004 NC
R14
B VRHD B
VA NEAR J12
1K43 1%
R173
10K
R170

820K
R164 +5V
R167

22K 22K
11

R165 R166 U1B


6
- R168 R169
U12B
22K 7 9 R196
22K + +
5 7 FAULTA0
100 C116 1K C117 10
- LM319 0
D70 D71
6
8

11
U1A LM6144AIN
R163
2
- 1N4004

Online UPS Designer Reference Manual, Rev. 0


1 0.01uF/50V
R236 22K 3
+ 0.01uF/50V
VRH 1N4004 +5V
A LM6144AIN +5V A

4
2K87 1% R237 +5V R171 FREESCALE
CD1
0.1uF/50V 470 ONLINE UPS D MC56F8346
C133 CCW P2
0.1uF/50V C118 1K/25V Title
SAMPLING SIGNALS - INVERTER
2K87 1%
R172 Size Document Number Rev
0.1uF/50V B OUPSPB V0 R1 0.1
470
Date: May 04, 2005 Sheet 17 of 17
8 7 6 5 4 3 2 1

Freescale Semiconductor
Preliminary
Appendix B Bill of Materials
Item Quantity Reference Part Part Number Distributor

1 1 0UPSPBV0R0 Printed Circuit 0UPSPBV0R0 Microcircuitos -


Cali Colombia

2 36 CD1, CD3, CD5, CD9, C9, C10, CD11, Poliester P4593-ND Digi-key
C11, CD13, C13, CD15, CD16, C36, Capacitor
C52, C69, C70, C79, C80, C87, C88, 0.1uF/50V
C95, C96, C109, C115, C118, C119,
C133, C132, C141, C142, C143,
C144, C148, C151, C152, C153

3 11 C1, C5, C6, C54, C56, C60, C61, NC


C111, C138, C139, C140

4 1 C12 Electrolitic 92N5076 Newark


Capacitor Electronics
470uF/35V

5 4 C14, C15, C17, C18 Electrolitic LPX152M250H9P3 Newark


Capacitor Electronics
1500uF/250V

6 1 C16 Electrolitc 539-LP35V10000 Mouser


Capacitor Electronics
10000uF/35V

7 1 C19 Electrolitc 18C7176 Newark


Capacitor Electronics
330uF/50V

8 1 C149 Electrolitc 27C4402 Newark


Capacitor Electronics
220uF/50V

9 22 C21, C22, C23, C24, C25, C26, C27, Poliester P4735-ND Digi-key
C28, C29, C30, C31, C32, C33, C34, Capacitor
C35, C45, C48, C62, C77, C78, C106, 0.47uF/50V
C126

10 3 C40, C43, C46 Electrolitc 92N5080 Newark


Capacitor Electronics
1uF/50V

11 1 C49 Poliester P4597-ND Digi-key


Capacitor
0.22uF/50V

12 6 C50, C51, C110, C114, C116, C117 Poliester P4582-ND Digi-key


Capacitor
0.01uF/50V

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-1
Preliminary
Item Quantity Reference Part Part Number Distributor

13 3 C53, C150, C154 Electrolitc 92N5047 Newark


Capacitor Electronics
10uF/16V

14 6 C112, C113, C121, C122, C124, C125 Electrolitc 92N5065 Newark


Capacitor Electronics
1000uF/25V

15 4 C120, C127, C128, C129 Poliester 16F8009 Newark


Capacitor Electronics
0.47uF/630V

16 2 C4, C123 Ceramic 140-50Q9-104Z Mouser


Capacitor Electronics
0.1uF/50V

17 1 C131 Electrolitc 92N4988 Newark


Capacitor Electronics
10uF/25V

18 2 C135, C136 Poliester 5989-1KV.01 Mouser


Capacitor Electronics
0.01uF/1000V

19 1 C137 AC Capacitor 89F2069 Newark


20uF/330Vac Electronics

20 3 C145, C146, C147 Poliester 16F7994 Newark


Capacitor Electronics
0.22uF/400V

21 1 C20 Electrolitc 647-UVR1H332MH Mouser


Capacitor A Electronics
3300uF/50V

22 32 D1, D2, D3, D4, D29, D36, D37, D38, Diode 1N4004 1N4004GITR-ND Digi-key
D39, D40, D41, D42, D43, D49, D50,
D51, D52, D62, D63, D64, D65, D68,
D69, D70, D71, D82, D83, D84, D85,
D88, D89, D90

23 6 D5, D6, D7, D8, D9, D10 Ultrafast 568-2544 Allied


Recovery Diode Electronics
MUR4100E

24 2 D11,.D12 Ultrafast 568-2540 Allied


Recovery Diode Electronics
MUR1100E

25 1 D13 Ultrafast 08F2110 Newark


Recovery Diode Electronics
MUR460

26 21 D14, D15, D16, D17, D18, D19, D20, Ultrafast 08F2025 Newark
D21, D22, D23, D24, D25, D26, D27, Recovery Diode Electronics
D28, D34, D35, D72, D75, D91, D93 MUR110

Online UPS Designer Reference Manual, Rev. 0


Appendix B-2 Freescale Semiconductor
Preliminary
Item Quantity Reference Part Part Number Distributor

27 4 D30, D32, D77, D78 Diode RL204-T RL204DICT-ND Digi-key

28 1 D66 Ultrafast 08F2059 Newark


Recovery Diode Electronics
MUR1620CTR

29 1 D73 Green LED 606-4300F5LC Mouser


Electronics

30 1 D74 Yellow LED 606-4300F7LC Mouser


Electronics

31 1 D76 Zener Diode 18C8952 Newark


1N4736A Electronics

32 2 D79, D80 Diode 1N5819 18C9038 Newark


Electronics

33 2 D86, D87 Diode 1N4751 33C2803 Newark


Electronics

34 1 D92 Zener Diode 95B4981 Newark


1N4746A Electronics

35 2 3AG Fuse Clip 27F595 Newark


Electronics

36 1 F1 Fuse 3AG 1A 27F656 Newark


Electronics

37 4 JP1, JP2, JP3, JP4 Ribbon Connector 571-41033280 Mouser


3 pos. Electronics

38 4 Post shunt 2 48F5782 Newark


contacts Electronics

39 2 J10, J11 Ribbon Connector 571-41033280 Mouser


14 pos. Electronics

40 2 Ribbon cable 90F5194 Newark


receptacle 14 pins Electronics

41 2 J12, J13 Ribbon Connector 571-41033280 Mouser


10 pos. Electronics

42 5 Ribbon cable 90F5192 Newark


receptacle 10 pins Electronics

43 3 J15, J17, J18 Ribbon Connector 571-41033280 Mouser


6 pos. Electronics

44 2 J19, J31 Male Connector 3 38C9330 Newark


positions Electronics

45 2 Female 38C8788 Newark


Connector 3 Electronics
positions

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-3
Preliminary
Item Quantity Reference Part Part Number Distributor

46 1 J20 Male Connector 6 13C2876 Newark


positions Electronics

47 1 Female 38C8791 Newark


Connector 6 Electronics
positions

48 5 J27, J28, J29, J30, J32 Male Connector 2 38C9329 Newark


positions Electronics

49 5 Female 38C8785 Newark


Connector 2 Electronics
positions

50 1 K1 RELAY 52F1002 Newark


RY610012 Electronics

51 1 L1 PUSHPULL Custom made. See UyG


Inductance the ferromagnetic
component section.

52 1 L2 Power Supply Custom made. See UyG


Inductance the ferromagnetic
component section.

53 2 L3, L4 Inductance DN4500-ND Newark


7uH/5A Electronics

54 1 L5 PFC Inductance Custom made. See UyG


the ferromagnetic
component section.

55 1 L6 INVERTER Custom made. See UyG


Inductance the ferromagnetic
component section.

56 3 P1, P2, P3 3/8" 652-3296W-1-102 Mouser


Square/Multiturn Electronics
Potentiometer 1K

57 8 R82, R88, R93, R154, R169, R192, Resistor 1/4W 1K 291-1k Mouser
R222, R228 Electronics

58 2 Q1, Q2 Mosfet IRF2807 83F4449 Newark


Electronics

59 2 Q3, Q4 IGBT 03H7644 Newark


40MT120UH Electronics

60 2 Q5, Q6 IGBT 07B1608 Newark


IRG4PH40UD Electronics

61 2 Q7, Q8 SCR S8020L S8020L-ND Digi-key

62 4 Q9, Q19, Q21, Q52 Transistor 35C0696 Newark


2N2907 Electronics

63 6 Q10, Q23, Q32, Q46, Q48, Q49 Transistor 35C0690 Newark


2N2222 Electronics

Online UPS Designer Reference Manual, Rev. 0


Appendix B-4 Freescale Semiconductor
Preliminary
Item Quantity Reference Part Part Number Distributor

64 2 Q20, Q22 Transistor TIP41C 08F8937 Newark


Electronics

65 2 Q50, Q51 Transistor TIP31C 38C8658 Newark


Electronics

66 5 R1, R14, R35, R46, R249 Resistor 1/4W 271-1,43k Mouser


1,43K 1% Electronics

67 4 R2, R6, R31, R34 Resistor 1/4W 271-13,3K Mouser


13,3K 1% Electronics

68 14 R5, R11, R20, R32, R33, R49, R229, Resistor 1/4W 271-2,87k Mouser
R230, R234, R235, R236, R237, 2,87K 1% Electronics
R247, R248

69 16 R7, R17, R27, R38, R43, R68, R136, Resistor 1/4W 291-100 Mouser
R147, R150, R168, R227, R231, 100 Electronics
R232, R233, R244, R250

70 4 R10, R30, R238, R251 Resistor 1/4W 271-205K Mouser


205K 1% Electronics

71 4 R12, R13, R47, R48 Resistor 1/4W 271-3,01K Mouser


3,01K 1% Electronics

72 2 R21, R22 Resistor 1/4W 68 271-68 Mouser


1% Electronics

73 1 R23 Non-inductive 91F4987 Newark


Power Resistor Electronics
0.01 1% 5W IRC

74 1 R24 Non-inductive 97F9249 Newark


Power Resistor Electronics
0.1 1% 5W IRC

75 2 R25, R261 Resistor 1/4W 291-3,3K Mouser


3,3K Electronics

76 2 R26, R265 Resistor 1/4W 68 291-68 Mouser


Electronics

77 5 R29, R94, R99, R118, R266 Resistor 1/4W 291-1,8K Mouser


1K8 Electronics

78 2 R60, R65 Resistor 1/4W 271-412K Mouser


412K 1% Electronics

79 2 R61, R66 Resistor 1/4W 271-191K Mouser


191K 1% Electronics

80 2 R62, R67 Resistor 1/4W 271-6,81k Mouser


6.81K 1% Electronics

81 2 R63, R64 Resistor 1/4W 271-2,74K Mouser


2,74K 1% Electronics

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-5
Preliminary
Item Quantity Reference Part Part Number Distributor

82 23 R71, R75, R76, R80, R98, R105, Resistor 1/4W 291-10K Mouser
R110, R111, R115, R117, R120, 10K Electronics
R124, R125, R129, R158, R173,
R220, R225, R226, R252, R253,
R254, R264

83 9 R72, R77, R84, R90, R102, R121, Resistor 1/4W 291-330 Mouser
R126, R200, R243 330 Electronics

84 6 R73, R78, R101, R103, R122, R127 Resistor 1/4W 291-1,2k Mouser
1K2 Electronics

85 8 R74, R79, R104, R109, R114, R116, Resistor 1/4W 39 291-39 Mouser
R123, R128 Electronics

86 2 R81, R87 Resistor 1/4W 22 291-22 Mouser


Electronics

87 2 R83, R89 Resistor 1/4W 291-560 Mouser


560 Electronics

88 3 R85, R91, R271 Resistor 1/4W 291-820 Mouser


820 Electronics

89 2 R86, R92 Resistor 1/4W 291-220K Mouser


220K Electronics

90 5 R95, R96, R97, R188, R189 Resistor 1/4W 291-15k Mouser


15K Electronics

91 3 R218, R112, R263 Resistor 1/4W 291-6,8K Mouser


6K8 Electronics

92 2 R219, R113 Resistor 1/4W 291-18k Mouser


18K Electronics

93 2 R134, R132 Resistor 1/4W 271-1,87K Mouser


1,87K 1% Electronics

94 2 R133, R135 Resistor 1/4W 271-1,87K Mouser


21K 1% Electronics

95 1 R140 Resistor 1/4W 291-20K Mouser


20K Electronics

96 4 R141, R146, R148, R151 Resistor 1/4W 271-11K Mouser


11K 1% Electronics

97 4 R142, R143, R239, R240 Resistor 1/4W 271-110K Mouser


110K 1% Electronics

98 2 R149, R145 Resistor 1/4W 1K 271-1K Mouser


1% Electronics

99 12 R152, R153, R155, R156, R157, Resistor 1/4W 291-22K Mouser


R163, R164, R165, R166, R167, 22K Electronics
R258, R259

Online UPS Designer Reference Manual, Rev. 0


Appendix B-6 Freescale Semiconductor
Preliminary
Item Quantity Reference Part Part Number Distributor

100 5 R160, R161, R171, R172, R185 Resistor 1/4W 291-470 Mouser
470 Electronics

101 3 R162, R170, R187 Resistor 1/4W 291-820k Mouser


820K Electronics

102 7 R175, R183, R193, R194, R195, Resistor 0 ohms 291-0 Mouser
R196, R202 Electronics

103 6 R176, R177, R178, R179, R180, R181 Resistor 1/2W 39 293-39 Mouser
Electronics

104 5 R197, R198, R221, R223, R267 Resistor 1/4W 291-2.7K Mouser
2K7 Electronics

105 2 R201, R204 Resistor 1/4W 271-150 Mouser


150 1% Electronics

106 1 R203 Resistor 1/4W 271-3,9K Mouser


3,9K 1% Electronics

107 12 R205, R206, R207, R208, R209, Resistor 1/4W 291-330k Mouser
R210, R211, R212, R213, R214, 330K Electronics
R215, R216

108 2 R217, R224 Resistor 1/4W 291-47k Mouser


47K Electronics

109 2 R242, R241 Resistor 1/4W 271-274K Mouser


274k 1% Electronics

110 2 R245, R246 Resistor 1/4W 271-3.01K Mouser


3.01K 1% Electronics

111 3 R255, R256, R257 Resistor 5W 100 588-25J-100 Mouser


Electronics

112 1 R260 Resistor 1/4W 291-2,2K Mouser


2,2K Electronics

113 1 R262 Resistor 1W 680 294-680 Mouser


Electronics

114 1 R268 Resistor 1/4W 291-680 Mouser


680 Electronics

115 2 R269, R270 Resistor 1/4W 291-4.7K Mouser


4.7K Electronics

116 25 TP1, TP2, TP3, TP4, TP5, TP6, TP7, Testpoint 534-1040 Mouser
TP8, TP9, TP10, TP11, TP12, TP13, Electronics
TP14, TP15, TP16, TP17, TP18,
TP19, TP20, TP21, TP22, TP23,
TP24, TP25

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-7
Preliminary
Item Quantity Reference Part Part Number Distributor

117 1 T1 PUSHPULL Custom made. See UyG


Transformer the ferromagnetic
component section.

118 1 T2 BATTERY Custom made. See UyG


CHARGER the ferromagnetic
Transformer component section.

119 9 T3, T4, T5, T6, T7, T8, T9, T10, T11 TRANSF_DRIVE Custom made. See UyG
RS_OUDEVM the ferromagnetic
component section.

120 1 T12 CB OPTO PS Custom made. See UyG


Transformer the ferromagnetic
component section.

121 5 U1, U2, U5, U11, U25 LM6144AIN LM6144AIN-ND Digi-key

122 3 U3, U4, U27 Current 398-1010-ND Digi-key


Transducer
LA55PV1

123 1 U6 I.C. L6203 10WX1413 Newark


Electronics

124 2 U7, U8 I.C. LM78L15 07B6966 Newark


Electronics

125 2 U10, U9 I.C. LM79L12 07B6985 Newark


Electronics

126 2 U12, U24 I.C. LM319 07B6431 Newark


Electronics

127 8 U13, U14, U17, U18, U19, U20, U21, I.C. HCPL-3101 06F5465 Newark
U22 Electronics

128 2 U15, U16 Optocoupler 95B5067 Newark


4N35A Electronics

129 1 U23 I.C. LM2576T-ADJNS- Digi-key


LM2576T-ADJ ND

130 1 U26 LM7805 34C1092 Newark


Electronics

131 1 Transformer Custom made. See UyG


318/30 50W the ferromagnetic
component section.

132 1 C60N Circuit 24403 Schneider


Breaker 1x16A Electric

133 2 3AG Fuse holder 27F668 Newark


Electronics

Online UPS Designer Reference Manual, Rev. 0


Appendix B-8 Freescale Semiconductor
Preliminary
Item Quantity Reference Part Part Number Distributor

134 2 Miniature rocker 96F1710 Newark


switch Electronics

135 1 AC Panel mount 89F5321 Newark


inlet Electronics

136 2 Snap-in panel 50F2843 Newark


mount female Electronics
outlet

137 1 OUPS metal box Custom made. See UyG


the ferromagnetic
component section.

138 1 Power Supply 37F3339 Newark


Cord Electronics

B.1 Specifications of Ferromagnetic Materials


B.1.1 Rectifier Inductor

Core Reference: T225-26

Core Manufacturer: MICROMETALS

Wire Caliber: AWG 15

Spire Count: 250


Inductance: 6720 µH.

B.1.2 Inverter Inductor

Core Reference: T225-26

Core Vendor: MICROMETALS

Wire caliber: AWG 15

Spire Count: 250


Inductance: 6720 µH.

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-9
Preliminary
B.1.3 Battery Charger Inductor (T2)

Core Reference: E42/21/15 3C85

Core Vendor: PHILIPS

Primary Winding:

Lp =12 mH.

Wire caliber: 2*AWG 28

Spire Count: 168

Secondary Winding:

Wire caliber: 2*AWG 19

Spire count: 13

Auxiliary winding

Wire caliber: 2*AWG 24

Spire count: 13
lgap = 0,3 mm/leg

B.1.4 Push-Pull (Battery Booster) Transformer (T1)

Core Reference: E55/28/21 3C90

Core Manufacturer: PHILIPS

Primary Winding 1

Wire caliber: 2 x AWG 15

Spire Count: 6

Primary Winding 2

Wire caliber: 2 x AWG 15

Spire Count: 6

Secondary Winding 1

Online UPS Designer Reference Manual, Rev. 0


Appendix B-10 Freescale Semiconductor
Preliminary
Wire caliber: AWG 24

Spire count: 84

Secondary Winding 2

Wire caliber: AWG 24

Spire count: 84
lgap = 0,07 mm/leg

B.1.5 Push-Pull Inductance (L1)

Core Reference: ETD44 3C85

Core Manufacturer: PHILIPS

L1 = 2 mH.

Wire caliber: AWG 24

Spire Count: 165

L2 = 2 mH.

Wire caliber: AWG 24

Spire count: 165


lgap =1,6 mm/leg

B.1.6 Power Supply Inductance (L2)

Core Reference: EA-77-250

Core Manufacturer: AMIDON

L1 = 150 µH.

Wire Caliber: AWG 24

Spire count: 42

L2 = 62 µH.

Wire Caliber AWG 24

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-11
Preliminary
Spire count: 27
lgap = 0,3 mm/leg

B.1.7 Transformers for the Power Supplies (T3, T4, T5, T6, T7, T8, T9, T10)

Core Reference: EA-77-188

Core Manufacturer: AMIDON

Primary Winding :

Wire Caliber: AWG 24

Spire Count: 12

Secondary Winding:

Wire Caliber: AWG 24


Spire count: 10

B.1.8 Transformer for the Negative Power Supply (T11)

Core Reference: EA-77-188

Core Manufacturer: AMIDON

Primary Winding

Wire Caliber: AWG 24

Spire count: 12

Secondary Winding

Wire Caliber: AWG 24


Spire count: 12

B.1.9 Transformer for the Optocoupler’s Power Supply (T12)

Core reference: EA-77-188

Core Manufacturer: AMIDON

Primary Winding

Online UPS Designer Reference Manual, Rev. 0


Appendix B-12 Freescale Semiconductor
Preliminary
Wire Caliber: AWG 24

Spire count: 33

Secondary Winding

Wire Caliber: AWG 24


Spire count: 19

Bill of Materials, Rev. 0


Freescale Semiconductor Appendix B-13
Preliminary
Online UPS Designer Reference Manual, Rev. 0
Appendix B-14 Freescale Semiconductor
Preliminary
INDEX
Numerics PLL Preface-xiii
Power Factor Correction
56F8300 Peripheral User Manual Preface-xiii PFC Preface-xiii
Proportional-Integral
A PI Preface-xiii, 2-1
Proportional-Integral-Derivative
AC 1-1 PID Preface-xiii, 2-1
Address Resolution Protocol Pulse Width Modulation
ARP Preface-xiii PWM Preface-xiii
Alternating Current PWM Preface-xiii
AC 1-1
ARP Preface-xiii R
D RMS Preface-xiii
Root Mean Square
DC Preface-xiii, 1-1 RMS Preface-xiii
DCO Preface-xiii
Digitally Controlled Oscillator S
DCO Preface-xiii
Direct Current SCR Preface-xiii
DC Preface-xiii, 1-1 Silicon Controlled Rectifier
DSP56800E Reference Manual Preface-xiii SCR Preface-xiii

I T
IIR Preface-xiii TCB Preface-xiii
Infinite Impulse Response Transmission Control Block
IIR Preface-xiii TCB Preface-xiii

M U
M & C 1-3 UDP Preface-xiii
Monitor and Control 5-2 Uninterruptible Power Source
Monitoring and Control UPS 1-1
M & C 1-3 Uninterruptible Power Supply
UPS Preface-xiii
O UPS Preface-xiii, 1-1
User Datagram Protocol
Online Uninterruptible Power Supply UDP Preface-xiii
OUPS Preface-xiii
Online UPS
OUPS 1-1
OUPS Preface-xiii, 1-1

P
PFC Preface-xiii
Phase Locked Loop
PLL Preface-xiii
PI Preface-xiii, 2-1
PID Preface-xiii, 2-1

Index
Freescale Semiconductor i
Preliminary
How to Reach Us:
Home Page:
www.freescale.com

E-mail:
support@freescale.com

USA/Europe or Locations Not Listed:


Freescale Semiconductor
Technical Information Center, CH370
1300 N. Alma School Road
Chandler, Arizona 85224
+1-800-521-6274 or +1-480-768-2130
support@freescale.com

Europe, Middle East, and Africa:


Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
support@freescale.com

Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064, Japan Information in this document is provided solely to enable system and
0120 191014 or +81 3 5437 9125 software implementers to use Freescale Semiconductor products. There are
support.japan@freescale.com no express or implied copyright licenses granted hereunder to design or
fabricate any integrated circuits or integrated circuits based on the
information in this document.
Asia/Pacific:
Freescale Semiconductor Hong Kong Ltd.
Technical Information Center Freescale Semiconductor reserves the right to make changes without further
notice to any products herein. Freescale Semiconductor makes no warranty,
2 Dai King Street
representation or guarantee regarding the suitability of its products for any
Tai Po Industrial Estate particular purpose, nor does Freescale Semiconductor assume any liability
Tai Po, N.T., Hong Kong arising out of the application or use of any product or circuit, and specifically
+800 2666 8080 disclaims any and all liability, including without limitation consequential or
support.asia@freescale.com incidental damages. “Typical” parameters that may be provided in Freescale
Semiconductor data sheets and/or specifications can and do vary in different
For Literature Requests Only: applications and actual performance may vary over time. All operating
Freescale Semiconductor Literature Distribution Center parameters, including “Typicals”, must be validated for each customer
application by customer’s technical experts. Freescale Semiconductor does
P.O. Box 5405
not convey any license under its patent rights nor the rights of others.
Denver, Colorado 80217 Freescale Semiconductor products are not designed, intended, or authorized
1-800-441-2447 or 303-675-2140 for use as components in systems intended for surgical implant into the body,
Fax: 303-675-2150 or other applications intended to support or sustain life, or for any other
LDCForFreescaleSemiconductor@hibbertgroup.com application in which the failure of the Freescale Semiconductor product could
create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended
or unauthorized application, Buyer shall indemnify and hold Freescale
Semiconductor and its officers, employees, subsidiaries, affiliates, and
distributors harmless against all claims, costs, damages, and expenses, and
reasonable attorney fees arising out of, directly or indirectly, any claim of
personal injury or death associated with such unintended or unauthorized
use, even if such claim alleges that Freescale Semiconductor was negligent
regarding the design or manufacture of the part.

Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor,


Inc. All other product or service names are the property of their respective owners.
This product incorporates SuperFlash® technology licensed from SST.
© Freescale Semiconductor, Inc. 2005. All rights reserved.

DRM069
Rev. 0
06/2005

Вам также может понравиться