• 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 » what is the CPU clock frequency of MSP430F5635 ?
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

    what is the CPU clock frequency of MSP430F5635 ?

    This question is answered
    Jenitta Rex
    Posted by Jenitta Rex
    on Apr 10 2012 09:38 AM
    Intellectual660 points

    Hi

    I am using MSP430 F5635 .

    How do i know the CPU clock frequency ?

    By intention is to create a delay for some ms .

    So to use the __delay_cycles function , i want to know the CPU clock frequency .

    Thanks in advance

    Jenitta

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Jenitta Rex
      Posted by Jenitta Rex
      on Apr 10 2012 09:41 AM
      Intellectual660 points

      Hi

      If instead of _delay_cycles , if i have to use _nop() for creating some delay ,

      what is the time taken to execute one _nop() instruction ??

      Please reply .

      Thanks in advance.

      Jenitta

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jan
      Posted by Jan
      on Apr 10 2012 11:54 AM
      Expert1435 points

      Hi Jenitta,

      the clock frequency is given by your configuration and your crystals used on your board.__delay_cycles(n) is a function that inserts code that needs n cycles of MCLK to run. So if your clock runs at 8MHz a cycles takes 125ns, 1ms delay then need 8000 cycles of delay.

      Apart from that, if you need accurate delays you should better use a timer - they are made for this :-)

      --
      Regards,
      Jan

      Oxfam Trailwalker 2012 - Runner

      Found any horribly english mistakes? - Drop me a note as private conversation via my profile if you like ;-)

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jan
      Posted by Jan
      on Apr 10 2012 11:58 AM
      Expert1435 points

      Hi again,

      the _nop() is a special assembler instruction which does No OPeration and will take one MCLK cycle. But be aware that

      volatile int i;
      for (i=0; i<8000; i++) {
        __nop();
      }

      and

      __delay_cycles(8000);

      will have *very* different delay times.

      --
      Regards,
      Jan

      Oxfam Trailwalker 2012 - Runner

      Found any horribly english mistakes? - Drop me a note as private conversation via my profile if you like ;-)

      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 Apr 10 2012 13:15 PM
      Verified Answer
      Verified by Jenitta Rex
      Expert6060 points

      An easy way to check the MSP430 clocks is just to set the GPIOs to output the corresponding clock. I.e.:

      - P3.4 can output SMCLK if P3SEL.4 =1 and P3DIR.4 = 1 (depending on your configuration SMCLK could be the same as MCLK)

      - P1.0 can output ACLK if P1SEL.0 =1 and P1DIR.0 =1

      - Any of the PortMap pins (P2[0:7]) can be configured to output MCLK. According to table 12 in the datasheet, the mnemonic is "PM_MCLK" and you can use the PMAP examples found in the code examples as a guide: http://www.ti.com/litv/zip/slac417d

      Regards,

      Luis R

      Clock
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TonyKao
      Posted by TonyKao
      on Apr 10 2012 15:58 PM
      Genius3770 points

      Hi Jenitta,

      By default the main clock MCLK is sourced from the DCO and is trimmed by the FLL to ~1MHz using REFO as reference.

      See the UCS examples for how to adjust the clocks to your needs.

      Also as Jan alluded to, you should use __delay_cycles if you want a cycle accurate delay function.

      Tony

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jenitta Rex
      Posted by Jenitta Rex
      on Apr 11 2012 00:25 AM
      Intellectual660 points

      Thank you very much !

      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