Hi Robert, Sorry for the delayed response. I'm happy to hear that you were able to lower your power consumption! Regarding the release date, I can't give you a specific release date for all our code examples. However, MSP432Ware will be the best place to find the latest updates for MSP432 RevC devices, as discussed here . You should get notifications in CCS whenever there are new updates to install. For setting the DCO to a non-centered frequency, take a look at our latest "cs_dco_frequency_tune.c" code example from MSP432Ware v3.50.00.02. The MAP_CS_setDCOFrequency() function should allow you to enter a frequency, and it automatically takes care of the tuning. I found this example in the TI Resource Explorer under Libraries -> Driver Library -> MSP432P4xx -> Example Projects -> CS . /* * ------------------------------------------- * MSP432 DriverLib - v3_21_00_05 * ------------------------------------------- * * --COPYRIGHT--,BSD,BSD * Copyright (c) 2016, Texas Instruments Incorporated * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the name of Texas Instruments Incorporated nor the names of * its contributors may be used to endorse or promote products derived * from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * --/COPYRIGHT--*/ /******************************************************************************* * MSP432 Clock System - Tune DCO Frequency to Non-Standard Frequency * * Description: In this example, we show how easy it is to set the DCO frequency * to non-standard frequencies. Since MSP432 has the ability to granularly tune * the DCO frequency to non standard frequencies, this can be done easily using * the CS_setDCOFrequency frequency. This application will set the DCO * frequency to 8.33MHz, and then use the SysTick module to blink and LED * on P1.0. * * MSP432P401 * ------------------ * /|\| | * | | | * --|RST P1.0 |---> P1.0 LED * | | * | | * | | * | | * | | * * Author: Timothy Logan ******************************************************************************/ /* DriverLib Includes */ #include "driverlib.h" /* Standard Includes */ #include #include int main(void) { /* Halting the Watchdog */ MAP_WDT_A_holdTimer(); /* Configuring GPIO as an output */ MAP_GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN0); /* Enabling FPU for DCO Frequency calculation */ MAP_FPU_enableModule(); /* Setting the DCO Frequency to a non-standard 8.33MHz */ MAP_CS_setDCOFrequency(8330000); /* Configuring SysTick to trigger at 4165000 (MCLK is 8.33MHz so this will * make it toggle every ~0.5s) */ MAP_SysTick_enableModule(); MAP_SysTick_setPeriod(4165000); MAP_Interrupt_enableSleepOnIsrExit(); MAP_SysTick_enableInterrupt(); /* Enabling MASTER interrupts */ MAP_Interrupt_enableMaster(); while (1) { MAP_PCM_gotoLPM0(); } } void SysTick_Handler(void) { MAP_GPIO_toggleOutputOnPin(GPIO_PORT_P1, GPIO_PIN0); } Hope this helps! Regards, James MSP Customer Applications
↧