52
Slide 1 Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004 Embedded Connectivity Summit 2004 DSCO DSP-Controlled UPS System with TCP/IP Protocol to Enable Network Communications

Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Slide 1Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Embedded Connectivity Summit 2004

DSCO

DSP-Controlled UPS System with TCP/IP Protocol to Enable Network Communications

Page 2: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 2Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol

Uninterruptible power supplies (UPS) have been widely used for office equipment, computers, communication systems, medical/life support and many other systems providing clean and continuous power to a load regardless of power grid conditions. Freescale’s DSP controlled on-line triple conversion UPS reference design provides backup power for networks, web servers, telecommunications applications and other critical electronic equipment with Ethernet communications allowing for Local, Network or remote monitoring and management

Page 3: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 3Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol Agenda

Introduction

Hardware Implementation

UPS Connectivity

Software Implementation

Competitive Differentiators

Page 4: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 4Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Basic UPS TopologyOff-Line UPS – Standby System

DC

DCDC

AC

RECTIFIER CHARGER

BATTERIES

INVERTER

+

TRANSFORMER

SWITCH

Limitation:•Uses battery during

Brownouts•Application below

2 KVA

Limitation:•Uses battery during

Brownouts•Application below

2 KVA

Disadvantage:•Slow transfer time•Low power factor•No power conditioning

Disadvantage:•Slow transfer time•Low power factor•No power conditioning

Advantage:•High efficiency•High reliability •Compact•Low cost

Advantage:•High efficiency•High reliability •Compact•Low cost

Page 5: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 5Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

DC

ACBI-DIRECTIONAL

CONVERTERBATTERIES

Basic UPS TopologyLine Interactive on-line UPS

Advantage:•High efficiency•High reliability•Good Overload capability•Compact size

Advantage:•High efficiency•High reliability•Good Overload capability•Compact size

Disadvantage:•Transfer time realizable•Unable to control Powerfactor and frequency

•Poor voltage regulation•Control difficult

Disadvantage:•Transfer time realizable•Unable to control Powerfactor and frequency

•Poor voltage regulation•Control difficult

Limitation:•Application below 5 KVA

Limitation:•Application below 5 KVA

+

BYPASS (Option)

TRANSFORMER

SCR

Page 6: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 6Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

AC

DC

Basic UPS TopologyThe Delta Conversion On-line UPS

Advantage:•Excellent Power Conditioning•High efficiency•High reliability•Excellent Overload capability

Advantage:•Excellent Power Conditioning•High efficiency•High reliability•Excellent Overload capability

Disadvantage:•Control difficult•Unable to control output

frequency•Need High voltage battery Packs

Disadvantage:•Control difficult•Unable to control output

frequency•Need High voltage battery Packs

Limitation:•Application Over 5 KVA•Three Phase UPS

Limitation:•Application Over 5 KVA•Three Phase UPS

DCAC

BI-DIRECTIONALCONVERTER

BI-DIRECTIONALCONVERTER

BATTERIES

TRANSFORMERSCR

Page 7: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 7Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Battery Charger

Battery Booster

Basic UPS Topology Triple Conversion Standby On-Line

UPS

DCAC

Power FactorCorrection

And Rectifier

Advantage:•Excellent Power Conditioning•No transfer time•Excellent power factor•Full protection•High power density

Advantage:•Excellent Power Conditioning•No transfer time•Excellent power factor•Full protection•High power density

Disadvantage:•Low efficiency•High Cost

Disadvantage:•Low efficiency•High Cost

Limitation:•Application Over 2 KVA

Limitation:•Application Over 2 KVA

BYPASS (Option)

Page 8: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 8Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

• 5.0 KVA and under are accounted for the high volume portion of global UPS market.

• Lower pricing and an increasingly converged technology should produce a spike in both the number and power of personal and home computer purchases.

• MCUs have been used in majority of low-end off-line and on-line UPS.• Increased use of Digital Signal Processors in high end on-line UPS is providing

both significant performance increases and cost reductions. • New UPS topology requires high performance controller, such as DSP and 16/32-

