element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs GaN Half-Bridge Power Stage: TI LMG5200 - Part 3: Control Deadband with Hercules LaunchPad
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 29 Sep 2015 7:43 PM Date Created
  • Views 1258 views
  • Likes 5 likes
  • Comments 20 comments
  • hercules_launchpad
  • lmg5200
  • dead_time
  • half_bridge
  • texas_instruments
  • gan
  • half_bridge_drivers
  • fet
Related
Recommended

GaN Half-Bridge Power Stage: TI LMG5200 - Part 3: Control Deadband with Hercules LaunchPad

Jan Cumps
Jan Cumps
29 Sep 2015

It doesn't have to be silicon all the time. I have a Gallium-nitride device here at the Cumps lab that I'm going to try out. In some high voltage, high power designs, GaN FETs have advantages over Si. On the other hand they are also more difficult to drive.

 

The chip that I have contains a built-in smart GaN FET driver. That takes away the complexities of driving the power stage correctly. We're covering fairly new technology here. The documents are still marked technology preview. I received them from TI after attending a GaN seminar and answering right on the quiz.

 

In this post I'm building a PWM deadband generator with a Hercules LaunchPad.

 


image

 

PWM with Deadband

To drive our GaN half-bridge, we need two complementary PWM signals.One to drive the upper FET, the other to drive the lower FET.

image

When one is high, the other has to be low. The worst thing that can happen to a half-bridge is that both FETs are conducting. So we have almost covered that.

Almost, because we need more. For a tiny amount of time during switching, we have to take care that none of the FETs are on - the Dead Time or Deadband.

For an explanation of Dead Time, check the previous article in this series.

 

My goal in today's blog is to create that signal with a Hercules LaunchPad PWM module. This is the signal we're after - the hatched areas indicate where both signals (and both FETs) should be off:

image

Each PWM module of the Hercules controller has a pair of outputs (A and B) that are tied together. They act together, and can be used to generate tightly coupled signals.

By default, the B signal is the inverse of A. When A is high, B is low and vice versa. But you can change that.

One of the things you can change is introduce a delay in the rising edge and the falling edge. That's what we're looking after.

 

Both signals should have a delay on their rising edge, so that that edge only happens at a given time after the counterpart's falling edge.

If  we manage to do that (and we will image), we have what we need. A set of signals that are each other's compliment, but have a gap between one switching off and its partner switching on.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

Two Lines of Code

 

We configuring the PWM module with HALCoGen, the visual setup application.

Our first task is to enable drivers, pin multiplex and timer settings.

 

Driver:

image

Mux:

image

 

Additional clock Mux config

 

image

 

In the PWM tab, we enable the first PWM pair, and set the delays.

image

Setting the delays needs some more explanation. We have access to two delays, a rising edge and a falling edge delay.

And each of them can be used for one of the two signals, but not both.

So we can't just define a rising edge delay for both channels.

 

Here's how we get around that situation:

- For the A signal, all is simple, we define the rising edge delay, and route the A signal through that:

image

 

 

- For signal B, it's a bit more tricky. Because we've already used the Rising Edge Delay for signal A, it isn't available for B.

But we still have the Falling Edge Delay available. And we can invert our signal at the begin and the end of its route.

So if we invert signal B by selecting High Polarity (and it becomes identical to signal A at input), then enable Falling Edge Delay, and invert the signal again at the output (Invert Polarity checkbox),

we have sneakingly achieved what we wanted. The Falling Edge becomes the Rising Edge after the last inversion, and we now have two opposite signals, each with their Rising Edge delayed. Win!

image

 

The Result

 

On the oscilloscope, you can see the output of both PWMs. I've added a math A+B signal to show that there's a time where both signals are low. The Deadband.

 

image

Fig. 3: Bart Simpson looking over the wall

 

In this article, I've exaggerated the times to make everything more visible. To drive the LMG5200, we'd choose delays around 6 or 7 ns.

 

All parameters are runtime configurable. So we can change PWM frequency, duty cycle and delays from firmware. Each can be changed without impacting the other parameters. Full control, anyone?

And as promised, the 2 lines of code needed to make this work:

 

#include "HL_etpwm.h"
     etpwmInit();
     

 

Related Posts
Part 1: Preview
Part 2: Dead Time Capture
Part 3: Control Deadband with Hercules LaunchPad

Hercules LaunchPad and GaN FETs: Control Big Power with a Flimsy Mouse Scroll Wheel

on TI E2E community: driving GaN with a simple PWM signal
  • Sign in to reply

Top Comments

  • DAB
    DAB over 7 years ago +1
    Nice update. You have to be very careful in tuning devices like this. If you get some noise on the triggers, you might get that condition where both drivers come on. Very interesting in how they give you…
  • DAB
    DAB over 7 years ago in reply to Jan Cumps +1
    Is the ringing from the long test leads or are they artifacts of the circuit? DAB
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to DAB +1
    Yes, I'm not doing anything about the ringing. It's a by-product of a prototype setup with not-my-best-effort-probing. No decent looking scope trace to be expected from what you see below with patch wires…
  • DAB
    DAB over 7 years ago in reply to Jan Cumps

    I have it on my calendar, but that is an awkward time for me.

     

    Hopefully I can get to it in time to hear your pitch.

     

    Good luck,

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 7 years ago

    In two days, I'm going to talk about this project on TI's community day.

     

     

     

    The link below has the times and the Web Conference link. You're invited.

     

    I'm going to talk on the TI Community Day March 22nd

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 7 years ago

    Great post, it made a lot more sense when I realised you were driving a lamp not a motor!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to DAB

    Especially for you image a capture with less ringing.

    image

    I've just finished the firmware for that TI blog post. It 'll control the GaN device via two input methods:
    the mouse scroll wheel and/or (for the less adventurous readers that don't want to kill a mouse for science) the two user buttons of the LaunchPad.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to DAB

    Thank You!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube