今日热门

5

回答

感觉没多少人用这个,流通都很少。

chunyang 2020-10-28 阅读:130

7

回答

msp430是咋样实现复位功能的?

b7428d82d46f4d2c 2019-12-02 阅读:413

0

回答

TI运动手表ez430chronos套件的编程器找不到了,想玩玩手表(CC430),可以用哪个开发板上的编程器替代,手里有MSP430G2,CC3200,FR3XX

DLGG创客DIY 2019-08-30 阅读:558

2

回答

总是显示串口不存在,请问各位大佬有没有遇到过这种情况,江湖救急如果有其他方法下载的也行

4c248e9b6bbeb722 2019-05-25 阅读:740

1

回答

(1)MSP430单片机系列,有4种型号。两款Flash系列,两款铁电FRAM系列。~MSP-EXP430F5529LP~MSP-EXP430G2ET~MSP-EXP430FR5994~MSP-EXP430FR6989(2)ARM系列处理器,有3款。ARM Cortex M4F内核,带浮点运算单元。~MSP-EXP432P401R~MSP-EXP432E401Y~EK-TM4C123GXL(3)DSP有两款,都是C2000系列。~LAUNCHXL-F28027F~LAUNCHXL-F28069M

ce4c4061e82c2fde 2019-05-24 阅读:658

0

回答

之前使用P1.4到P1.7作为数据输出到LCD我已经成功但是通过改变引脚即P1.2到P1.5作为我的数据输出引脚到LCD,它就不起作用了。这是什么问题,谢谢,下面是我的代码。#define CMD 0#define DATA 1#define LCD_OUT P1OUT#define LCD_DIR P1DIR#define D4 BIT4#define D5 BIT5#define D6 BIT6#define D7 BIT7#define RS BIT2#define EN BIT3// Delay function for producing delay in 0.1 ms incrementsvoid delay(uint8_t t){uint8_t i;for(i=t; i > 0; i--)__delay_cycles(100);}// Function to pulse EN pin after data is writtenvoid pulseEN(void){LCD_OUT |= EN;delay(1);LCD_OUT &= ~EN;delay(1);}//Function to write data/command to LCDvoid lcd_write(uint8_t value uint8_t mode){if(mode == CMD)LCD_OUT &= ~RS; // Set RS -> LOW for Command modeelseLCD_OUT |= RS; // Set RS -> HIGH for Data modeLCD_OUT = ((LCD_OUT & 0x0F) | (value & 0xF0)); // Write high nibble firstpulseEN();delay(1);LCD_OUT = ((LCD_OUT & 0x0F) | ((value << 4) & 0xF0)); // Write low nibble nextpulseEN();delay(1);}// Function to print a string on LCDvoid lcd_print(char *s){while(*s){lcd_write(*s DATA);s++;}}// Function to move cursor to desired position on LCDvoid lcd_setCursor(uint8_t row uint8_t col){const uint8_t row_offsets[] = { 0x00 0x40};lcd_write(0x80 | (col + row_offsets[row]) CMD);delay(1);}// Initialize LCDvoid lcd_init(){//P2SEL &= ~(BIT6+BIT7);LCD_DIR |= (D4+D5+D6+D7+RS+EN);LCD_OUT &= ~(D4+D5+D6+D7+RS+EN);delay(150); // Wait for power up ( 15ms )lcd_write(0x33 CMD); // Initialization Sequence 1delay(50); // Wait ( 4.1 ms )lcd_write(0x32 CMD); // Initialization Sequence 2delay(1); // Wait ( 100 us )// All subsequent commands take 40 us to execute except clear & cursor return (1.64 ms)lcd_write(0x28 CMD); // 4 bit mode 2 linedelay(1);lcd_write(0x0F CMD); // Display ON Cursor ON blink ONdelay(1);lcd_write(0x01 CMD); // Clear screendelay(20);lcd_write(0x06 CMD); // Auto Increment Cursordelay(1);lcd_setCursor(00); // Goto Row 1 Column 1}void main(void){WDTCTL = WDTPW + WDTHOLD; // stop watchdoglcd_init();lcd_setCursor(05);lcd_print("hello");// lcd_setCursor(15);//lcd_print("lcd");lcd_setCursor(00);while(1);}​

cd422c4e1abf4d5a 2019-05-22 阅读:671

6

回答

用c语言编写arduino虚拟串口的驱动程序

3054308fe38f48cd 2019-03-08 阅读:1341

3

回答

我安装了IAR,按照网上的教程。我的系统上32位windows7,安装后打开文件出现了下面的问题,我在笔记本(windows10)上安装是没有问题的,但是在windows7上安装就不行,求大神解答,万分感谢

bb36f2c58ccfd1cd 2018-10-25 阅读:774

3

回答

本人使用的是MSP430F5529单片机,IAR6.3版本的编译器。因为内部8KRAM不太够用,然后发现F5529的USB通信模块具有2KB的RAM缓冲区,当USB通信模块禁止使用时,这2KB的RAM缓冲区也可作为系统的RAM存储器使用,所以想请问一下有谁做过这块,麻烦提供一个例程或者技术文档,非常感谢!!

60134d4fc195c105 2018-08-16 阅读:618

6

回答

求助如何使用MSP430f5529进行温度测量

alongel 2015-11-11 阅读:1742

22

回答

应用场景:使用MSP430G2553的信息存储区保存参数。系统上电运行时,先检查信息存储区里面的参数是否有效,如果有效则直接跳到正常程序执行;如果无效,则擦除信息存储区并将默认参数值写入,然后再跳到正常程序执行(通过一有效标志判断)。 现在出现的问题是:通过外部工具改变参数后,系统正常运行,此时断开系统电源,再上电,则参数又变回默认的参数值,初步分析是系统上电执行后判断参数无效,将默认参数写进去了。然而,通过外部工具设置参数后,该标志已变为有效了。。。 再深入分析,觉得是某种原因导致信息存储区的内容丢失或被改变,导致判断失误。然而是什么原因导致的呢?各位坛友有遇到这个问题的吗?紧急求助啊,马上量产了,来了这个问题。。。。。

cxtarm 2015-09-21 阅读:1883

5

回答