bit MPU.• Primary function of UPS has shifted for pure backup power supply to AC/AC power

supply with backup and power protection and connectivity features• The DSP/MCU that is used in industrial and motor control applications can be used

for UPS control.• Leading global suppliers continue to gather market share from more niche-focused

regional supplies.• Total UPS market will be an estimated $5.21 B by 2006.

UPS Technology and Trends

Page 9: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 9Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

What is an Triple Conversion On-line UPS?

• An On-line Uninterruptible power supply that is always active, even when the line is available.

• The UPS that has a triple conversion topology consisting of

Power Factor Correction AC/DC converterBattery chargerBattery Booster DC/AC inverter.

Page 10: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 10Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol Agenda

Introduction

Hardware Implementation

UPS Connectivity

Software Implementation

Competitive Differentiators

Page 11: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 11Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Freescale On-line UPS Solution BENEFITS• Single chip, low cost solution• Fully digital control• High input power factor and

low power pollution to the power grid

• Advanced battery management, Extended battery life

• Power source and load conditioning that can be monitored and controlled in real time

• Network communication capability

• Low maintenance cost

Page 12: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 12Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Single Phase On-Line UPS Using 56F8346Demo Feature:

• Single Phase Triple Conversion Topology• 300 VA Output Power• 120 V or 230 V at 50 Hz/60 Hz Input• Automatic Synchronizing the frequency of

input and output• Software controlled soft start for PFC and

Battery Booster• Controlled by Hybrid Controller –56F8346• Communication Ports – RS232 and

Ethernet• Graphical User Interface on PC• On board LCD display

Input /Output Voltage and CurrentInput /Output frequencyBattery Status

Page 13: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 13Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Inverter

BatteryBooster

Power Factor CorrectionAnd

Rectifier

BatteryCharger

Hardware ImplementationTriple Conversion UPS Power Stage

L5

6.8mH

Q7

SCR

Q8

SCR

D5

D6

C129

0.47uF

C128

0.47uFL6

6.8mH

C137

20uF

+C14

1500uF

+C15

1500uF

Q3T

IGBT

2

1

3

Q3B

IGBT

2

1

3

Q4T

IGBT

2

1

3

Q4B

IGBT2

1

3

D12

D11

D13

BATTERY

12V X 2

+C16

10uF

Q1

MOSFET2

31

Q2

MOSFET

23

1

C12

470uF

T1

D7

D9

D8

D10

L1

Q5

MOSFET

23

1

L1

Filter

Q6

MOSFET

23

1

Page 14: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 14Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Hardware ImplementationPower Factor Correction And Rectifier

Q4B

IGBT

2

1

3

D5

D6

+C14

1500uF

L5

6.8mH

Q7

SCRC129

0.47uF

Q8

SCR

Q4T

IGBT

21

3

+C15

1500uF

V+

V-

Functionality:•Soft Start•Voltage double rectifier•Power factor correction

Control technique•Full digital controlled PFC•PI Control for both Current and voltage loop•SCR used to control soft start and as a switch•20 KHz switching frequency

PFC Operation•Boost operation during input positive half cycle

•Boost operation during input negative half cycle

Vin(L)

Vin(N)Q4T on:

Vin(L)→L5→Q7→Q4T→Vin(N): Storing Energy in L5 Q4T off:

Vin(L)→L5→Q7→D5 → C14→Vin(N): Charging in C14

Q4B on: Vin(N)→Q4B→Q8→L5→Vin(L): Storing Energy in L5

Q4B off: Vin(N)→C15→D6→Q8 → L5→Vin(L): Charging in C14

SnubberSnubber

Page 15: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 15Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Vref

Q7

SCR

Q8

SCR

L5

6.8mHT?

+C15

1500uF

D5

C129

0.47uF

+C14

1500uF

D6

Q4T

IGBT

2

1

3Q4B

IGBT

21

3

+

-

12

1314

421K

191K

191K

6.8K

6.8K

2.7K

2.7K

421K

Hardware ImplementationPower Factor Correction Control Loop

ANA6PWM4&5ANA3ANA2 TA0

PI

X

Trigger

PI

Line Voltage

LineCurrent

RailVoltage

DesiredRailVoltage

56F83xx

-

-+

+

Average Current control modeBest performance

20 KHz switching frequency and sampling rateFully controlled by DSP50 µs control loop for both current and voltageBoth control loops used Proportional-Integral ControllerAdaptive PI controller for Voltage loop

K = 1 Σ

Disconnect Integral if Output less Than Zero

0.9*P

0.0008*I

Zero Cross Log

V+

V-

V(N)

0.011 + 0.9984*Z -1

Voltage Error low-pass Filter

Page 16: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 16Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Hardware ImplementationOutput Inverter

ANA1 ANA0

P

I

DK

P

IK

+C14

1500uF

+C15

1500uF

Q3T

IGBT

2

1

3

C128

0.47uF

Q3B

IGBT

21

3C137

20uF

L6

6.8mHU3

Disconnect Integral if Output greater Than 0.8333

SineLookupTable

Adaptive PIDAdaptive PID

PI ControllerPI Controller

PWM0&1

56F83xx

Half bridge topologyFully controlled by DSP20 KHz switching frequency and sampling rate50 µs control loop for both current and voltage Adaptive PID controller for Voltage loopPower transistors controlled by two PWM channels in complementary mode Three output frequency modes

50 Hz; 60 Hz; Auto Sensing, which

enables output frequency in synchronous with input frequency

OutputVoltage

OutputCurrent

- -

V+

V-

V(N)

Page 17: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 17Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Q5

IGBT

2

1

3

D12

D11

+C14

1500uF

+C15

1500uF

BATTERY

12V X 2

0.1R24

Q6

IGBT

2

1

3+

C16

470uF

T2D13

D72

System Power Supply

V-

V(N)

V+

Hardware ImplementationBattery Charger

Fully digital controlled Double-Ended Discontinuous Mode Fly back Converter

Lower off-voltage stress applied on Power transistor Q5&Q6

Both Power transistors share same control signal 20 KHz switching frequency and sampling ratePI controller for both current and voltage loop50 µs Current control loop and

0.8 ms voltage control loopOutput parameters

Output Voltage: 28 VmaxOutput Current: 1.0 A max

2 State charge schemeConstant current Constant voltage

ANA1 ANA0

Adaptive PIAdaptive PIControllerControllerPI PI

ControllerController

TA0

56F83xx

VoltageSetting

CurrentSetting

I/VSelector

- -

Np

Ns

Page 18: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 18Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

• 2 Step Charging: Constant Current and Constant Voltage

Hardware ImplementationBattery Charging Scheme

Battery capacitance is defined as the integral over time of the current supplied to the battery. This information is stored in the system and useful for calculating the time the battery will give power to the system.

[V][I]

ConstantCurrent

ConstantVoltage

28V

500mA

Page 19: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 19Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

OutputOutputFilterFilter

RectifierRectifierPushPush--Pull Pull ForwardForwardDC/DCDC/DC

ConverterConverter

Vref

C12

470uF

+C14

1500uF

+C15

1500uF

Q1

MOSFET

23

1

D7

L1

D8

D10

D9

Q2

MOSFET

23

1

BATTERY

12V X 2

T1

2.7K

421K

421K

2.7K

191K

191K

6.8K

6.8K+

-

12

1314

V+

V(N)

V-

Hardware ImplementationBattery Booster

Adaptive PIDAdaptive PIDControllerController

PWM2&3

56F83xx

-ANA6

DesiredRailVoltage

Fully digital controlled Push-Pull Forward DC/DC BoosterConvert battery voltage (24 V) to bipolar DC bus voltage (up to +/- 420 V) 20 KHz switching frequency and sampling ratePID controller for voltage loop with Over current protection0.8 ms control loopPWM control signals are a pair of 180° out-of-phase square-wave pulses.PWM duty cycle cannot be greater than 50%Both PFC and Battery booster share common DC bus voltage measurement sensorOutput parameters

Output Voltage: 420 VmaxOutput Current: 500 mA max

SnubberSnubber

Page 20: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 20Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol Agenda

Introduction

Hardware Implementation

UPS Connectivity

Software Implementation

Competitive Differentiators

Page 21: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 21Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

On-line UPS Connectivity

•The UPS can be connected to an internal network or to Internet:

• It allows you to monitor the condition of your system remotely using a network

• It can send e-mails when there is a malfunction, so you can be sure you are the first to know when there is a problem

• A remote database can gather data from several UPS for an automatic monitoring system

• The service provider can perform maintenance of the system automatically, remotely and easily

Freescale On-line UPS Solution more than an UPS!!Why keep worrying about physically supervising your

System when you can do it REMOTELY?

Page 22: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 22Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

How does it work?

•UPS continuously updates its information (Voltage, Current, Battery charge…)

•If a request is received, it will respond according to the protocol

•If a fail is detected, it will send an email

•Information travels through Ethernet connection to the internal network or Internet

•The user or technical support center can request data, verify status in html pages and receive e-mails in case of failures.

•Servers can automatically receive and analyze this information.

Page 23: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 23Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

On-line UPS Connectivity Hardware

56F8346GS72116

TP-12

External MemoryInterface Bus

SPI

EMI

AT45DB321(32Mbit)

SMSC-LAN91C111

Ethernet ControllerSRAMHybrid

Controller

Serial Data Flash

TX/RXBuffer(8K)

EthernetMAC

PHYCORE

TO RJ45

Daughter Card

Control Card

Page 24: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 24Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

On-line UPS Connectivity Software

UPS uses a world-class, highly-reliable, highly-robust TCP/IP stack:

This provides key features to the UPS:

• Standard software, which can be adapted to the user needs

• Support for several application protocols like: TFTP, Telnet, HTTP, SMTP, POP3…

• Proven robustness

• More information on OpenTCP can be found at http://www.opentcp.org/

Page 25: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 25Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Implementation of OpenTCP for the DSP568F346

LAN91C111 Driver (Ethernet Controller Driver)

Ethernet Abstraction Layer

mBUF QUEUE

OpenTCP Stack

Application Level Processing

mBUFs Interface

Page 26: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 26Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Main application Loop

Interrupt Context

SocketState

Handling

HTTP Server Task

SMTP Client Task

Poll for Ethernet Frames

Packet Selector

Process ARP

Process IP

Process TCP, ICMP,

UDP

Send Response to

Ethernet Abstraction

Layer

Queue mBUF

Allocate mBUF and

copy Ethernet Frame

Ethernet RX/TX/Error

Interrupt Service Routine

Page 27: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 27Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Connectivity Performance

With minimum CPU time the Connectivity Software can:

•Respond ping requests

• Send HTML pages• Send e-mail messages

• And the possibilities are endless!!

Servers for several OUPS

Real-time graphs

Remote Support

Online firmwareUpdates

Page 28: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 28Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol Agenda

Introduction

Hardware Implementation

UPS Connectivity

Software Implementation

Competitive Differentiators

Page 29: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 29Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Software ImplementationSoftware FunctionsInitialization and Main loop

Five UPS event interrupts1. ADC End-of-Scan interrupt2. Inverter over current interrupt (PWM Fault0)3. Rectifier/PFC over current interrupt (PWM Fault1)4. Battery booster over current interrupt (PWM Fault2)5. 50 ms periodical interrupts 6. Three Communication & Input event interrupts7. SCI interrupt for PC master8. Two GPIO input interruptsSoftware written in CCritical algorithm written in Intrinsic Functions and PESLs and MicroPlug-in TCP/IP communication protocol

Page 30: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 30Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Software ImplementationSoftware Flowchart – Main

Enter Point

System ClockInitialization

CUP&MemoryInitialization

Variable Initialization-Connectivity-LCD display-PID parameters-Phase SensingAnd PLL-Low pass filter-Soft start-System Flags-Fault Flags

PeripheralInitialization

Manual Start ADC

