MSP430F6638用AD10通道采集自身温度为什么采集的每块芯片的温度值相差很大?
MSP430F6638用AD10通道采集自身温度为什么采集的每块芯片的温度值相差很大
__delay_cycles()延时
想问一下__delay_cycles延时的精度如何?和CPU频率什么关系?
msp430 i2041 sd24采样精度不够?
param.oversampleRatio = SD24_OVERSAMPLE_256; //过采样 32 64 128 256
Ch0results = (int32_t)SD24_getHighWordResults(SD24_BASE, SD24_CONVERTER_0);
给个恒定电压,采样出来的精度在10毫伏左右,请教下,如何完善精度问题
MSP430 sd24精度不正确,如下是使用文档
MSP430F6638的ADC采用内部2.5V参考电压时,用ADC通道0(P6.0)读出数据准确,但是运用AD1或者AD2等其他通道不加电压读出值为4096,求大神帮看看程序是不是有问题?
MSP430F6638的ADC采用内部2.5V参考电压时,用ADC通道0(P6.0)读出数据准确,但是运用AD1或者AD2等其他通道不加电压读出值为4096,求大神帮看看程序是不是有问题?
程序为采用通道AD1时:
void Init_ADC__2(void)
{
P6SEL |= BIT1; // 使能ADC通道
ADC12CTL0 = ADC12ON+ADC12SHT0_15+ADC12REFON+ADC12REF2_5V; // 打开ADC,设置采样时间
ADC12CTL1 =ADC12CSTARTADD_1+ADC12SHP+ADC12CONSEQ_0; // 选择存储器地址,使用采样定时器
ADC12MCTL1 =ADC12SREF_1+ADC12INCH_1; // 选择采样通道0 ADC12SREF_1+
//delay_1(1);
ADC12CTL0 |= ADC12ENC; // 使能转换
}
void ADC_SUM_2(unsigned char counter)
{
unsigned long average;//均值滤波总和变量,当counter过大可能导致溢出
float testing=0;//滤波后的测试值
average = 0;
testing=0;
test=0;
for(unsigned char j=0;j<counter;j++)//循环采集三次
{
ADC12CTL0 |=ADC12SC; // 开始转换
delay(10);
while (ADC12IFG ==BIT1)//等待AD转换结束
{
average +=ADC12MEM1;//采集值叠加到均值滤波总和变量
ADC12IFG&=~BIT1;//清 ADC12IFG中断标志位
}
}
testing=average/counter;//滤波后的测试值
delay(1000);//延时
}
***********************主函数***********************/
void main( void )
{
WDTCTL = WDTPW + WDTHOLD; //关狗
Init_ADC__2();
_EINT();
while(1)
{
ADC_SUM_2(35);
LPM3;
}
msp430 fr5994 改变全局变量或静态变量就会出现问题?
#include <msp430.h>
#include "driverlib.h"
#include <clk16.h>
/**
* main.c
*/
uint8_t i=0;
void main(void)
{
clk16();
Timer_A_clearTimerInterrupt(TIMER_A0_BASE);
Timer_A_initUpModeParam param;
param.clockSource=TIMER_A_CLOCKSOURCE_SMCLK;
param.clockSourceDivider=TIMER_A_CLOCKSOURCE_DIVIDER_32;
param.timerPeriod=50000;
param.captureCompareInterruptEnable_CCR0_CCIE=TIMER_A_CCIE_CCR0_INTERRUPT_ENABLE;
param.timerClear=TIMER_A_DO_CLEAR;
param.startTimer=false;
i=3;
Timer_A_initUpMode(TIMER_A0_BASE,¶m);
GPIO_setAsOutputPin(GPIO_PORT_P1,GPIO_PIN0);
Timer_A_startCounter(TIMER_A0_BASE,
TIMER_A_CONTINUOUS_MODE
);
__bis_SR_register(LPM0_bits + GIE);
}
#pragma vector = TIMER0_A0_VECTOR
__interrupt
void Timer_A0_ISR(void)
{
if(Timer_A_getInterruptStatus(TIMER_A0_BASE))
{
GPIO_setOutputHighOnPin(GPIO_PORT_P1,GPIO_PIN2);
Timer_A_clearTimerInterrupt(TIMER_A0_BASE);
}
}
如上代码,i=3存在,则debug 打断点无法进入定时器中断,删掉i=3,则可以进入中断
ccs9.1编译msp430fr6989 launchpad报错
这是在添加outofbox例程中用到的hal_lcd头文件时出现的问题
**** Build of configuration Debug for project LCDTEST ****
"D:\\ti\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../hal_LCD.c"
Invoking: MSP430 Compiler
"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx --code_model=large --data_model=restricted --near_data=none --use_hw_mpy=F5 --include_path="D:/ti/ccs/ccs_base/msp430/include" --include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" --include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" --include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" --preinclude="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" --advice:power="all" --advice:hw_config=all --define=__MSP430FR6989__ --define=_MPU_ENABLE -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="hal_LCD.d_raw" "../hal_LCD.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'hal_LCD.obj' failed
Command-line error #1966: cannot open source file "C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST": Invalid argument
1 catastrophic error detected in the compilation of "../hal_LCD.c".
Compilation terminated.
gmake: *** [hal_LCD.obj] Error 1
Building file: "../main.c"
Invoking: MSP430 Compiler
"D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/bin/cl430" -vmspx --code_model=large --data_model=restricted --near_data=none --use_hw_mpy=F5 --include_path="D:/ti/ccs/ccs_base/msp430/include" --include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" --include_path="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST/driverlib/MSP430FR5xx_6xx" --include_path="D:/ti/ccs/tools/compiler/ti-cgt-msp430_18.12.2.LTS/include" --preinclude="C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST" --advice:power="all" --advice:hw_config=all --define=__MSP430FR6989__ --define=_MPU_ENABLE -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
Command-line error #1966: cannot open source file "C:/Users/ewang/Desktop/program/tiworkspace/LCDTEST": Invalid argument
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
DY-FFTB6638的battery management中L2亮是什么意思
DY-FFTB6638的battery management中L2亮是什么意思
有没有与MSP430f2132 pin对pin的容量较大的mcu
如题,老项目用的MSP430f2132,现在不够用了。
MSP430F5438A 定时器中断向量问题
感觉430的中断向量有点乱,TIMER_A1_BASE 中断向量却显示TA0,下面的宏定义 A5又是什么意思,中断向量是怎么分配的?
#define TIMER0_A1_VECTOR (53u * 2u) /* 0xFFEA Timer0_A5 CC1-4, TA */
#define TIMER0_A0_VECTOR (54u * 2u) /* 0xFFEC Timer0_A5 CC0 */
MSP-EXP430F5529LP无法烧入程序
MSP-EXP430F5529LP无法烧入程序,怎么解决。
ccs9.1添加头文件问题
当我在使用ccs9.1添加头文件时总是出现各种各样的问题,例如在创建一个名为LCDTEST新工程时,为它中添加 OutOfBox_MSP430FR6989例程中的hal_LCD.c与hal_LCD.h时编译总会出现各种问题,但如果把main.c中的代码放到 OutOfBox_MSP430FR6989例程当中就不会出现问题。我想要知道应该如何为一个新工程添加头文件,我已经尝试过http://processors.wiki.ti.com/index.php/Include_paths_and_options中的方法,仍然行不通,请尽可能完整的演示一下应该如何为一个新工厂添加头文件,谢谢
关于msp430fr4133内存的问题
MSP430F5529lp: Error initializing emulator: No USB FET was found
你好,我准备在我的F6736单片机上添加wifi功能,于是我购买了全套CC3100BOOST,CC31XXEMUBOOST以及MSP-EXP430F5529LP,并按照在官网下载的,名为swru375d的Getting Started Guide进行操作。
在操作至利用CCS运行参考程序时出现了问题,显示Error initializing emulator: No USB FET was found。设备管理器中没有出现异常感叹号,但是没有预期中的其他端口出现
我的运行环境:
win10家庭版,
CCS | 6.1.0.00104,
MSPWare for CCS | 2.40.00.37,
SDK v1.2.0
Tera term4.9.7
MSP430G2211 driver lib在那里下载?
MSP430F5438A有比较器模块嘛?
看选型手册上MSP430F5438+有比较器,而是是比较器B。
看IAR自带头文件《msp430f5438a.h》(iar版本 7.10)(头文件版本 version 1.4),没有比较器相关宏定义,也没有安排中断向量。
我使用的MSPF5438A(芯片版本 Rev: F)。
请教各位,到底该芯片有没有比较器模块啊?感谢指教!
MSPF5438A,低功耗模式下,该如何提高阈值电压SVMH
请问BT-MSPAUDSOURCE Tools Bluetooth and MSP430 Audio开发板(MSP430F5229)和AD9954开发板联调
大家好:
我们购买了BT-MSPAUDSOURCE Tools Bluetooth and MSP430 Audio开发板和AD9954开发板,希望联调,达到这个正常的AD9954的输出效果!
它们分别供电,链接管脚,除了“共地”; 还要配置什么, 才能达到AD9954正常的输出效果?
为什么实现不了先亮后灭的效果,而且P1OUT=0;P4OUT=0;这两个语句顺序不同,效果也不一样。
WDTCTL = WDTPW + WDTHOLD;
P1DIR|=BIT0;
P4DIR|=BIT7;
P1OUT=0;
P4OUT=0;
delay_nms(50000);
P4OUT=1;
P1OUT=1;