• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » Using TMS320F28035 to generate half bridge switching pattern
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Using TMS320F28035 to generate half bridge switching pattern

    Using TMS320F28035 to generate half bridge switching pattern

    This question is answered
    Kelvin Leung
    Posted by Kelvin Leung
    on Apr 26 2012 21:43 PM
    Prodigy20 points

    I am using TMS320F28035 to generate a half bridge switching pattern.  However, the method in epwm document spruge9e seems to have problem.  Can anyone tell me what is the most efficient way to generate this pattern?  Fig. 61 in that document seems not correct.

    I mail this question to TI but got no feedback.  Did they make a mistake in this section? 

     

    Half Bridge
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Kelvin Leung
      Posted by Kelvin Leung
      on Apr 27 2012 01:59 AM
      Prodigy20 points

      I can generate a proper half bridge gate signal with this code.  But not sure if this is the most effective way.  This method need to setup both CMPA and CMPB.  Anyway, don't know why TI make such a mistake in their document.

         EPwm1Regs.AQCTLA.bit.ZRO = AQ_SET; // set actions for EPWM1A
         EPwm1Regs.AQCTLA.bit.CAU = AQ_CLEAR;
         EPwm1Regs.AQCTLB.bit.PRD = AQ_SET; // set actions for EPWM1B
         EPwm1Regs.AQCTLB.bit.CBD = AQ_CLEAR;
         EPwm1Regs.CMPA.half.CMPA = 100; // adjust duty for output EPWM1A & EPWM1B
         EPwm1Regs.CMPB = EPwm1Regs.TBPRD - EPwm1Regs.CMPA.half.CMPA;

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Chang
      Posted by Daniel Chang
      on Apr 27 2012 14:19 PM
      Expert4120 points

      I will submit a request to have the diagram changed.

      Regarding the waveform generation, you can consider these settings:

      EPwm1Regs.AQCTLA.bit.ZRO = AQ_SET; // set actions for EPWM1A
      EPwm1Regs.AQCTLA.bit.PRD = AQ_CLEAR;
      EPwm1Regs.AQCTLB.bit.PRD = AQ_SET; // set actions for EPWM1B
      EPwm1Regs.AQCTLB.bit.ZRO = AQ_CLEAR;

      This will generate full 50% duty waveforms for HB switching.  You can then use the dead-band module to add dead time between the PWM waveforms.

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kelvin Leung
      Posted by Kelvin Leung
      on Apr 27 2012 17:50 PM
      Prodigy20 points

      Daniel,

      Thanks!  However, 50% duty waveforms is normally used in phase-shift full bridge, the reason is that we can shift the phase to control the power to deliver to the load.  But for half bridge, duty is commonly used to control the power.  If duty is fixed at 50%, the only way to change output power is to change the rail voltage.  To follow textbook, half bridge requires change of duty.  What do you think?

      Kelvin

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Chang
      Posted by Daniel Chang
      on May 07 2012 18:04 PM
      Verified Answer
      Verified by Kelvin Leung
      Expert4120 points

      Kelvin,

      Sorry for the late reply.  If you want to generate the waveforms indicated in the (corrected) diagram, you will need to use two Compare registers, one for each PWM channel.

      PWM-A:
          - SET on ZERO event
          - CLEAR on CMP-A UP event

      PWM-B:
          - SET on PERIOD event
          - CLEAR on CMP-B DOWN event

      This will allow you to modify Duty value while maintaing proper phase shift.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ari Mendes dos Santos
      Posted by Ari Mendes dos Santos
      on Jan 29 2013 10:27 AM
      Expert1785 points

      Any idea of how to trigger the ADC in the middle of the pulse?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use