3 Second Delay

-Check Jumpers setting-Measure AC main Frequency

Set System Operation Condition

TCP/IP StackInitialization

Network MessageProcessing if needed

Fault Signal?

Send Fault MessageYes

No

Display UPS Status

Convert to Floating-In/Out RMS Voltage-In/Out RMS Current-In/Out Power-Line Frequency

Call LCD Display

Page 31: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 31Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Software ImplementationSoftware Flowchart - Interrupts

PWM Fault0 INT

Event Counter plus 2

Event Counter> Setting

Disable PWM OutputsThen Set Fail Flag

Return

Yes

No

PWM Fault1 INT

Event Counter plus 2

Event Counter> Setting

Disable PWM OutputsThen Set Fail Flag

Return

Yes

No

PWM Fault2 INT

Event Counter plus 2

Event Counter> Setting

Disable PWM OutputsThen Set Fail Flag

Return

Yes

No

TimerC0 50ms INT

Counter Increment

Return

Calculate BatteryCapacitance

if needed

End of ADC Scan INT

Read ADC results

Return

UPS ControlAlgorithms

Page 32: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 32Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Online UPS System with TCP/IP Protocol Agenda

Introduction

Hardware Implementation

UPS Connectivity

Software Implementation

Competitive Differentiators

Page 33: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 33Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Technical Differences For Online UPS Applications Between DSP and MCU

56F83xx Hybrid Controller• Full digital control system• Digital controlled direct PFC

Predictable switching frequencyLess harmonics

• Digital controlled battery chargerprogrammable charge scheme which can contain customer IP for various type batteries and extend battery life.Advanced battery management

• Simple battery booster• RS232 , CANBus, TCP/IP protocol• input voltage : 120 V version or 220 V version• Universal input operating frequency 47.5 Hz –

63 Hz• Has bandwidth for future expansion

• 16-bit Microcontroller– Mixed digital + analog control– Analog controlled indirect PFC

• Unpredictable switching frequency• Rich harmonics

– Analog controlled battery charger• Constant voltage with current-limit charge

scheme which only fit for lead acid battery

• Battery management inapplicable– Simple battery booster– RS232 only– input voltage : 120 V version or 220 V version– Universal input operating frequency 45 Hz –

65 Hz– No bandwidth for future expansion

Page 34: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 34Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56800/E Hybrid Controller Roadmap56800/E Hybrid Controller RoadmapFeatures

56F807

56F82756F826

56F805

56F80256F803

56F801

0.18µ, 56800E120 MMACS

0.25µ, 56800E60 MMACS

0.25µ, 5680030/40 MMACS

56858

5685256853568545685556857

56F801A56F802A

2000 2001 2002 2003 2004 2005

56F832356F8322

0.25µ, 56800E40 MMACS

Execution

Proposal

Planning

Production56F835756F8356

56F834656F8345

0.18µ, 56800E120 MMACS

56F836656F8367

56F8365

56F831356F8312

56F833456F8333

56F834756F8355

56850 SeriesTelecom/voice processors, RAM-based, 120 MMACS,Up to 80KB PRAM, 81–144 pins

56F8300 Series Automotive & Industrial, Flash-based, 60 MMACS, 40-528KB PFlash, 48–160 pins

56F8100 Series Industrial, Flash-based, 40 MMACS, 40-528KB PFlash, 48–160 pins

56F820 Series General Purpose, Flash-based, 40 MMACS,64 -130KB PFlash, 100–128 pins

56F8000 SeriesAutomotive & Industrial, Flash-based, 32 MMACS,12-16KB PFlash,28-32 pins

56F800 Series Industrial controllers, Flash-based, 30-40 MMACS,20-128KB PFlash,32–160 pins

56F814656F8147

56F8145

56F815656F8157

56F8155

56F812256F8123

56F801456F801356F801256F8011

new

new

56F8400

Page 35: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 35Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Exceptional Performance

• Sustained 60 MHz/MIPs processing from Flash• Superior Code Density and Code Efficiency• MCU features:

