Infineon XC164 Series Application Note
Infineon XC164 Series Application Note

Infineon XC164 Series Application Note

Main control for 5kva single-phase on-line ups reference design with xc164cm

Advertisement

Quick Links

A p p l i c a t i o n N o t e , V 1 . 0 , M a r 2 0 0 7
AP16098
XC164
Main
Control
for
5KVA
Single-Phase On-Line UPS
Reference
Design
with
XC164CM
M i c r o c o n t r o l l e r s

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XC164 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Infineon XC164 Series

  • Page 1 A p p l i c a t i o n N o t e , V 1 . 0 , M a r 2 0 0 7 AP16098 XC164 Main Control 5KVA Single-Phase On-Line UPS Reference Design with XC164CM M i c r o c o n t r o l l e r s...
  • Page 2 Infineon Technologies Components may only be used in life-support devices or systems with the express written approval of Infineon Technologies, if a failure of such components can reasonably be expected to cause the failure of that life-support device or system, or to affect the safety or effectiveness of that device or system.
  • Page 3 Any information within this document that you feel is wrong, unclear or missing at all? Your feedback will help us to continuously improve the quality of this document. Please send your proposal (including a reference to this document) to: mcdocu.comments@infineon.com Application Note V1.0, 2007-03...
  • Page 4: Table Of Contents

    AP16098 UPS Main Control Table of Contents Page Introduction……………………………………………..........5 System Overview…………………………………...…………………………………….6 Power Flow…………….….………………………………………………………………..6 Specifications.………………………………………………………………………………7 Main Control Principle…...………………………………………………………………9 XC164CS Implementation for Main Control…...……………………………………11 XC164CM Introduction……..................11 Pin Configuration.………..…………...............12 Initialization Settings…….……………..............13 4.3.1 CAPCOM6……………….………………..............13 4.3.2 ADC...…………………….………………..............14 4.3.3 CAPCOM2...…………….………………..............14 4.3.4 I/O Ports..……………….………………..............14 4.3.5 ASC0…….……………….………………..............14 Some Programming Considerations................15 States Diagram and Flow Chart.….................16 Experiment Results……………………………............18 Conclusions………..…………………………………………………………………….20...
  • Page 5: Introduction

    Introduction The implementation of main control for a 5KVA single-phase on-line UPS (Uninterrupted Power Supply) reference design using an Infineon 16-bit microcontroller XC164CM is described in this application note. The basic theory and system control flow of this UPS reference design is briefly introduced in Section 2.
  • Page 6: System Overview

    Infineon 16-bit microcontroller XC164CM. The information display with LCD and keyboard operations are implemented by the monitoring board based on Infineon 8-bit microcontrollers XC866 (Figure 1).
  • Page 7 AP16098 UPS Main Control System Overview To eliminate the common noise, the input power is first filtered by an EMI filter which is connected to tow fuses. Afterwards the power flows into the passive power factor correction circuit in order to ensure the input current shape quality. After reduction of voltage by an autotransformer, the input line voltage is rectified into DC voltage.
  • Page 8: Specifications

    AP16098 UPS Main Control System Overview Main Specifications The main technical specifications of this UPS reference design are listed in Table 1. Table 1 UPS Reference Design Main Specifications Items Specifications Notes Nominal AC 220V Voltage Input Single-Phase with Ground Phase Voltage Input Voltage...
  • Page 9: Main Control Principle

    Main Control Principle Main Control Principle As introduced in the system overview section, an Infineon 16-bit microcontroller XC164CM is designed as the kernel of the main control circuit for the whole UPS system. The main control functions executed by the microcontroller are briefly illustrated in Figure 4.
  • Page 10 The ON/OFF control signals for DC-bus relay and bypass relay along with TRIAC control signal are both produced by the microcontroller. The display control board is designed based on an Infineon 8-bit microcontroller XC866 which needs to communicate with the microcontroller on the main control board for data transfer and receiving.
  • Page 11: Xc164Cs Implementation For Main Control

    DSP performance and advanced interrupt handling combined with a powerful integrated peripheral set and high performance, reliable on-chip Flash memory. The resource of Infineon 16-bit microcontroller XC164CM utilized in this UPS reference design is illustrated in Figure 5 (the modules encircled by magenta rectangles).
  • Page 12 AP16098 UPS Main Control XC164CS Implementation of Main Control “ASC0”: It supports full-duplex asynchronous communication and half-duplex synchronous communication. The highlighted features include Loopback capability, autobaud detection unit for asynchronous operating modes, 8-stage FIFO with 9-Bit FIFO data width, etc. Figure 6 CAPCOM6 Block Diagram Figure 7...
  • Page 13: Pin Configuration

    AP16098 UPS Main Control XC164CS Implementation of Main Control Pin Configuration Table 2 indicates the configuration for all the XC164CM pins utilized in this UPS reference design. Table 2 XC164CM Pins Configuration Functions Pin Name Pin Number Direction Modules CC60 COUT60 PWM drive signals for inverter CAPCOM6...
  • Page 14: Adc

    AP16098 UPS Main Control XC164CS Implementation of Main Control “Trap/INT”: Do not use pin #CTRAP as input. In “Interrupt Configuration” Enable T12 interrupt/node I2. “Interrupts”: CCU6 I2 INT -> Level 14, Group 2. “Functions”: In “Initialization Function” select “CCU6_vInit”; In “Function Library (Part 1)”...
  • Page 15: Asc0

    AP16098 UPS Main Control XC164CS Implementation of Main Control 4.3.5 ASC0 The ASC0 initialization for communicating with XC866 on the display board is summarized as below (according to display order in DAvE): “Module Clock”: Enable module. “Pin Selection”: Full-duplex asynchronous operating modes; Use pin TxDA0 (P3.10); Use pin RxDA0 (P3.11).
  • Page 16 AP16098 UPS Main Control XC164CS Implementation of Main Control × ≈ voltage (volts) can be normalized with a number 30967. So after being attenuated by sampling circuit and knocked off by the DC offset, the AD convertion result of the output voltage should be multiplied by 16.004 for normalization. The output value of the voltage loop is also normalized to be limited between 48000 and –48000.
  • Page 17: States Diagram And Flow Chart

    AP16098 UPS Main Control XC164CS Implementation of Main Control States Diagram and Flow Chart Figure 9 States Diagram for Main Control Figure 9 illustrates the state diagram for main control. The flowchart for T12 period- match interrupt service routine is shown in Figure 10. Application Note V1.0, 2007-03...
  • Page 18 AP16098 UPS Main Control XC164CS Implementation of Main Control T12 Period-Match Interrupt Service Routine Start Enable Shadow Calculate SPWM Duty Cycle Transfer Calculate Line Voltage DC-Bus is short-circuit? Calculate Output Current Over Primary Current? Soft Start 150% Overload? 10s Start A/D Conversion for Output Voltage 120% Overload?
  • Page 19: Experiment Results

    AP16098 UPS Main Control Experiment Results Experiment Results Figure 11 shows the measured filtered output voltage waveforms with feedback under no-load and rated resistant load conditions respectively. (a) Without Load (b) With Rated Resistant Load Figure 11 Measured Output Voltage Waveforms Figure 12(a) records the output transient response waveform with full resistant load taken ON under line mode without connecting any battery.
  • Page 20 AP16098 UPS Main Control Experiment Results Figure 13 Short-Circuit Protection Figure 14 Synchronization Figure 15 Overload Protection and Bypass Control Application Note V1.0, 2007-03...
  • Page 21: Conclusions

    AP16098 UPS Main Control Conclusions Conclusions The main control part of UPS (Uninterrupted Power Supply) system is traditionally designed with analog components. Due to the complicated circuit structure and difficulty in debugging, the current trend for UPS design is to adopt a microcontroller as a main control center instead of the analog solution.
  • Page 22 Published by Infineon Technologies AG...

This manual is also suitable for:

Xc164cm

Table of Contents