• 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 » PWM chopper
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
  • Forums

    PWM chopper

    This question is not answered
    Prathamesh dhanpalwar
    Posted by Prathamesh dhanpalwar
    on Aug 07 2012 06:16 AM
    Intellectual410 points

    Hello,

        I have tried to look for PWM chopper module example project in control suite, but couldnt find any. Can anyone let me know how can I get better understanding of it. I need to generate 7 pwms with a gap before the next 7 pwms.

    Regards-

    pwm 100% dutycycle PWM issue 100% PWM problem 100% PWM duty_cycle 100% duty cycle CHOPPER pwm chopper
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Kris Parrent
      Posted by Kris Parrent
      on Aug 10 2012 14:58 PM
      Expert5985 points

      This looks pretty close for the TZ setup anyway.  I don't have a device available to run this on at the moment.  You only actually need to enable one CBC source since these are on the same PWM.

      EPwm2Regs.TZSEL.bit.CBC1 = 1;
      EPwm2Regs.TZSEL.bit.CBC2 = 1;

      I would suggest not worrying about the RESET functionality yet.  Just configure TZ1 (or whichever TZ you decide to use) and tie it high.  Start PWM2 and watch the waveform, then tie TZ1 low. You should the PWMs be forced low until you tie TZ1 high again.  

      You have a lot of duplicate code for PWM2.  You should be able to setup the Step functionality and then with very few lines of code just set the B channel to be inverted.  No need to go through all of the TBPRD, TBCTL settings again, etc.  This makes it a bit hard to follow.  It should just be a bit in the AQ somewhere to invert the B output.

      I would recommend playing with the epwm_trip_zone example in controlSUITE to get an idea of how this works (and seeing some example code).  This will give you a better idea if this fits for your application before you throw too many hours at it.

      Kris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prathamesh dhanpalwar
      Posted by Prathamesh dhanpalwar
      on Aug 10 2012 15:07 PM
      Intellectual410 points

      I can see PWM2A andPWM2B low and high when I configure TZ, but at all instance of time. the example doesn't say how to configure or make use of trip zone if I want to correlate trip zone and a signal (step) at whichever time instance I want. Can you give an example or a code snippet that would be helpful?

      Regards-

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Kris Parrent
      Posted by Kris Parrent
      on Aug 10 2012 15:46 PM
      Expert5985 points

      So you are seeing the trip work as expected?  In other words, when the TZ pin is low the PWM outputs are low?

      If this is the case, then you just need to configure the PWM1 with some waveform and externally connect it to the TZ pin.  If the trip isn't working then I'm not sure I understand what you are seeing.  Can you send a waveform?  I won't have a device to test any code on until sometime next week, but we should be able to get you up and running.

      Kris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prathamesh dhanpalwar
      Posted by Prathamesh dhanpalwar
      on Aug 10 2012 16:40 PM
      Intellectual410 points

      Actually I am in Sweden and its midnight here. My kit is at office. So canI send you the wave form and code on monday? Will that be ok?

      Regards-

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    12
    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