Bit manipulation, 8/16/32bit native data types, fast interrupts enhance control code

• DSP features: Dual Harvard Architecture, zero overhead interruptible looping, and circular buffers enhance signal processing

• Superior 32-bit performance provided by the internal 32-bit-wide buses and registers while providing linear memory space of 4 MB program and 32MB data

• Feature rich peripherals such as 12-bit ADCs, 16-bit PWM, flash security, and multiple serial communication choices (SCI, SPI, CAN).

• Dedicated Interrupts for standard peripheral features increasingreal-time performance.

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

Page 36: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 36Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

Exceptional Reliability

Industry-Leading high volume, extended temperature, 3rd

generation flash. From the company that invented the technology

Production Qualified devices meeting the highest design and test specs ensuring proper operation in the harshest environments

Industry-Leading Safety FeaturesPWM – write protected registers, multiple fault inputsPower supervisor – POR, Low Voltage InterruptsOCCS – Loss of clock/lockTemperature sensorCOP – run-away code recoveryDecoder – zero speed watchdogFlash – protection and security

Page 37: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 37Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

56800E 56800E CoreCore

Data RAMData RAM

Package: From 48 up to 160 pin LQFP

Program Program FlashFlash

ProgramProgramRAMRAM

BootBootFlashFlash

PWMPWMModulesModules

withwithFault InputsFault Inputs

External External Memory Memory InterfaceInterface

Data FlashData Flash

Quad TimerQuad TimerModulesModules

QuadratureQuadratureDecodersDecoders

ADC ADC Module Module

GPIOsGPIOs

FlexCANFlexCAN

SerialSerialInterfacesInterfaces

Voltage Voltage RegulatorsRegulators

COPCOP

System ClockSystem ClockGeneratorGenerator

(OSC & PLL)(OSC & PLL)

JTAG/JTAG/EOnCEEOnCE

InterruptInterruptControllerController

PowerPowerSupervisorSupervisor

Temp SensorTemp SensorRelaxationRelaxationOscillatorOscillator

Exceptional Integration

• Large system cost savings from… Internal Program and Data FlashOn-board voltage regulationInternal oscillator, factory tuned, highly accurateEEPROM emulation using on-chip FLASHGlueless EMI and digital I/OIndependent, highly sophisticated peripherals

• Broad and expanding product portfolio ensures that you pay for only the features you need today while ensuring a path to your future

Page 38: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 38Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

The Complete Development Environment

CodeWarrior™ for 56800/ECodeWarrior for Motorola 56800/E is a windows based visual IDE that includes an optimizing C compiler, assembler and linker, project management system, editor and code navigation system, debugger, simulator, scripting, source control, and third party plug in interface.

Processor Expert™Processor Expert (PE) provides a Rapid Application Design (RAD) tool that combines easy-to-use component-based software application creation with an expert knowledge system. PE is fully integrated with the CodeWarrior for 56800/E.

Hardware ToolsThe 56800/E solutions are supported with a complete set of evaluation modules which supply all required items for rapid evaluation and software and hardware development. In addition several command converter options exist for customer target system debugger connection.

Page 39: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 39Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Processor Expert Overview

Processor Expert™Supports rapid application development

Enables component oriented programming

Provides expert advice if necessary

Delivers instant functionality of generated code

Provides tested ready-to-use code

How Features of PE are Achieved• Developed by experienced programmers of

embedded systems• Expert knowledge system is working on the

background of PE and checks all the settings• Provides context help and access to CPU/MCU

vendor documentation• All EB delivered by UNIS are tested according

to ISO testing procedures (UNIS is ISO certified company)

HW

Name Abstraction Layer

PESL EB

Application Layer

HW

HW Abstraction LayerEncapsulated Functionality

EB Hierarchy

PESL

Application Layer

User EB

EB

Key Abstraction Technologies

• PESL– Processor Expert System Library– Peripheral oriented

• EB – an abstraction provider– Embedded Beans– Functionality oriented– Real components for building of an application

Page 40: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 40Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Processor Expert Features

Available across 8/16-bit product linesRapid application development

