Code Generation for PCMC of a Phase Shift Full Bridge with ...

66
Power Electronics Solution Provider Power Electronics Design, Simulation, and Implementation Albert Dunford, Powersim Inc. Nov 19, 2020 Code Generation for PCMC of a Phase Shift Full Bridge with active secondary

Transcript of Code Generation for PCMC of a Phase Shift Full Bridge with ...

Page 1: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

Power Electronics Design, Simulation, and Implementation

Albert Dunford, Powersim Inc. Nov 19, 2020

Code Generation for PCMC of a PhaseShift Full Bridge with active secondary

Page 2: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

Design, Simulate, Implement

PSIM - SimulationGeneral power electronics and motor drives

PE-Expert4 digital control development system

DSIM - SimulationIncredibly fast large system and converter simulation

Control loop design

Page 3: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

Powersim – Global Distributors

Powersim NA & others

Powersys Europe & India

Myway – Japan

Innodrive – China

Hankook Powersim – S. Korea

Solore – Taiwan

PowerSmartCtrl - Spain

Page 4: Code Generation for PCMC of a Phase Shift Full Bridge with ...

About PSIM

Device/Circuit Simulation

System/Control Simulation

• Fast• Easy to use• Affordable• Expandable

SPICEMatlab/Simulink

• First commercial release 25 years ago

• Developed specifically for power electronics

and motor drive applications

• Widely regarded for:

• Simulation speed

• Result accuracy

• Robustness

Complete tool for power converter and motor drive simulation - from device to system level

Page 5: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PSIM Eco-System

Power Electronics

Motor DrivesControl

Digital Control Motor Drive

LossCalculation

Thermal

Auto CodeGeneration

SimCoder

SIMULATE IMPLEMENT

F2837xF28004xF2833x

F2806xF2803xF2802x

Renewable Energy

DESIGN

Finite Element Analysis

Power Converter & Control Loop Design

MCU Hardware

Typhoon HIL

FPGA Hardware

Design Suites

• Motor Control Design Suite• HEV Design Suite

Matlab/Simulink LTspice JMAG

SimCoupler

Target

TI MCUPIL

Device

SPICE

PE-Expert4

MagCoupler/MagCoupler-RT

ModelSim

ModCoupler

HIL

Page 6: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Contents

• PSFB example sim and code gen overview

• Overview of code generation

• Overview of PSIM

Page 7: Code Generation for PCMC of a Phase Shift Full Bridge with ...

DCDC 300W 12V Mode2 level 3

PSIM has examples for PSFB with three modes:

- Passive secondary

- Active secondary with overlapping conduction

- Active secondary with “pulse conduction”

These are verified to work with this TI reference design:https://www.ti.com/tool/TIDM-BIDIR-400-12

Page 8: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Basic PWM control

PWM timer defines which GPIO you will use

Other settings are straight forward

Carrier wave type is the tricky one- Triangular (start high or low)- Sawtooth (start high or low)

Start low means ‘B’ is on firstStart high means ‘A’ is on first

Page 9: Code Generation for PCMC of a Phase Shift Full Bridge with ...

More Advanced – Output mode

Options to:- Set/Reset/Toggle at peak or valley of the

carrier wave (Sawtooth or Triangle)- Set high or low based on input to the A or

B and the carrier wave definition- Different settings for the A or B output- Or don’t use this setting

Page 10: Code Generation for PCMC of a Phase Shift Full Bridge with ...

More Advanced – Trip Source

Options to:- Clear/Set/Toggle- On ‘Up’ and/or ‘Down’ of carrier

A ‘Trip Source’ going high is used as the “trigger”

Sawtooth – no Down

Triangle – 50% up 50% down

One can phase shift!

UP

Page 11: Code Generation for PCMC of a Phase Shift Full Bridge with ...

More Advanced – Trip Source

T1 Source and T2 Source ca be any of these

How these “signals” get formed is the interesting bit

Page 12: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PWM Tripzone element – Trip source definition

These are the same signals from the previous slide

One shot means it only runs onceCycle by Cycle is every PWM period

Page 13: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PWM Tripzone element – The DCA event

