• 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 » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » [HELP]Unable to change System Clock Frequency
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Forums

    [HELP]Unable to change System Clock Frequency

    This question is answered
    huangzhechen
    Posted by huangzhechen
    on Apr 28 2012 21:16 PM
    Prodigy60 points

    When I wanted to change the Sysclk to 3MHz, I used 

    SysCtlClockSet(SYSCTL_SYSDIV_2 // 2 DIV
    | SYSCTL_USE_OSC // Use OSC
    | SYSCTL_OSC_MAIN //
    | SYSCTL_XTAL_6MHZ); // external osc

    and my LM3S811 always works right, indicating that the external 6MHz-osc is OK.

    but, when I wanna change the Sysclk to 200MHz by PLL, I used 

    SysCtlLDOSet(SYSCTL_LDO_2_75V);
    SysCtlDelay(3000);
    SysCtlClockSet( SYSCTL_SYSDIV_1
    | SYSCTL_USE_PLL
    | SYSCTL_OSC_MAIN
    | SYSCTL_XTAL_6MHZ
    );
    SysCtlDelay(3000);

    delay before stable output.

    Sysclk will be used as PWM clk, and I set the PWM period 8 and theorotically the freq of PWM should be approximately 25 MHz.

    However, the PWM is 1.5MHz indeed , indicating that the actual clk is 12MHz. According to  the datasheet, the clk is internal 12MHz-osc.

    Could anybody explain it to me?

    LM3S811 PLL
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • slandrum
      Posted by slandrum
      on Apr 29 2012 08:40 AM
      Verified Answer
      Verified by huangzhechen
      Mastermind9510 points

      I'm pretty sure that setting the system clock to 200Mhz is illegal, and instead you will be setting it to some other value.  The fastest you can run the LM3S811 at is 50Mhz, and that's probably what you will actually run it at if you try to use a PLL divider of 1, but be aware that a PLL divider of 1 is illegal for this part.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • huangzhechen
      Posted by huangzhechen
      on Apr 30 2012 06:54 AM
      Suggested Answer
      Prodigy60 points

      Thanks. I've already tried running the LM3S811 at a freq of 50MHz by setting the divider of 4. As a matter of fact, any divider below 4, namely divider of 1, 2, or 3, is all illegal, and the LM3S811 will not be run at a PLL freq. Instead, the internal osc freq will be applied.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • cb1_mobile
      Posted by cb1_mobile
      on Apr 30 2012 09:12 AM
      Guru21640 points

      huangzhechen
      any divider below 4 - namely 1, 2, 3 are all illegal

      Don't think so - have not run S811 device in awhile but pretty sure that divide by 2 (to 25MHZ) is legal and does work.  May be issue with your xtal, xtal caps - don't believe you can (or should) generalize an apparent one board (one device) issue. 

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • huangzhechen
      Posted by huangzhechen
      on Apr 30 2012 18:55 PM
      Prodigy60 points

      As the output of PLL is 200MHz, the divide by 2 is to 100MHz not to 25Mhz. I have already tried a divider by 1(to 200MHz) and it is illegal, so the final sysclk is 12Mhz--the freq of internal osc. Thanks all the same. 

      At the beginning I didn't realize that S811 cannot run at a PLL freq higher than 50Mhz, so I was really puzzled why I fail to initialize the PLL with divide 1.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • cb1_mobile
      Posted by cb1_mobile
      on Apr 30 2012 19:47 PM
      Guru21640 points

      You are certainly correct - 2 stinkers from this reporter (that we know of) in one day.  Was locked in on 50MHz max of 3S811 - thus your choice of word, "illegal" was most appropriate and certainly proper.  May have to take up, "texting while driving" rather than "forum read/write while driving/flying" - in light of today's horrors...

      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