Expert configuration systemInstant functionality of generated codeTwo Peripheral programming levels

• Embedded Beans• PESL

Application Specific Algorithm Libraries• All SDK algorithm libraries ported

Tested and ready-to-use code

Page 41: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 41Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Tools Library• Cycle Count, FIFO, FileIO,

Test

Memory Manager• Dynamic allocation

Application Specific Algorithm LibrariesModem Libraries• V.8bis, V.21, V.22bis,

V.42bis

Telephony Libraries• AEC, AGC, Caller ID,• CAS, CPT, CTG, DTMF• G165, G168, G711• G723, G726, G729

Security Libraries• RSA, DES, 3DES,

Math Libraries• Matrix, Fractional, Vector• Trigonometric

Feature Phone Library• CallerID type 1&2,

CallerID Parser, Generic Echo Cancellor Motor Control

• BLDC, ACIM, SR motor specific algorithms

• General purpose algorithms

DSP Library• FIR, IIR, FFT, Auto

Correlation, Bit Reversal

Page 42: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 42Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Conclusion

This reference design demonstrates a complete hardware and software solution for On-line UPS by using Freescale’s DSP which simplify circuitry with low component count.

56800/E Hybrid controllers are well suited to a broad range of Power Electronics application including UPS; Power supply; Inverter.

Very powerful CodeWarrior and Processor Expert development environment accelerates development cycle.

Page 43: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 43Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Back Up

Page 44: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 44Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Software ImplementationSoftware Flowchart – ADC Interrupt ( 1 )

End of ADC Scan INT

Read 8 Channel ADC Conversion Values

PFC Enabled?

Voltage Loop PID Calculation

Current Loop PID Calculation

Set PWM Duty Cycle

Yes

No

Inverter Enabled?

Get Desired Output Value From Lookup Table

Voltage Loop PID Calculation

Current Loop PID Calculation

Set PWM Duty Cycle

Yes

No Accumulate DC bus Voltage

Counter Increment

Counter = 16?

BoosterEnabled?

Voltage Loop PID Calculation

Set PWM Duty Cycle

No

No

Yes

Yes

Accumulate Battery Voltage & Current

Counter Increment

Counter = 16?

ChargerEnabled?

No

No

Yes

Voltage Loop PID Calculation

Current Loop PID Calculation

Set PWM Duty Cycle Next1

Yes

Page 45: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 45Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Next1

Auto Sensing Mode?

Detect Line InputAnd Set the flag

Yes

Use Line VoltageAs PLL reference

Use Sin Wave TableAs PLL reference

No

Calculate Phase andFrequency Difference

Positive Transitionof PLL Reference?

Execute PI Control for PLL

Yes

No

Calculate Index for lookup table

Software ImplementationSoftware Flowchart – ADC Interrupt ( 2 )

Input Line FrequencyMeasurement if needed

Execute Rectifier Soft Start Routine if needed

Calculate Input/OutputRMS Voltage;RMS Current;Power

Update Battery Capacitance

Fault Signal? Yes Return

Next2

Page 46: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 46Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

Next2

Line VoltageExists?

Calculate PLL Free-run Flag

Yes No

Software ImplementationSoftware Flowchart – ADC Interrupt ( 3 )

Check Output On/Off Switch

Set battery Status Flag

Enable RectifierEnable PFC after soft startDisable battery boosterDefine Battery Threshold

Disable Rectifier and PFCSet Soft Start FlagDisable Battery Charger

Line Voltage or Good Battery exist?

Enable Inverter if Switch-on and DCBus voltage exists

Only Good Battery exist?

Enable BatteryBooster

Yes

Yes

No

NoDisable both

Booster and Inverter

Any Fault?

Disable All Signals and Function blocksAnd Bypass UPS

ReturnYes

No

Page 47: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 47Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300 More MCU-like general

purpose register files that include four 36 bit Data Accumulators and three 16 bit data registers

Improved code density enabling more efficient use of memory and faster execution. Improved signal processing performance.

Complete MCU-like bitwise logic and bit manipulation instruction set