The DCAH and the DCAL sources can be a wide range of Tripzone signals – these signals will be defined by the X-Bar

You can pick single signalsOr select logical combinations to from the DCAH or DCL source

Page 14: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PWM Tripzone element – The DCA event

DCAEVT1 – one shotDCAEVT2 – cycle by cycle

Are further defined by DCAH or DCAL going:- High- Low- Source1 low & Source 2

high

We do not have arbitrary logic, it can only be ‘1 low’ & ‘2 high’If you need something else you need to invert a signal somewhere else (lots of places to do this)

Page 15: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PWM Tripzone element – Basic Summary

These are used in the PWM elementTo set/reset/toggle the PWM output on the Up or down of the carrierThese settings are in the PWM generator element

The DCAEVT1 or DCAEVT2, etc. signals are defined by the TZ(1) etc. signals going high or low as defined by the logic used.

Page 16: Code Generation for PCMC of a Phase Shift Full Bridge with ...

The X-BAR - Defining TZ(1) et al.

TZ1, TZ2, TZ3 can be defined as the output from a GPIO

If a GPIO is a PWM output then that waveform will be the TZ1 signal

This is an internal connection you do not need to wire something up externally

We are not going to cover xint, cap settings.

Page 17: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PWM X-Bar Element – Define Trip4, 5, 7 et al.

Trip 4, 5, 7, 8, 9, 10, 11, 12 can be defined from a variety of other signals

CMPSS – this is the onboard analog comparator, there are 8 of them. Use this to do Peak current control

Each “MUX” option has different signal origin options.

Page 18: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Comparator Usage to generate a trip signal

A and B outputs can have analog signals mapped

Pins are linked to the A/B and the comparator to be used

Can sync to a PWM timer (needed for PCMC)

The DAC can be linked to the B input, and a slope sync’d with the PWM timer can be injected. Use this for peak current control!!

Page 19: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Top level settings for PCMC – analog trigger of PWM

Iref is an internal variable -> DAC injects slope- > links to Comparator 1 -> Compared with current feedback -> defines trip 4 -> used to make DCAEVT2 when T4 goes high -> PWM turns on a start of sawtooth and switches off when DCAEVT2 goes high

The comparator must sync to the PWM timer and the X-Bar, Tripzone and PWM blocks must all be on the same PWM timer

Page 20: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Top level setup to trigger from another PWM output

