• 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 » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » PWM generation is halted at break point
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    PWM generation is halted at break point

    This question is not answered
    muthu revathy a
    Posted by muthu revathy a
    on May 02 2012 07:01 AM
    Prodigy80 points

    Hi,

    I'm new to this MSP programming using CCS. I'm using CCS v5 to program my msp430g2252. The program has a simple PWM generation part which is essential for the proper functioning of other codes. This program works fine until it reaches a breakpoint in debugging mode. The moment it reaches a break point the PWM generation from the pin is halted. Can anyone please tell me how to get the PWM from the msp even when the program is at a breakpoint. Like, some changes in settings??? i tried changing the clock control in debugger but no use.

    Thanks in advance.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on May 02 2012 08:13 AM
      Guru103415 points

      Hi Muthu,

      what breakpoint settings do you use?  Typically the target is halted which likely explains the behaviour you see.   If you go to View->breakpoints to open the breakpoint view you should be able to see your breakpoint.  If you right click you can see the properties.

      Please keep us informed.

      Best Regards

      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • muthu revathy a
      Posted by muthu revathy a
      on May 03 2012 03:10 AM
      Prodigy80 points

      Hi Lisa,

      Thanks for your response.It shows like this

      Hardware Configuration

      Type:Simple

      Action:Halt Target

      Trigger 0 :Memory Address Bus

      Mask:0xffff

      Access:Instruction Fetch

      Trigger 1:None

      Debugger Response

      Condition

      skip count :0

      Current count :0

      Action:Remain Halted

      Miscellaneous

      Group:Default group

      Name:Breakpoint

       

      What should i change here to get the PWM at breakpoint?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on May 04 2012 09:13 AM
      Guru103415 points

      Hi Muthu,

      go into Project->Properties->Dedug-> and in the MSP430 settings please go to the clock settings.   You will notice all clocks by default set to stop on an emulation halt.  This is what you need to change to keep the pwm going.

      Please give that a try and keep us informed.

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on May 23 2012 11:07 AM
      Guru103415 points

      Hi Muthu,

      I just wanted to double check whether the tip was helpful and whether there is an update to your enquiry.

      Best Regards,

      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • muthu revathy a
      Posted by muthu revathy a
      on May 24 2012 02:48 AM
      Prodigy80 points

      Hi Lisa,

      It's nice of you to enquire about that. I tried so many times to post but didn't work.

      Actually, i tried changing this clock settings earlier also. when i make them working even in breakpoint, the pwm o/p is high or low depends on the time the program reaches the breakpoint. When the clocks are stopped during a emulation halt(break point), the pwm o/p is always low. This is the only difference i saw. Any suggestions would be helpful.

      Thanks & Regards,

      Muthu

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on May 24 2012 09:50 AM
      Guru103415 points

      HI Muthu,

      have a look at this post and keep us informed whether it helps you:

      https://e2e.ti.com/support/development_tools/code_composer_studio/int-code_composer_studio/f/90/p/100487/352393.aspx?Redirected=true#352393

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • muthu revathy a
      Posted by muthu revathy a
      on May 24 2012 22:23 PM
      Prodigy80 points

      Hi Lisa,

      When i check that link, it says that the group not found.

      Thanks & Regards,

      Muthu

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on May 25 2012 08:19 AM
      Guru103415 points

      Hi Muthu,

      ok, appologies.  Here is a summary of the information I hope will help you.

      Best Regards,

      Lisa

        this is what I observed (with both CCS 4.1 and 4.2.1). I used the example msp430x54x_ta3_04.c (from the MSP43054xx C examples download), set the clock control settings as shown below. I run the code for a bit and then halt it. When the code is halted, I view the Timer1_A3 register in Registers view, set it for continuous refresh, and see the TA1R (timer counter) changing even when device is halted. It does not actually execute the interrupt code, but the timer itself is still counting. If I check the box for Timer1_A3 to stop the associated clock on emulation halt, then the TA1R register is not updated when device is halted.

      So unchecking the ACLK or TACLK alone did not do it, but they had to also uncheck the associated Timer under Properties->CCS Debug-MSP430 Properties->Clock Control->Extended, correct? Those checkboxes appear after establishing connection with the device. So after clicking "Debug Active Project", in the debug perspective, go to menu Tools->Debugger options->MSP430 Debugger Options, and those checkboxes should be visible. After making changes to these settings, make sure to click the "Remember my Settings".

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Jun 01 2012 10:05 AM
      Guru103415 points

      Hi Muthu,

      I wanted to check whether the last post and tips were helpful for you?

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • muthu revathy a
      Posted by muthu revathy a
      on Jun 01 2012 22:18 PM
      Prodigy80 points

      Hi Lisa,

      I got up with some other project and couldn't reply.

      I used MSP430G2252. For this, it showed me " No module clock control available for current msp430 device". I guess, i have to use some other chips to work it out. Suggest me some chips.

      Thanks & Regards,

      Muthu

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Jun 04 2012 11:16 AM
      Guru103415 points

      Hi Muthu,

      actually, let me move this to the msp forum/team for you as they may have some further thoughts on the pwm options.

      Best Regards,
      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • muthu revathy a
      Posted by muthu revathy a
      on Jun 04 2012 22:11 PM
      Prodigy80 points

      Thanks Lisa

      Regards,

      Muthu

      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