Improved code density and execution speed of control and protocol processing code

Supports two circular buffers with size up to 16K words or double words

Improved signal processing performance. The 56F8300 can provide greater than six times the signal processing power.

Supports native integer and fractional arithmetic with saturation logic

Improved and more flexible signal processing performance. The 56F8300 can provide greater than six times the signal processing power.

56F8300 Core Differentiators

Page 48: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 48Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300 Support for two zero

overhead do-loops. Improved signal processing performance and flexibility

True single cycle MAC and dual read capability provided by Dual Harvard Architecture.

Improved signal processing performance

Low latency for standard interrupts and support for two fast interrupts

Improved control code performance

Native 8-, 16-, 32-bit data types with bus width support

Improved code density and execution speed of control and protocol processing code and better support for 32 bit processing

True software stack with arbitrary depth and location.

Supports unlimited function calls and nested interrupts

56F8300 Core Differentiators

Page 49: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 49Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300 56F8300 family has very

diverse memory size offering both larger and smaller amount of total memory

Pay for just the memory you need now, while enabling further growth through a set of pin and feature compatible devices

Data flash page size at 256 words enables EEPROM emulation using Flash memory.

EEROM emulation using data Flash memory lowers systems cost by eliminating need for external EEPROM.

Family includes devices with highly accurate factory trimmed internal relaxation oscillator.

Lower system cost and higher reliability by eliminating components

Safety features such as loss of clock/lock detection, write once registers on critical PWM registers, and on chip temperature sensor

Improved and fault tolerant performance in safety critical applications. Will pass safety tests such as the cut crystal test.

56F8300 Chip Differentiators

Page 50: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 50Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300 56F8300 supports independent

peripherals, Quad timer, Quadrature Decoder, PWM module, which are used for embedded control

Customer gets more feature rich peripherals that can be used in a more flexible independent fashion enabling simpler, speedier, and verifiable system/software designs

On-chip voltage regulators, POR, and low voltage detection.

Customer gets simpler less expensive system by the elimination of external components.

Digital I/Os are 5V tolerant which gluelessly interface to the 5V system.

Simplify system by easing use of 5 volt devices and interfaces

ADC offers high performance and excellent resolution, 12 bits and 1.2 usec conversion rate, and has more features such as Signed or Unsigned result; Zero Crossing Detection, Over Limit Detection, Signal Ended or differential inputs, and self calibration.

Better ADC performance enabling more applications with simpler software

56F8300 Chip Differentiators

Page 51: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 51Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300

56F8300 is a Flash based device enabling true single chip operation

56F8300 does not require external memory storage to boot from saving on system cost.

56F8300 has Flash security enabling customers to disable external access to memory

56F8300 provides excellent protection of customer IP

56F8300 devices supporting external memory interface can access external memory at 60 Mhz

56F8300 external memory interface is very flexible enabling customers to simplify their design and operate at higher performance

Select 56F8300 devices can support two three phase motors

56F8300 offers lower system cost by requiring fewer devices

56F8300 Chip Differentiators

Page 52: Embedded Connectivity Summit 2004 - NXP SemiconductorsINVERTER + TRANSFORMER SWITCH ... •Three Phase UPS ... Single Phase On-Line UPS Using 56F8346 Demo Feature: • Single Phase

Embedded Connectivity Summit

Slide 52Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © Freescale Semiconductor, Inc. 2004

56F8300 Benefit of 56F8300 Flash has excellent endurance

of 10,000 worst case and 100,000 typical erase/program cycles

Much greater flexibility using the 56F8300 flash

56F8300 devices provide data flash enabling dual parallel reads of static tables and dynamic variables

Increased flexibility for software and signal processing performance

Flash doesn’t require any special voltages and is fully in-circuit in-field programmable

Much greater flexibility using the 56F8300 flash enabling in field and less costly programming

Boot flash enables custom loaders and field upgrade capability. It can also be used as general program flash

Increased flexibility and safety for in field program upgrades and in circuit factory programming

56F8300 Chip Differentiators