单片机MSP430F2274进入低功耗LPM3,是不是一定要外接晶振,才能进入LPM3模式,进入LPM3时候,测到的电流不是手册上的1.4uA.同时,
另外一个问题,F2274外接晶振的时候,按照引脚的定义只能接P2.6和P2.7,但是这两个管教已经被套件定义控制和CC2500连接,能否使得这个IO功能复用,既接受晶振信号,又控制CC2500呢?8270.新建 DOC 文档.doc
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
单片机MSP430F2274进入低功耗LPM3,是不是一定要外接晶振,才能进入LPM3模式,进入LPM3时候,测到的电流不是手册上的1.4uA.同时,
另外一个问题,F2274外接晶振的时候,按照引脚的定义只能接P2.6和P2.7,但是这两个管教已经被套件定义控制和CC2500连接,能否使得这个IO功能复用,既接受晶振信号,又控制CC2500呢?8270.新建 DOC 文档.doc
测功耗这个问题 ,我想标定他处于LPM3模式的时间长度,怎么测呢,电流只有几微安,串联电阻用示波器也看不了,本身示波器悬空就有10几毫伏电压。请问️什么方法吗,因为我程序里面设置了几种不同模式,所以想要标定时间
那有没有传统的测试方法呢 用示波器和其他设备 你这个方法还得再买仪器设备
我这边有MSP430-FET,请问有具体测量方法,你好像没具体说到结合FET怎么做到energy trace,谢谢
在LMP3下,ACLK remains active.
您可以使用定时器timer将ACLK设为时钟源,产生定时中断来从LPM3模式下唤醒芯片
例程中给出的是WDT来唤醒,您可以参考一下
/* --COPYRIGHT--,BSD_EX * Copyright (c) 2012, 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. * ******************************************************************************* * * MSP430 CODE EXAMPLE DISCLAIMER * * MSP430 code examples are self-contained low-level programs that typically * demonstrate a single peripheral function or device feature in a highly * concise manner. For this the code may rely on the device's power-on default * register values and settings such as the clock configuration and care must * be taken when combining code from several examples to avoid potential side * effects. Also see www.ti.com/grace for a GUI- and www.ti.com/msp430ware * for an API functional library-approach to peripheral configuration. * * --/COPYRIGHT--*/ //****************************************************************************** // MSP430F22x4 Demo - Basic Clock, LPM3 Using WDT ISR, 32kHz ACLK // // Description: This program operates MSP430 normally in LPM3, pulsing P1.0 // at 4 second intervals. WDT ISR used to wake-up system. All I/O configured // as low outputs to eliminate floating inputs. Current consumption does // increase when LED is powered on P1.0. Demo for measuring LPM3 current. // ACLK = LFXT1/4 = 32768/4, MCLK = SMCLK = default DCO ~1.2MHz // //* External watch crystal on XIN XOUT is required for ACLK *// // // MSP430F22x4 // --------------- // /|\| XIN|- // | | | 32kHz // --|RST XOUT|- // | | // | P1.0|-->LED // // A. Dannenberg // Texas Instruments Inc. // April 2006 // Built with CCE Version: 3.2.0 and IAR Embedded Workbench Version: 3.41A //****************************************************************************** #include <msp430.h> volatile unsigned int i; int main(void) { BCSCTL1 |= DIVA_2; // ACLK/4 WDTCTL = WDT_ADLY_1000; // WDT 1s/4 interval timer IE1 |= WDTIE; // Enable WDT interrupt P1DIR = 0xFF; // All P1.x outputs P1OUT = 0; // All P1.x reset P2DIR = 0xFF; // All P2.x outputs P2OUT = 0; // All P2.x reset P3DIR = 0xFF; // All P3.x outputs P3OUT = 0; // All P3.x reset P4DIR = 0xFF; // All P4.x outputs P4OUT = 0; // All P4.x reset while(1) { __bis_SR_register(LPM3_bits + GIE); // Enter LPM3, enable interrupts P1OUT |= 0x01; // Set P1.0 LED on for (i = 5000; i > 0; i--); // Delay P1OUT &= ~0x01; // Clear P1.0 LED off } } #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__) #pragma vector = WDT_VECTOR __interrupt void watchdog_timer(void) #elif defined(__GNUC__) void __attribute__ ((interrupt(WDT_VECTOR))) watchdog_timer (void) #else #error Compiler not supported! #endif { __bic_SR_register_on_exit(LPM3_bits); // Clear LPM3 bits from 0(SR) }
请问IAR可以做energy trace不 还是说一定要用CCS软件呢
应该是浏览器问题,我这边使用的是谷歌浏览器,可以打开的
不需要安装插件,那您点击Emulator是否可以点击下面的选项?
• State Log
• Power Log
• Timeline
• Function Profiler