#include #define uint unsigned int #define uchar unsigned char uint i,j,k,n; uchar md; const uchar sin[]= { 0x80,0x82,0x84,0x86,0x88,0x8a,0x8c,0x8e, 0x90,0x92,0x94,0x96,0x98,0x9a,0x9c,0x9e, 0xa0,0xa2,0xa4,0xa6,0xa8,0xaa,0xab,0xad, 0xaf,0xb1,0xb2,0xb4,0xb6,0xb7,0xb9,0xba, 0xbc,0xbd,0xbf,0xc0,0xc1,0xc3,0xc4,0xc5, 0xc6,0xc8,0xc9,0xca,0xcb,0xcc,0xcd,0xce, 0xce,0xcf,0xd0,0xd1,0xd1,0xd2,0xd2,0xd3, 0xd3,0xd3,0xd2,0xd2,0xd1,0xd1,0xd0,0xcf, 0xce,0xce,0xcd,0xcc,0xcb,0xca,0xc9,0xc8, 0xc6,0xc5,0xc4,0xc3,0xc1,0xc0,0xbf,0xbd, 0xbc,0xba,0xb9,0xb7,0xb6,0xb4,0xb2,0xb1, 0xaf,0xad,0xab,0xaa,0xa8,0xa6,0xa4,0xa2, 0xa0,0x9e,0x9c,0x9a,0x98,0x96,0x94,0x92, 0x90,0x8e,0x8c,0x8a,0x88,0x86,0x84,0x82, 0x80,0x7d,0x7b,0x79,0x77,0x75,0x73,0x71, 0x6f,0x6d,0x6b,0x69,0x67,0x65,0x63,0x61, 0x5f,0x5d,0x5b,0x59,0x57,0x55,0x54,0x52, 0x50,0x4e,0x4d,0x4b,0x49,0x48,0x46,0x45, 0x43,0x42,0x40,0x3f,0x3e,0x3c,0x3b,0x3a, 0x39,0x37,0x36,0x35,0x34,0x33,0x32,0x31, 0x31,0x30,0x2f,0x2e,0x2e,0x2d,0x2d,0x2c, 0x2c,0x2b,0x2b,0x2b,0x2b,0x2a,0x2a,0x2a, 0x2a,0x2a,0x2a,0x2a,0x2b,0x2b,0x2b,0x2b, 0x2c,0x2c,0x2d,0x2d,0x2e,0x2e,0x2f,0x30, 0x31,0x31,0x32,0x33,0x34,0x35,0x36,0x37, 0x39,0x3a,0x3b,0x3c,0x3e,0x3f,0x40,0x42, 0x43,0x45,0x46,0x48,0x49,0x4b,0x4d,0x4e, 0x50,0x52,0x54,0x55,0x57,0x59,0x5b,0x5d, 0x5f,0x61,0x63,0x65,0x67,0x69,0x6b,0x6d, 0x6f,0x71,0x73,0x75,0x77,0x79,0x7b,0x7d, }; const uchar jc[]= { 0x00,0x02,0x04,0x06,0x08,0x0a,0x0c,0x0e, 0x10,0x12,0x14,0x16,0x18,0x1a,0x1c,0x1e, 0x20,0x22,0x24,0x26,0x28,0x2a,0x2c,0x2e, 0x30,0x32,0x34,0x36,0x38,0x3a,0x3c,0x3e, 0x40,0x42,0x44,0x46,0x48,0x4a,0x4c,0x4e, 0x50,0x52,0x54,0x56,0x58,0x5a,0x5c,0x5e, 0x60,0x62,0x64,0x66,0x68,0x6a,0x6c,0x6e, 0x70,0x72,0x74,0x76,0x78,0x7a,0x7c,0x7e, 0x80,0x82,0x84,0x86,0x88,0x8a,0x8c,0x8e, 0x90,0x92,0x94,0x96,0x98,0x9a,0x9c,0x9e, 0xa0,0xa2,0xa4,0xa6,0xa8,0xaa,0xac,0xae, 0xb0,0xb2,0xb4,0xb6,0xb8,0xba,0xbc,0xbe, 0xc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0x92,0x90, 0x8e,0x8c,0x8a,0x88,0x86,0x84,0x82,0x80, 0x7e,0x7c,0x7a,0x78,0x76,0x74,0x72,0x70, 0x6e,0x6c,0x6a,0x68,0x66,0x64,0x62,0x60, 0x5e,0x5c,0x5a,0x58,0x56,0x54,0x52,0x50, 0x4e,0x4c,0x4a,0x48,0x46,0x44,0x42,0x40, 0x3e,0x3c,0x3a,0x38,0x36,0x34,0x32,0x30, 0x2e,0x2c,0x2a,0x28,0x26,0x24,0x22,0x20, 0x1e,0x1c,0x1a,0x18,0x16,0x14,0x12,0x10, 0x0e,0x0c,0x0a,0x08,0x06,0x04,0x02,0x00 }; const uchar fb[]= { 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff, 0xff,0xff, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00 }; void delay(void) {     uint tmp;      for(tmp = 10000;tmp > 0;tmp--);  } #pragma vector=PORT1_VECTOR __interrupt void  P1_IRQ(void) {    if(P1IFG&BIT4)   //第1个按键被按下        {                 delay();                if(P1IFG&BIT4)        {          while((P1IN&BIT4)==0 );       //等待按键放开            md=0X10;            P1IFG =0x00;        }          }    if(P1IFG&BIT5)   //第2个按键被按下        {                 delay();                if(P1IFG&BIT5)        {          while((P1IN&BIT5)==0 );       //等待按键放开            md=0x20;            P1IFG =0x00;        }          }    if(P1IFG&BIT6)   //第3个按键被按下        {                 delay();                if(P1IFG&BIT6)        {          while((P1IN&BIT6)==0 );       //等待按键放开        md=0X40;        P1IFG =0x00;              }          }      if(P1IFG&BIT7)   //第4个按键被按下        {                 delay();                if(P1IN&BIT7)        {          while((P1IN&BIT7)==0 );       //等待按键放开          md=0X80;           P1IFG =0x00;        }          }  } void key_init( void ) {        P1DIR=0x00; //输入     P1OUT=0X0F;     P1IES=0xf0;               // 选择下降沿中断     P1IE=0xf0;                // 打开中断使能     P1IFG=0x00;             //中断标志位清零          } int main() {      WDTCTL=WDTPW+WDTHOLD;       P2DIR=0XFF;     P6DIR=0XFF;     P6OUT=0XFF;     key_init();   while(1)   {     _EINT();      switch(md)             {                case 0x10:P6OUT=0XFE;for(i=0;i

亲爱的学徒 2015-07-16 阅读:982

4

回答

这个批量烧写器不会用啊,烧写的时候完全没反应。有用过的吗?求指教啊

cxtarm 2014-09-08 阅读:1419

1

回答

