• 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 » how to set the ACLK clock
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

    how to set the ACLK clock

    • ASHISH PATEL
      Posted by ASHISH PATEL
      on Apr 15 2012 02:45 AM
      Prodigy230 points

      my problem is that i want to run ACLK and SMCLK both on controller MSP430F2616  but i am not able to run it

      i give all setting for that

      WDTCTL = WDTPW | WDTHOLD;
       
        _BIS_SR(OSCOFF);
         BCSCTL1 |= 0x00;
         BCSCTL1 |= LFXT1S_0 + XTS ;
        BCSCTL1 &= ~(XT2OFF);
       
       // BCSCTL2 |= SELM_2 + SELS + DIVS_0;
        BCSCTL3 |= XT2S_2 + XCAP_1  + LFXT1OF ;
        do
        {
        IFG1 &= ~OFIFG;                           // Clear OSCFault flag
        for (i = 0x0FF; i > 0; i--);             // Time for flag to set
        }
        while ((IFG1 & OFIFG));                   // OSCFault flag still set?
       
        BCSCTL2 |= SELM_2 + SELS + DIVS_2 + DIVM_0  ;

      using this i got the MCLK and SMCLK but using crystal 5Mhz i want to generate the ACLK
      but its not coming properly  its varying not coming constant

      also i set the all PORT direction and all those thing plz help me 

      how to set ACLK on MSP430F2616
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Chester Gillon
      Posted by Chester Gillon
      on Apr 15 2012 06:47 AM
      Mastermind6315 points

      ASHISH PATEL
      also i set the all PORT direction and all those thing plz help me

      To use the XT2 crystal oscillator the P8SEL.6 and P8SEL.7 bits need to be set (see the Port P8 (P8.6), Input/Output With Schmitt Trigger and Port P8 (P8.7), Input/Output With Schmitt Trigger diagrams in the MSP430F2616 datasheet SLAS541J)

      i.e.the following code is required attempting to start the oscillator: 

      P8SEL |= BIT7 + BIT6; 

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • ASHISH PATEL
      Posted by ASHISH PATEL
      on Apr 15 2012 08:22 AM
      Prodigy230 points

      Whatever ur ans is right but y controller is 60 Pins and also i got yhe XT2 output but i m not able to switch on the XT1 in any mode not in low frequency  mode or high 

      frequency mode

      i set the pin of ACLK both that P2.0 and also P5.6 using this P2SEL |= 0x01; P2DIR |= 0x01; P5SEL |= BIT6; P5DIR |= BIT6 then also i didn't get it .

      MSP430x2xx
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Chester Gillon
      Posted by Chester Gillon
      on Apr 15 2012 13:34 PM
      Mastermind6315 points

      ASHISH PATEL
      using this i got the MCLK and SMCLK but using crystal 5Mhz i want to generate the ACLK but its not coming properly  its varying not coming constant

      Can you clarify if a 5MHz crystal is connected to the XT1 and/or XT2 crystal oscillator?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • old_cow_yellow
      Posted by old_cow_yellow
      on Apr 15 2012 18:07 PM
      Guru25795 points

      (1) There is no 60-pin MSP430F2616. You must meant 64-pin.

      (2) Your statement:  _BIS_SR(OSCOFF); is wrong. You must delete that line.

      (3) Your statement: BCSCTL1 |= 0x00; is useless. You should delete that line.

      (4) The LFXT1S_0 part of your statement:  BCSCTL1 |= LFXT1S_0 + XTS ;  is inappropriate. You should edit that part out.
        
      (5) Your statement: BCSCTL3 |= XT2S_2 + XCAP_1  + LFXT1OF ; is wrong. You must change it to: BCSCTL3 = XT2S_2 + LFXT1S_2;

      (6) XT2 cannot be used to source ACLK and is enabled but not used in the above code. XT1 could and is selected as ACLK in the above code.

      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