• 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 » MSP430 resets when exiting LPM0 triggered by a slow rise time interrupt signal.
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

    MSP430 resets when exiting LPM0 triggered by a slow rise time interrupt signal.

    This question is not answered
    Daniel Cross
    Posted by Daniel Cross
    on Feb 10 2012 08:22 AM
    Prodigy205 points
    PWR_ON_Reset.JPG

    The MSP430 (F5418A rev E) is in LPM0 from which it can be awakened by a rising edge on one of two signals. If either of those two signals has a very long rise time (on the order of 10 msec or so) the MSP430 gets a power-on reset before it can respond to the signal. If we speed up the input signals (to < 1msec rise time), the problem vanishes.

    One of the first actions should be to assert the PWR ON signal, but it does not occur on time due to the reset.

    Reset rise time LPM0 ioc
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jason Qian
      Posted by Jason Qian
      on Feb 21 2012 15:35 PM
      Intellectual940 points

      AL,

      Since the reset is triggered by SVSH, it's a proof that VCC has fell below the thereshold voltage. The SVSH was set to 0x0 which only trigger a POR if the threshold is below 1.8V but we have seen your scope shot indicates VCC is well above 1.8V. Where are you probing the VCC? Are you probing directly to the VCC pin on the MSP430? Any circuitry on your custom board that might pull the VCC down?

      Can you disable the SVSH to see if the reset still exist just to eliminate the PMM factor from the 10 ms ramp up.

      Also, can you clear the SYSRSTIV reg by writing a value to it after POR since the BOR flag may exist due to intial power up.

      Again, we need to reproduce the results to see if it is a hardware issue.

       

      Best regards,

      Jason Qian

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 21 2012 17:09 PM
      Prodigy205 points

      We are probing DVCC as close to the chip as practical. There are no components between the probe and the pin, only PCB trace.

      Here are a few more pictures.

      1-- no reset. I can't explain why Vcore drops first and then rises, but it could have to do with MSP430 activity, indicated by the noise on DVCC.

      The low point on the DVCC trace is 2.25V.

      2 -- reset occurs. Notice that Vcore does NOT drop. Also notice the lack of MSP430 activity until after the spike in Vcore.

      low point of DVCC is 2.4V.

      3-- Response to a different interrupt input, which is faster. Notice that DVCC is flat until it rises, and the MSP430 stays relatively idle until then.

      Vcore still drops before rising later on.  No reset occurred.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 22 2012 08:02 AM
      Prodigy205 points

      Regarding image #2 in the last post, it seems to be fairly common for the ON DET signal to be "kinked" like that when a reset occurs. I propose that the cause of this is that for some reason that pin on the MSP430 is becoming an output and is trying to drive the signal to ground. Al is checking whether the firmware ever does that, but it shouldn't; so if it is happening the explanation must be something endemic to the MSP430.

      Another consequence, if true, is that whatever is happening does so before the VCC upward ramp.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Luis RC
      Posted by Luis RC
      on Feb 22 2012 09:37 AM
      Expert6010 points

      Hi,

      Can you describe the steps followed before going to LPM and after waking up? And based on your description, you have PMMCOREV=0 and SVS/SVH level 0, but you also mentioned that you are changing the level in some cases, is that correct? Changing the PMMCOREV would also change the SVS/SVH levels.

      When the device is in LPM, the Vcore is slightly higher (~40mV). In the non-Reset cases, it would seem like the device is in LPM, then wakes up (VCore goes down), then, do you change PMMCOREV?

      On the reset case, it would seem like the VCore spikes and that is an abnormal case. What I don't know, is if this happens after the device wakes up or not. Is there any way you can plot the MCLK?

      Also, from all PMM sources, what do you have forcing a reset and what forces an interrupt? Do you get any SVM interrupts at all?

      Finally, do you have any Rev F samples available to see if this problem is related to the existing bugs? And, can you try updating the Core Libraries? Since the first release of the Core Libraries we have found/fix some bugs and we also implemented workaround for some errata.

      I'm sorry I'm asking for so much stuff and I'm not providing clear answers but this problem is unknown to me and since I can't replicate it on my bench, I'm trying to understand what is happening.

      Regards,

      Luis R

      5xx PMM
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 22 2012 15:00 PM
      Prodigy205 points

      My update for today....

      Luis RC

      When the device is in LPM, the Vcore is slightly higher (~40mV). In the non-Reset cases, it would seem like the device is in LPM, then wakes up (VCore goes down), then, do you change PMMCOREV?

      This is helpful since it explains why Vcore always drops during a normal wake-up. We were puzzled by that. I believe Al can confirm that sometime after the wake-up he raises the Vcore voltage, so that explains the subsequent rise. It also indicates that when a reset occurs, the MSP430 never comes out of low power mode, since we would see Vcore drop (and we don't). Furthermore, it explains the lack of activity-related noise on DVCC (since the MSP430 is still asleep).

      Here are a couple of new pictures, with a very narrow time slice. First the no-reset case:

      Notice MSP430-generated switching noise on the supplies from the beginning of the frame.

      Next, the reset case:

      Notice the complete lack of MSP430 activity.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Al Dorundo
      Posted by Al Dorundo
      on Feb 23 2012 07:19 AM
      Prodigy80 points

      I'mm copying post #7.

      I haven't updated the libraries yet but I can try that. We have been using the August 2010 release.

      I think the normal drop in Vcore is when we exit LPM3 and start the DCO/FLL. Vcore is then set to PMMCOREV_1.

      In the reset case with Vcore spiking, I would guess that is when it goes into reset since I believe the power-on condition is PMMCOREV_3.

      I don't believe I get SVM resets at all.

      These are the details on SYSRSTIV that I was able to capture:

      Sometimes SYSRSTIV=0x000E, and others it is SYSRSTIV=0x0002 (BOR).

      SVSMHCTL,SVSMLCTL,SVSMIO=(0x4400,0x4400,0x0020)

      I had one questions from earlier:

      1. I noticed that PMM17 is only relevant for some lot numbers. Is it OK to use the prolongation code in the snippet regardless of the rev and lot of the silicon?

                                                                         

      All Vcore switching operations are performed using the core library function calls.

      We leave SVSx and SVMx enabled and are always in normal performance mode.

      The maximum MCLK frequency never goes above 8 MHz.

      Before entering LPM3, our state is:

      1. We are using an external 32 kHz clock. MCLK and SMCLK setup to 2^15*2^4 clock using the Init_FLL_Settle() function in the core library (32x multiplier, using DCOCLKDIV output). This works out to about 512kHz.
        Most modules are disabled and they are sourced using ACLK to prevent any other clock requests from being enabled.
      2. SVSx and SVMx are enabled. We always stay in normal performance mode, and never enter fast switching mode.
      3. We are in Vcore=PMMCOREV_0 while in LPM3.
      4. Most I/O are configured as GPIO and driven low. Several I/O are inputs and PERI as required (i.e. XT1 are peri to support external clock, PWR_ON is input with interrupt enabled to support wakeup).
      5. The WDT is set as an interval timer so we can awaken periodically.

      We are awakened from LPM3 by the assertion on PWR_ON. 

      1. The I/O are configured as required for the operation.
      2. VCore is set to PMMCOREV_1 and the clocks are re-configured:
        2a. We use an external clock input on XT2, (not an external clock). The frequency is safely under 8 MHz.
        2b. MCLK and SMCLK are sourced from XT2.
        2c. ACLK remains sourced from XT1.
      3. The required modules are re-initialized.
      4. The WDT is set back as a watchdog. Our timeout is 1 sec.
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Al Dorundo
      Posted by Al Dorundo
      on Feb 23 2012 07:41 AM
      Prodigy80 points

      Daniel,

      I don't believe the ON_DET is being affected by the MSP430.

      In Image #2 you see the DVcc drop is more pronounced and the DVcc drop is happening at the same time sa the ON_DET kink, but long before Vcore changes..

      Al

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 23 2012 08:15 AM
      Prodigy205 points

      Additionally, I often see the "kinks" occur even when there is no reset. It seems that the odd waveform is the result of bounce in the contacts I am manipulating to generate the interrupt on ON DET, and is probably a red herring regarding the resetting.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Qian
      Posted by Jason Qian
      on Feb 23 2012 14:43 PM
      Intellectual940 points

      AL,

      Just tring to eliminate some variables for our debugging purpose. Can you try the following and see if reset still exist? Thanks.

      1. disable SVSh and SVSm

      2. do not switch the VCC (use the same voltage source) all the way through

      3. 1 & 2 together.

      Best regards,

      Jason Qian

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 27 2012 12:30 PM
      Prodigy205 points

      We now have MCLK visible at a pin. Its behavior changes depending upon whether reset occurred.

      With no reset, MCLK follows VCC until it starts clocking:

      with reset, MCLK first drops to 0 before finally starting to clock, some time later than normal.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Cross
      Posted by Daniel Cross
      on Feb 27 2012 13:30 PM
      Prodigy205 points

      Jason Qian

      Can you try the following and see if reset still exist? Thanks.

      2. do not switch the VCC (use the same voltage source) all the way through

      In our design, a digital signal passes through some analog circuitry to activate the "high power" VCC regulators. When I place a DC on the input to that network (to keep VCC high all the time), I have not observed a reset event. However, I can make a reset occur simply by asserting the DC input (without forcing any of the interrupt lines).

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jason Qian
      Posted by Jason Qian
      on Feb 27 2012 17:46 PM
      Intellectual940 points

      Daniel,

      Can you please send the schematic of your customized board to us to take a look?

      Just curious how are you controlling the switching between the power supply? Using the Det_on signal?

      I talked to Al today and he mentioned he will try to recreate the issue with a TI evaluation board.

       

      Best regards,

      Jason Qian

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