FMUSER Wirless Transmit Video And Audio More Easier !

[email protected] WhatsApp +8618078869184
Language

    MSP430 single-chip DCO initialization

     

    "1. Platform description MSP430F5438. 2. Aclk selects xt1 with a frequency of 32.768k, MCLK and smclk selects dcoclkdiv with a frequency of 8000K. //Auxiliary clock aclk32.768k //System clock subsystem clock 8000K #include“inc/hw_ memmap.h” #include“ucs.h” #include“wdt_ a.h” #include“gpio.h” #include“sfr.h” voidmain(void) { //Stop the watchdog WDT_ A_ hold(WDT_ A_ BASE); //P4.0 maintain output state GPIO_ setAsOutputPin(GPIO_ PORT_ P4,GPIO_ PIN0); //Initialize p7.0 and p7.1 as multiplexing function GPIO_ setAsPeripheralModuleFunctionInputPin(GPIO_ PORT_ P7,GPIO_ PIN0|GPIO_ PIN1); //Start xt1 UCS_ LFXT1Start(UCS_ BASE,UCS_ XT1_ DRIVE0,UCS_ XCAP_ 3); //The DCO reference clock selects xt1 and the default parameter is selected //UCS_ clockSignalInit(UCS_ BASE,UCS_ FLLREF,UCS_ XT1CLK_ SELECT,UCS_ CLOCK_ DIVIDER_ 1); //DCO clock 8MHz //The second parameter of the function is the system working frequency 8000K, and the third parameter is the working frequency / DCO reference frequency UCS_ initFLLSettle(UCS_ BASE,8000,244); //Enable global interrupt __ bis_ SR_ register(GIE); while(1) { //Flip P4.0 GPIO_ toggleOutputOnPin(GPIO_ PORT_ P4,GPIO_ PIN0); //Software delay __ delay_ cycles(1000000); } } From the perspective of code, using mspware makes programming more concise and modification more convenient. Finally, add UCS_ Getsmclk and other functions verify the results, and the code is as follows: //Auxiliary clock aclk32.768k //System clock subsystem clock 8000K #include“inc/hw_ memmap.h” #include“ucs.h” #include“wdt_ a.h” #include“gpio.h” #include“sfr.h” uint32_ tclockValue_ ACLK=0; uint32_ tclockValue_ MCLK=0; uint32_ tclockValue_ SMCLK=0; voidmain(void) { //uint16_ tstatus; //Stop the watchdog WDT_ A_ hold(WDT_ A_ BASE); //P4.0 maintain output state GPIO_ setAsOutputPin(GPIO_ PORT_ P4,GPIO_ PIN0); //Initialize p7.0 and p7.1 as multiplexing function GPIO_ setAsPeripheralModuleFuncTIonInputPin(GPIO_ PORT_ P7,GPIO_ PIN0|GPIO_ PIN1); //Start xt1 UCS_ LFXT1Start(UCS_ BASE,UCS_ XT1_ DRIVE0,UCS_ XCAP_ 3); //Xt1 is selected for DCO reference clock, and the default parameter is actually selected //UCS_ clockSignalInit(UCS_ BASE,UCS_ FLLREF,UCS_ XT1CLK_ SELECT,UCS_ CLOCK_ DIVIDER_ 1); //DCO clock 8MHz //The second parameter of the function is the system working frequency 8000K, and the third parameter is the working frequency / DCO reference frequency UCS_ initFLLSettle(UCS_ BASE,8000,244); //This function needs to be called if xt1 or XT2 is used UCS_ setExternalClockSource(UCS_ BASE,32768,8000000); clockValue_ SMCLK=UCS_ getSMCLK(UCS_ BASE); clockValue_ MCLK=UCS_ getMCLK(UCS_ BASE); clockValue_ ACLK=UCS_ getACLK(UCS_ BASE); //Enable global interrupt __ bis_ SR_ register(GIE); while(1) { //Flip P4.0 GPIO_ toggleOutputOnPin(GPIO_ PORT_ P4,GPIO_ PIN0); //Software delay __ delay_ cycles(1000000); } }, read the full text, technical section Why can't the other of PIC MCU get in for external interrupt DCO initialization of MSP430 Single Chip Microcomputer Design of RTC clock for stm8 single chip microcomputer Driving ads1246 chip by STM32 single chip microcomputer STM32 MCU can bus configuration, Download enthusiast app Create an electronic circle of your contacts Pay attention to wechat of electronic enthusiasts Interesting and informative information and technology dry goods Focus on enthusiast class Lock in the live broadcast of the latest course activities and technologies and collect them 0 collections Share:, comment Lin Chaowen PCB Design: pads tutorial, pads video tutorial, Zheng Zhenyu teacher: Altium designer tutorial, Altium designer video tutorial, Zhang Fei actual combat electronic video tutorial, Zhu Youpeng teacher: Hisilicon hi3518e tutorial, hi3518e video tutorial, Li Zeng teacher: signal integrity tutorial, high-speed circuit simulation tutorial, Huawei Hongmeng system tutorial, harmonyos video tutorial, saisheng: EMC design tutorial, EMC video tutorial Mr. Du Yang: STM32 tutorial, STM32 video tutorial, Tang zuolin: basic C language tutorial, basic C language video tutorial, Zhang Fei: Buck Power tutorial, buck power video tutorial, punctual atom: FPGA tutorial, FPGA video tutorial, Mr. Wei Dongshan: embedded tutorial, Embedded video tutorial Zhang Xianfeng: C language basic video tutorial Xu Xiaogang: Modbus communication video tutorial Wang Zhentao: NB IOT development video tutorial mill: FPGA tutorial, zynq video tutorial c language video tutorial linux driver development video tutorial Zhu Youpeng: u-boot source code analysis video tutorial harmonyos,  Press and hold the slider and drag to the far right Learn about new features Published, relevant recommendations Programming method of interrupt function of MSP430 Single Chip Microcomputer #pragmavector=USCI_ A0_ VECTOR __ interruptvoidUSC... Published at 14:07, December 3, 2018 • 43 readings Analysis of comparator working principle of MSP430 Single Chip Microcomputer This is the logic diagram of comparator a, which is composed of four parts Label 1: internal reference voltage generator, which can generate 0.25V Published at 15:49, November 29, 2018 • 56 readings What are the advantages of PIC Series MCU According to different program storage methods, single chip microcomputer can be divided into EPROM, OTP (one-time programmable) and QTP (mask). At the beginning of our country Published at 16:14, November 28, 2018 • 68 readings How to use the ADC12 function of MSP430 single chip microcomputer to realize modern Here is an example to illustrate the use of on-chip ADC. Firstly, the UART and timer 1s overflow functions are realized. On the basis of the above functions, every 1 Published at 16:09, November 28, 2018 • 77 readings How to use TimerA and interrupt to realize RTC D13x Demo - using timer_ A and interrupt to realize RTC, and observe the flashing frequency of LED lamp //Description Published on November 26, 2018 at 14:59 • 59 readings Design of MSP430 single chip microcomputer clock program MSP430 can choose to use up to 3 oscillators according to different models. We can choose the appropriate oscillation frequency according to the needs, and can not Published on November 26, 2018 14:

     

     

     

     

    List all Question

    Nickname

    Email

    Questions

    Our other product:

    Professional FM Radio Station Equipment Package

     



     

    Hotel IPTV Solution

     


      Enter email  to get a surprise

      fmuser.org

      es.fmuser.org
      it.fmuser.org
      fr.fmuser.org
      de.fmuser.org
      af.fmuser.org ->Afrikaans
      sq.fmuser.org ->Albanian
      ar.fmuser.org ->Arabic
      hy.fmuser.org ->Armenian
      az.fmuser.org ->Azerbaijani
      eu.fmuser.org ->Basque
      be.fmuser.org ->Belarusian
      bg.fmuser.org ->Bulgarian
      ca.fmuser.org ->Catalan
      zh-CN.fmuser.org ->Chinese (Simplified)
      zh-TW.fmuser.org ->Chinese (Traditional)
      hr.fmuser.org ->Croatian
      cs.fmuser.org ->Czech
      da.fmuser.org ->Danish
      nl.fmuser.org ->Dutch
      et.fmuser.org ->Estonian
      tl.fmuser.org ->Filipino
      fi.fmuser.org ->Finnish
      fr.fmuser.org ->French
      gl.fmuser.org ->Galician
      ka.fmuser.org ->Georgian
      de.fmuser.org ->German
      el.fmuser.org ->Greek
      ht.fmuser.org ->Haitian Creole
      iw.fmuser.org ->Hebrew
      hi.fmuser.org ->Hindi
      hu.fmuser.org ->Hungarian
      is.fmuser.org ->Icelandic
      id.fmuser.org ->Indonesian
      ga.fmuser.org ->Irish
      it.fmuser.org ->Italian
      ja.fmuser.org ->Japanese
      ko.fmuser.org ->Korean
      lv.fmuser.org ->Latvian
      lt.fmuser.org ->Lithuanian
      mk.fmuser.org ->Macedonian
      ms.fmuser.org ->Malay
      mt.fmuser.org ->Maltese
      no.fmuser.org ->Norwegian
      fa.fmuser.org ->Persian
      pl.fmuser.org ->Polish
      pt.fmuser.org ->Portuguese
      ro.fmuser.org ->Romanian
      ru.fmuser.org ->Russian
      sr.fmuser.org ->Serbian
      sk.fmuser.org ->Slovak
      sl.fmuser.org ->Slovenian
      es.fmuser.org ->Spanish
      sw.fmuser.org ->Swahili
      sv.fmuser.org ->Swedish
      th.fmuser.org ->Thai
      tr.fmuser.org ->Turkish
      uk.fmuser.org ->Ukrainian
      ur.fmuser.org ->Urdu
      vi.fmuser.org ->Vietnamese
      cy.fmuser.org ->Welsh
      yi.fmuser.org ->Yiddish

       
  •  

    FMUSER Wirless Transmit Video And Audio More Easier !

  • Contact

    Address:
    No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620

    E-mail:
    [email protected]

    Tel / WhatApps:
    +8618078869184

  • Categories

  • Newsletter

    FIRST OR FULL NAME

    E-mail

  • paypal solution  Western UnionBank OF China
    E-mail:[email protected]   WhatsApp:+8618078869184   Skype:sky198710021 Chat with me
    Copyright 2006-2020 Powered By www.fmuser.org

    Contact Us