MSP430单片机为主控的GSM模块的防盗监控器设计 0 引言 随着移动通信技术的快速发展,计算机远程控制技术的应用领域愈加广泛,理论和实践方面的研究价值也日益增长。GSM 公众网络因其覆盖率极高,在远程控制技术中被广泛使用。本文设计的防盗监控器,充分利用了GSM 公众网络的短消息增值业务和无线通信业务,实现远程监控、报警信息收发和现场报警等功能,采用主动防盗模式,使用户脱离看不到、听不见的被动式防盗,不受 地域限制,具有网络化、智能化的特点。 本文重点研究了基于GSM公众网络的远程防盗报警器的设计,采用MSP430 单片机系统作为主控模块,依托于GSM 公众网络无线通信,通过发送短消息实现了用户与系统之间的通信,从而对贵重物品进行实时的远程监控。 1 系统组成及工作原理 系统主要由存储单元、GSM 单元、执行机构、防盗传感器、单片机控制机构组成。系统中的移动通信模块采用美国SIMCOM 公司的SIM508,单片机采用MSP430系列单片机,将移动通信模块经由单片机的RS 232 串口连接,采用欧洲电信标准协会ETSI的GSM07.05作为短信息编码标准。本文采用MSP430F系列单片机进行系统设计,充分利用其超低功耗并通 过其标准的全双工串口与移动通信模块进行通信。 MSP430单片机是防盗报警器的控制中心,集成了移动通信模块、警情采集模块和报警模块。防盗传感器在前端采集报警信号并发送至MSP430单片机,经 单片机判断处理后将控制指令发送到移动通信模块,移动通信模块根据指令内容将匹配的报警短信息通过GSM网络发送至用户手机终端,实现报警。当用户收到报 警短信即可将相应的防盗指令通过短信息回复至报警系统,报警系统根据短信息内容,开启控制系统的执行机构实施相应的防盗措施。完成移动报警系统设计的核心 部分是基于GSM 公众网络系统的AT 指令开发及移动通信模块和单片机控制模块的通信。报警系统整体的设计框图如图1所示。 该防盗报警器系统的设计,弥补了传统报警器系统的报警铃声噪音扰民、报警范围小、受地域限制、报警的有效性低等缺点和不足,为移动通信系统增值业务和无线通信业务的开发利用提供了有效手段。 2 硬件设计 系统选用MSP430单片机作为核心控制模块,美国德州仪器公司推出的16位高性能MSP430系列单片机,性价比高,有突出的低电源电 压、运行速度快,而且具有丰富的片内外设模块,能够满足系统设计的功能需求。 系统的硬件电路主要由MSP43 单片机控制模块、报警模块、警情采集模块、通信模块、信息存储模块以及控制执行机构组成。报警采集模块由热释电红外传感器和菲涅洱透镜组成,通信模块采用 美国SIMCOM公司的SIM508,单片机采用MSP430 系列单片机,通过RS 232 串口与通信模块连接,系统主控模块原理框图如图2所示。 3 软件设计 系统初始化后,控制系统将通过发送确认短信对手机用户进行身份认定。若设防信号无效,则控制系统不检测其状态。控制系统一旦检测到警情信号,将立即发送报 警短信息至用户手机,且同时发送持续10 s的本地报警信号。当用户手机将预先设定的反馈短信息发送给系统时,控制系统将根据判断结果给予相应的回复,以实现报警系统与手机用户之间的互动操作,软 件流程图如图3所示。 4 结语 随着科学技术的飞速发展和国民生活水平的不断提高,移动通信技术在远程工业控制系统、远程机器人系统、仓库、汽车、家庭等环境的防盗报警系统等中的应用日 益频繁,理论和实践价值也逐渐凸显。基于GSM公众网络控制的防盗报警器,不仅可以实现远程防盗报警的功能,更能保证通信效果,通信距离不受地域限制,提 高报警系统的可靠性,使用户实现对贵重物品的远距离实时监控。

大头 2013-10-28 阅读:4298

9

回答

使用MAX485(单独USB供电)转换电平和485转USB,串口助手收发数据 逻辑是:PC通过串口助手发送数据给单片机使之进入中断后单片机将数据发送给PC。实验现象是:1:单片机通过485直接发送数据(不用中断),接收正确。2:使用串口中断后,在串口助手中发送16进制数中断进不去,发送字符串可以进中断但收到数据不对。3:感觉软件没问题就是用232试了下,收发完全正确,包括中断。求大神解释下为什么485使用中断后收的数据不对?硬件问题?软件问题?

rrrrrrrr 2013-05-17 阅读:5085

4

回答

各位大神,小弟急求MSP430F5438有关五向开关的程序!!!!!!!!!

gtrjolin1990 2013-05-16 阅读:4823

9

回答

1602LCD四位数据显示的问题,版主来现身,求给代码

gtrjolin1992 2013-04-23 阅读:4175
  • 帮助人数
  • 0
  • 获得赞数
  • 0
  • 一周积分
  • 0

问题达人换一批

本月问答

排名
用户名
问答积分
< 123 >