Select the GPIO 0 & 1 options to form TZ1 and TZ2 from the X-Bar drop downs (PSIM wire connection is user FYI only.

Use the PWM tripzone to do something with TZ1 & 2

Use the PWM to do something with the DCAEVT2 signal

The PWM Tripzone element must use the same PWM timer as the PWM elementOnly 1 X-Bar per project, but the signals can be used by other PWMs

Page 21: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Hardware and Sim Comparison - Test Hardware

• F28379D controlCARD

• Typhoon HIL 604 (digital oscilloscope function)• HIL System has a bandwidth limitation, switching speeds reduced to 10KHz to

confirm gating logic

• PicoScope 2- channel Oscilloscope• After overall gating logic confirmed at low speed, Scope was used with

100kHz switching to confirm stability of pulses

Page 22: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Phase Shift Full bridge with Acitve Secondary

QA, QB, QC, QD form the full bridge

QE & QF form the active secondary

Page 23: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Reverse Direction setup for PSFB with active secondary

PWM 5A and PWM 6A generate QE and QF which are then used by the X-Bar as TZ1 and TZ2• Run at fsw frequency• Sawtooth start high – means that ‘A’ channel is “ON” with input duty.• PWM6A is phase shifted by 180 degree (-180 OK)• Duty cycle provided by external signal

Page 24: Code Generation for PCMC of a Phase Shift Full Bridge with ...

EPWM Settings QA & QD

QA & QD should form:- QE at duty <0.5- !QF at duty > 0.5

PWM Tripzone setting block is used to generate trip events from QE & QF to control QA & QD

Page 25: Code Generation for PCMC of a Phase Shift Full Bridge with ...

DCA and DCB Event usage for QA & QD -Analysis

DCA_EVENT Source 1 low (QF) & Source 2 High QE- SET on UP portion of tri

DCB_EVENT Source 1 low (QE)- CLEAR on UP portion of tri

Reset at peak (tri)- Not needed signal always low

DCA_EVENT Source 1 low (QF) & Source 2 High QE- SET on UP portion of tri

DCB_EVENT Source 1 low (QE)- CLEAR on UP portion of tri- Not used occurs on “down”

Reset at peak (tri)- QF Always goes high at tri Peak, due to 180 phase

shift from QE

Page 26: Code Generation for PCMC of a Phase Shift Full Bridge with ...

EPWM Settings QB & QC

QB & QC should form:- QF at duty <0.5- !QE at duty > 0.5

PWM Tripzone setting block is used to generate trip events from QE & QF to control QB & QC

Page 27: Code Generation for PCMC of a Phase Shift Full Bridge with ...

DCA and DCB Event usage for QB & QC -Analysis

DCA_EVENT Source 1 low (QE) & Source 2 High QF- SET on DOWN portion of tri

DCB_EVENT Source 1 low (QF)- CLEAR on DOWN portion of tri

Reset at Valley (tri)- Not needed signal always low

DCA_EVENT Source 1 low (QE) & Source 2 High QF- SET on DOWN portion of tri

DCB_EVENT Source 1 low (QF)- CLEAR on DOWN portion of tri- Occurs on UP

Reset at Valley (tri)- QE always turns on at start of period

Page 28: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Logic Confirmation – All waveforms match

HIL hardware waveforms PSIM simulation waveforms

High duty

Low duty

Page 29: Code Generation for PCMC of a Phase Shift Full Bridge with ...

29

C2000™ Real-Time micro-controllers OverviewScalable, ultra-low latency, real-time controller platform designed for efficiency in power electronics,

such as high power density, high switching frequencies, GaN and SiC technologies

C2000 Real-Time MCUs

Highly accurate sensing

• 12-/16-bit ADCs, up to 24 channels

• Full analog comparators with built in DACs

• Quadrature Encoders and Capture Logic

Sense

Control

Highly flexible, high-resolution PWMs:

• Up to 32 outputs

• Tightly coupled with sensing domain for fast

response time

• Buffered Output DACs

Innovative features:

Configurable Logic Block for peripheral

customization, Fast Serial Interface for high-

speed communication, ERAD for enhanced

diagnostics and profiling

Expertise and support:

Software libraries, reference designs, and

functional safety-compliant devices.

Process

High performance processing

Floating-point DSP C28x™ core + parallel

multi-core architecture + instructions set

optimized for control math, Up to 925 MIPs

CAN, CAN-FD, LIN, FSI, UART, SPI, I2C,

PMBus, USB, 10/100 Ethernet MAC,

EtherCAT®, EMIFInterface

Up to 1.5 MB Flash,

256 kB RAM (ECC protected)

QFN, QFP, BGA

packages

-40 to 125C

temperature range

1.2-V core, 3.3-V I/O

design

Q100 automotive

qualified options

Millions of units shipped for industrial and automotive applications with compatible software

25 years expertise in

real-time control systems

Page 30: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Where is C2000 Real-time Control?

DC/DC

Converters

Renewable Energy Motor Control

Automotive & EV/HEV

Energy Delivery

Digital PowerIndustrial Drives

Motor Control

Solar Power

Telecom / Server

AC/DC Rectifiers

Electric Power

Steering

24 GHz Radar

Collision Avoidance

E-bikeCharging Infrastructure

EV Traction

Appliance

Drones

Pumps

On-Board Charging

(OBC)

EV-HEV

Auxiliary Motors

Servo Drive

Robotics AutomationAC Drives

Wind Power

Uninterruptable

Power Supplies

30

DC-DCSensors

Page 31: Code Generation for PCMC of a Phase Shift Full Bridge with ...

31

Type Topology TI Reference Design # Power Rating Input Output EfficiencySupported C2000

Products

DC/AC 1Ph DC/AC TIDM-HV-1PH-DCAC 600W 400VDC110Vac/220Vac

98%F28004xF2837x

AC/DC2PH Interleaved PFC w/

Power MeteringTIDM-2PHILPFC 700W

110Vac/220Vac

400VDC 97% F2803x

AC/DCValley Switching Boost

PFC TIDM-1022 750W

110Vac/220Vac

400VDC 92% F28004x

AC/DCCCM totem pole

bridgeless PFC and half-bridge LLC

TIDA-010062 1kW110Vac/220Vac

12VDC 99% F28004x

AC/DCTotem-Pole

CrM PFCTIDA-00961 1.6kW 85-265Vac 400VDC 99% F28004x

AC/DCVienna Rectifier-based

3Ph PFC TIDM-1000 2.4kW

110Vac/220Vac

600VDC/ 700VDC 98%F2837x

F28004xF2838x

Bi-directionalAC/DCDC/AC

Bi-Directional 3Ph Interleaved Totem-Pole

CCM PFC/InverterTIDM-02008 3.3kW

110Vac/220Vac

380VDC98%

F28004xF28307x

380VDC 120Vac/ 220Vac

AC/DC3Ph Interleaved Totem-

Pole CCM PFC

TIDA-01604 6.6kW110Vac/220Vac

400VDC 98% F28004x

Bi-directionalAC/DCDC/AC

3Ph PFC/Inverter Full-bridge

TIDA-01606/TIDA-010039 10kW800VDC/ 1000VDC 400VAC

98% F2837x 400VAC

800VDC/ 1000VDC

AC/DC, DC/AC, Bi-directional solutions sorted by power rating www.ti.com/tool/c2000ware-digitalpower-sdk

Page 32: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Type Topology TI Reference Design # Power Rating Input Output EfficiencySupported C2000

Products

DC/DCPeak Current Mode

Control PSFB ConverterTIDM-02000* 300W 200-400VDC 12VDC 92% F28004x

DC/DC 2Ph Interleaved LLC TIDM-1001 500W 370-410VDC 12VDC 95%F2837x

F28002x*

DC/DC2PH Interleaved Boost

Converter with isolationTIDM-SOLAR-DCDC 500W 200-300VDC 400VDC 94% F2803x

DC/DC Phase Shifted Full Bridge TIDM-PSFB-DCDC 600W 380-400VDC 12VDC 95% F2802x

DC/DCBi-directional Full-Bridge

Boost ConverterTIDA-00951 2kW 48VDC 400VDC 94% F2803x

DC/DCCLLC Resonant Dual Active Bridge (DAB)

TIDM-02002 6.6kW 400-600VDC 280-450VDC 98% F28004x

DC/DC Dual Active Bridge (DAB) TIDM-010054 10kW 700-800VDC 380-500VDC 98% F28004x

DC/ACDC/DC

EV Traction Inverter + DC/DC

TIDM-02009* 10kW 400VDC 12VDC F2838x

DC/DC, Bi-directional solutions sorted by power rating

*coming soon

Page 33: Code Generation for PCMC of a Phase Shift Full Bridge with ...

1-Phase AC/DC 3-Phase AC/DC High Power

DC/DC

400V/12V DC/DC

Vac 120Vrms/230Vrms

50/60Hz

Vbus 400V

Si

Si

Vbatt 250-400V

Si

Si

Si

Si Si Si

Vbus 600-1000V

Vac VL-N 120Vrms/230Vrms

50/60Hz

TIDM-1007 (F28004x C28x and CLA)

TIDM-01002 (F28004x uses CLA)

TIDA-01604 (F28004x C28x and CLA)

TIDA-00961 (F28004x)

TIDM-1000

(F28004x C28x and CLA,

F2837x C28x and CLA)

TIDA-01606/TIDA-010039*

(F2837x)

TIDM-02002*

(F28004x C28x and CLA)

TIDA-010054* (F28004x)

TIDM-BIDIR-400-12, TIDM-

02000* (F28004x)

TIDM-1001 (F2837x)

33

Industry-Leading Systems Coverage for EV Power Train

Page 34: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Three-phase Motor Control Solutions

34

Controller EVM Inverter EVM C2000 Series Solution Details

LAUNCHXL-F280049C BOOSTXL-DRV8320RS F28004x InstaSPIN-FOC

C28x CPU

Sensorless

Torque/Velocity Control

Low-side shunts Synchronous Motors (PMSM/BLDC/IPM)

TMDSCNCD280049C +

TMDSHVMTRINSPIN F28004x InstaSPIN-FOC

C28x CPU

TMDSADAP180TO100 Sensorless

Torque/Velocity Control

Low-side shunts

Synchronous Motors (PMSM/BLDC/IPM)

TMDSCNCD280025C TMDXIDDK379D F28002x DesignDRIVE

C28x CPU

Incremental encoder

Position/Velocity Control

In-line current sense (LEM)

Synchronous Motors

LAUNCHXL-F280049C BOOSTXL-3PHGANINV F28004x DesignDRIVE

C28x CPU + CLA

Incremental Encoder

Position/Velocity Control w/ FCL source and Observer

In-line current sense (INA)

Dual Synchronous Motors (PMSM/BLDC/IPM)

TMDSCNCD280049C TMDXIDDK379D F28004x DesignDRIVE

C28x CPU + CLA

Incremental and Tamagawa T-format absolute encoder options

Position/Velocity Control

In-line current sense (LEM)

Synchronous Motors

Page 35: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Three-phase Motor Control Solutions

35

Controller EVM Inverter EVM C2000 Series Solution Details

LAUNCHXL-F28379D BOOSTXL-3PHGANINV F2837x DesignDRIVE

C28x CPU + CLA

Incremental Encoder

Position/Velocity Control w/ FCL source and Observer

In-line current sense (INA)

Dual Synchronous Motors (PMSM/BLDC/IPM)

TMDSCNCD28379D TMDXIDDK379D F2837x DesignDRIVE

C28x CPU + CLA

Incremental and Tamagawa T-format absolute encoder options

Position/Velocity Control

In-line current sense (LEM) and SDFM current sense options

Synchronous Motors (PMSM/BLDC/IPM)

TMDSCNCD28388D TMDXIDDK379D F2838x DesignDRIVE

C28x CPU + CLA

Incremental and Tamagawa T-format absolute encoder options

Position/velocity Control

In-line current sense (LEM) and SDFM current sense options

Synchronous motors (PMSM/BLDC/IPM)

EtherCAT connectivity

TIDM-02006 TMDXIDDK379D F2838x

DesignDRIVE

EtherCAT High-Voltage Servo

TMDSCNCD28388D BOOSTXL-3PHGANINV F28004x Multi-axis FSI connected

LAUNCHXL-F280049C Low-Voltage Servos

CLB Tool based Absolute Encoder Hardware independent Multiple DesignDRIVE

Tamagawa T-Format absolute Encoder

PTO PulseGen

PTO QepDiv

Page 36: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Supported TI C2000 MCUs – PSIM Code Gen

Processor Family Supported Features of Interest

F2837x Delfino X-Bar, comparator, and other advanced ePWM features

F28004x Piccolo X-Bar, comparator, Programmable Gain Amplifier (PGA)and other advanced ePWMfeatures

F2806x Piccolo InstaSPIN, Comparator, Slope compensation for PCMC supported

F2803x Piccolo Comparator Slope compensation for PCMC supported

F2802x Piccolo Comparator Slope compensation for PCMC supported

F2833x Delfino Regular ePWM features only

ADC, CAN, SPI, SCI, PWM trip zones, Encoder, Up Down Counter, Capture supported for all processors

Page 37: Code Generation for PCMC of a Phase Shift Full Bridge with ...

How Code is Generated

• The Control bit (green traces) is converted into code

• The ADC and PWM elements define the pins and register setup for a particular “feature”

• The algorithm is converted to C code

• Interrupt routines are generated based on the digital execution rate

Page 38: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Variables are Linked to Schematic Elements

Variables in the code are derived from element names in PSIM

Page 39: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Interrupt Routine Generation

In this example there are 4 code execution rates: 20k, 2k, 200, 20No PWMs are used, so only 2 interrupts are timer basedThere are only 2 timers!The longer interrupts are function based

Page 40: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Peripheral Setup is “Drop Down Menu”

• The supported settings for a particular hardware feature are available via drop down menu

• Trip zone setup, Trip actions, ADC triggering, HRPWM, etc.

• These features are device specific.

• Some features are not supported by code gen (X-bar only supported on F2837x, F28004x)

Page 41: Code Generation for PCMC of a Phase Shift Full Bridge with ...

C code injection – with C block

• Use the C block

• Code can be inserted into a:• Interrupt routine

• Initialization function

• Variable definition

• Macro

• From external C files

Page 42: Code Generation for PCMC of a Phase Shift Full Bridge with ...

What is Generated?

• A full CCS (Code Composer Studio) project is generated

• All necessary header files for TI DMC library elements are included

• Simply import the *.pjt file

Page 43: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PSFB PWM GenerationPhase Shift Full bridge with active secondary and Peak Current Control requires the use of the:

- X Bar

- Comparator triggers

- DAC with slope compensation

- Event triggering from PMWs that trigger other PWMs

The next 20 slides go into detail about how the settings are chosen to accomplish this in the example simulations in PSIM examples

Page 44: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PSIM User Feedback

• Easy to use

• Robust

• Stable

• Lots of tutorial resources

• Helpful support staff

• Affordable

• Accurate

Page 45: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PSIM Capabilities

• Analog control

• Digital control (z-domain)

• Ideal & non-ideal switches

• Thermal - switching and conduction loss

• Motor and mechanical models• Advanced non-linear and links to

FEA tool (JMAG)

• Runtime C-compiler & DLL link

• Co-sim with Simulink

• Link to LTspice

• Embedded code generation • TI C2000 or generic c-code

• Co-simulate with modelsim• Verilog and VHDL code verification

• Switch mode AC sweeps

• Scripting for simulation automation

Page 46: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Switchmode AC Sweep

• PSIM runs time domain simulations with target perturbation frequencies

• Almost “any” topology can be swept

• No average models – no extra math

• Similar method to benchtop equipment

Page 47: Code Generation for PCMC of a Phase Shift Full Bridge with ...

PSIM Switch ModelsModel type Applications

Ideal Switch (PSIM) – behavioral simulations 80-90% of all simulations

- Frequency sweeps- Control design- Digital control- Component sizing (L & C)- System level simulation

Level 2 Switch (PSIM) - Switching transient analysis- Gate drive- Digital control- Systems level with “details”

Thermal Switch (PSIM) - Loss estimation (switching & conduction)- Junction temperature estimation- Heatsink requirements

SPICE - Manufactures SPICE model- Gate drive- Switching transient analysis

Page 48: Code Generation for PCMC of a Phase Shift Full Bridge with ...

The Problem With a “Real Switch” Sim

• Simulation of Wolfspeed -C2M0280120D1 - PSIM

• On->Off Transition ~16ns• Accurate resolution takes 1ns or

smaller timestep

• Converter steady state is likely several hundred switching cycles

• Will cause a very long simulation time.

Page 49: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Thermal Model – Ideal Switch

• Thermal model use an ideal switch – drastically reduces the computation points

• 200kHz switching; 60 cycles to steady state – SiC from last slide 15ns transition

Level 2 - “Real Switch” Thermal (ideal)

1ns Timestep 50 pts/cycle = 1/(200k*50) = 100ns timestep

60 cycles @ 200kHz = 300us1ns timestep = 300k calculations

60 cycles @ 200kHz = 300us100ns timestep = 3k calculations

Page 50: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Synchronous Buck – GaN Systems App noteData source “A Performance Comparison of GaN E-HEMTs vs SiC MSOFET in Power Switching Applications” – J. Xu, D. Chen, L. Spaziani

PSIM schematic- Fsw = 200KHz- 400V->200V- Load varied- Tambient 25 oC

Page 51: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Results Comparison

P Load = 900W Tj Ploss Rtheta

C3M0065090J

PSIM Thermal 124 oC 12.9W (12.1W sw) 7.7 oC/W

Hardware 116 oC 11.78W

GS66508T

PSIM Thermal 60.6 oC 7.13W (6.4W sw) 5 oC/W

Hardware 57 oC 6.4W

Page 52: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Heatsink Thermal Parameters

• We need thermal resistance with airflow, coolant, natural convection, etc.

• Mass and material composition

Page 53: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Heatsink Thermal Equivalent

Resistors – thermal impedance 0C/W

Capacitors – Thermal mass J/(0C*Kg)

Page 54: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Data Extraction

• R Theta comes from the figure or use the 100 CFM value

• Thermal mass is Mass (Kg)* Heat capacity• Careful as specific heat units can

vary kJ/(Kg*0C), J/(Kg*0C), J/(mol*0C) it is very easy to be off by a few orders of magnitude.

• 2.019 * 910 (Al) = 1837 <- heavy heatsinks will have very large capacities.

Page 55: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Thermal Models

• MOSFET (Eon) is for SiC & GaNallows for 3rd quadrant curve definition

• Switching and conduction losses are internally calculated

• Causer or Foster Tj -> case thermal network is internally defined

Page 56: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Device Database – Datasheet Information

• Use the import tool to easily import datasheet figures• Curves for different temps

• Conduction loss

• Switching loss

• Body diode

• Define Cauer/Foster thermal network

Page 57: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Thermal Inductor Model

• Core and winding losses dependant on:• Core material

• Mechanical winding characteristics

• Winding material – wire, strip, litz

• Winding distribution

• Core shape

• Air gap

• Provides core and winding loss

Page 58: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Inductor Loss Calculation: PFC Example

58

Page 59: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Inductor Loss Calculation: PFC Example

59

Comparing 3 designs:

Design 1:- L = 1.05 mH- D_core_winding = 1.15 mm

Design 2:- L = 1.05 mH- D_core_winding = 3.15 mm

Design 3:- L = 0.9 mH- D_core_winding = 1.15 mm

P_core = 0.1 WP_winding = 8.63 W

P_core = 0.1 WP_winding = 4.25 W

P_core = 0.11 WP_winding = 8.5 W

Page 60: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Capabilities of DSIM

• The DSIM solver is revolutionary – it is 10x – 1000x faster than any other simulator on the market

• Simulate simple inverters or microgrids with thousands of active switches.

• Simulate a realistic switch transition with minimal impact on simulation speed is unique.

• Simulations speeds are 5-6x slower opposed an exponential increase with other tools

• DSIM is extremely robust with virtually no convergence problem.

t/s

Ice/A Vce/V Ice/A Vce/V

t/s t/s t/s

DSIM

Page 61: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

The PE-Expert4 – A Class Above

- An extremely powerful digital control platform based on high-performance TI DSP C6657

- It supports multiple interface boards for PWM, ADC, Digital Input/Output, and FPGA

- It can provide up to:

- 144 PWM outputs (400kHz)

- 60 ADC inputs

- 60 DAC outputs

- 80 digital inputs

- 80 digital outputs

- 10 up/down counters

- 10 encoder/resolver inputs

Page 62: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution ProviderWhy PE-Expert4?

Large amount of PWM and ADC channels available

Up to 144 PWM outputs and 60 ADC inputs, ideally suited for large power converter systems

High performance

TI C6657 DSP @ 1.25GHz, 10x faster C2000 MCU (F28335, etc)

FPGA gating generation, operate up to 200~500kHz switching frequency.

Ideal for SiC & GaN.

Seamless integration with PSIM for rapid implementationAfter simulation in PSIM, one can generate ready-to-run code for PE-Expert4 automatically. There is no need to write a single line of DSP and FPGA code.

Page 63: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

SmartCtrl for Controller Design

63

How do we designthe controller?

Page 64: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

SmartCtrl Features – Stability information

• Interactively move the Phase margin Vs Cross frequency operating point

• Watch Bode, Step response, Polar plots update with new operating point

Page 65: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

SmartCtrl Features – Stability information

• Bode Plots

• Step Response

• Polar Plot

• Output Voltage Ripple

• Inductor current

• Carrier and Modulation

waveforms

Page 66: Code Generation for PCMC of a Phase Shift Full Bridge with ...

Power Electronics Solution Provider

SmartCtrl for Digital Controller Design

With digital delay

Without digital delay

Delay due to digital control can be defined.