MSP430程序

  • N2_598115
    了解作者
  • 1.2MB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-05-26 02:01
    上传日期
MSP430程序集合:一、基础实验【10个】 1、入门试验:LED闪烁(1个) 2、时钟实验:设置MCLK、ACLK、SMCLK(1个) 3、低功耗实验:设置低功耗模式(1个) 4、IO端口试验: IO端口寄存器设置(1个) 5、定时器:看门狗定时器、TimerA寄存器设置(2个) 6、比较器:比较器A寄存器(1个) 7、Flash:flash读写(1个) 8、异步通信:异步通信寄存器设置(1个) 9、ADC:ADC12寄存器设置(1个) 二、开发板模块简单程序【56个】 1、LED流水灯实验(红、黄、绿) (1)LED1:检测开发板 (2)LED2:普通IO控制闪烁 (3)LED3:PWM信号控制闪烁 2、蜂鸣器实验 (1)蜂鸣器1:单频音(步进变音调) (2)蜂鸣器2:奏乐(祝你平安) 3、数码管实验 (1)数码管1(显示123456) (2)数码管2(动态显示0~F) (3)数码管3(流动光圈) (4)数码管4(来回光标) 4、4×1独立按键实验 (1)4×1键盘1:扫描数码管显示 (2)4×1键盘2:中断数码管显示 (3)4×1键盘3:控制LED (4)4×1键盘4:控制蜂鸣器 5、4×4矩阵键盘实验 (1)4×4键盘1:行列扫描数码管显示 (2)4×4键盘2:行列扫描1602液晶显示 (3)4×4键盘3:控制LED蜂鸣器 6、1602液晶实验 (1)1602液晶1:动态字符显示 (2)1602液晶2:静态字符显示 (3)1602液晶3:内部时钟显示 7、3.3V-5V电平转换实验 (1)电平转换1:输出5V方波 (2)电平转换2:输出不同占空比的方波 (3)电平转换3:MCLK,SMCLK,ACLK 8、RS232接口实验 (1)RS232接口1:MCU发送数据PC机显示 (2)RS232接口2:按键控制MCU发送数据PC机显示 (3)RS232接口3:PC机发送数据MCU液晶显示 (4)RS232接口4:MCU回发接收到的PC机数据 (5)RS232接口5:RS232控制蜂鸣器 9、RS485接口实验 (1)RS485接口1:发送程序 (2)RS485接口2:接收程序 10、USB接口实验 (1)USB接口1:简单连接测试 (2)USB接口2:USB接收数据 (3)USB接口3:USB发送数据 11、PS2接口实验 (1)PS2接口1: PS2控制1602显示 (2)PS2接口2: PS2控制数码管显示 (3)PS2接口3:PS2控制LED和蜂鸣器 12、12-Bit高精度温度传感器实验 (1)温度传感器1:DS18B20在数码管显示 (2)温度传感器2:DS18B20在液晶显示 13、RTC实时时钟实验 (1)实时时钟1:DS1302测试 (2)实时时钟2:DS1302电子钟 14、2k Bit EEPROM实验 (1)EEPROM1:AT24C02测试 (2)EEPROM2:读出数据通过串口在PC机显示 15、12-Bit模数转换器(ADC)接口实验 (1)模数转换器1:ADC在数码管显示 (2)模数转换器2:ADC在1602液晶在显示 (3)模数转换器3:ADC通过串口在PC机显示 16、8-Bit数模转换器(DAC)实验 (1)数模转换器1:DAC控制LED (2)数模转换器2:DAC输出电压,ADC采样转换并在液晶上显示 17、12864液晶实验(与12864液晶配套) (1)12864液晶并口1:字符显示 (2)12864液晶并口2:汉字显示 (3)12864液晶并口3:图形显示 (4)12864液晶并口4:综合演示 (5)12864液晶串口5:字符显示 (6)12864液晶串口6:汉字显示 (7)12864液晶串口7:图形显示 (8)12864液晶串口8:综合演示 18、射频模块CC1000实验 (1)射频模块1:发送数据 (2)射频模块2:接收数据 19、ucos移植 注:17、18程序随模块赠送 三、开发板综合程序【30】 1、键盘综合实验 (1)4×4键盘+蜂鸣器+LED+数码管显示 (2)4×4键盘+蜂鸣器+LED+1602液晶显示 (3)4×4键盘+蜂鸣器+LED+PC机显示 (4)PS2键盘+UART+PC机显示 (5)PS2键盘+USB+PC机显示
MSP430+程序集合.rar
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8"><meta name="generator" content="pdf2htmlEX"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/base.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/css/fancy.min.css"><link rel="stylesheet" href="https://csdnimg.cn/release/download_crawler_static/4347397/raw.css"><script src="https://csdnimg.cn/release/download_crawler_static/js/compatibility.min.js"></script><script src="https://csdnimg.cn/release/download_crawler_static/js/pdf2htmlEX.min.js"></script><script>try{pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({});}catch(e){}</script><title></title></head><body><div id="sidebar" style="display: none"><div id="outline"></div></div><div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://csdnimg.cn/release/download_crawler_static/4347397/bg1.jpg"><div class="t m0 x1 h2 y1 ff1 fs0 fc0 sc0 ls0 ws0">&#19968;&#12289;&#22522;&#30784;&#23454;&#39564;&#12304;<span class="ff2 sc1 ls1">10<span class="_"> </span></span>&#20010;&#12305;<span class="ff2 sc1 ls1"> </span></div><div class="t m0 x2 h3 y2 ff3 fs1 fc0 sc1 ls1 ws0">1<span class="ff1">&#12289;&#20837;&#38376;&#35797;&#39564;&#65306;</span><span class="ls2">LED<span class="_"> </span></span><span class="ff1">&#38378;&#28865;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y3 ff3 fs1 fc0 sc1 ls1 ws0">2<span class="ff1">&#12289;&#26102;&#38047;&#23454;&#39564;&#65306;&#35774;&#32622;<span class="_ _0"> </span></span><span class="ls3">MCLK</span><span class="ff1">&#12289;</span><span class="ls4">ACLK</span><span class="ff1">&#12289;</span><span class="ls5">SMCLK</span><span class="ff1">&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y4 ff3 fs1 fc0 sc1 ls1 ws0">3<span class="ff1">&#12289;&#20302;&#21151;&#32791;&#23454;&#39564;&#65306;&#35774;&#32622;&#20302;&#21151;&#32791;&#27169;&#24335;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y5 ff3 fs1 fc0 sc1 ls1 ws0">4<span class="ff1">&#12289;</span><span class="ls6">IO<span class="_"> </span></span><span class="ff1">&#31471;&#21475;&#35797;&#39564;&#65306;</span><span class="ls6 ws1"> IO<span class="_ _0"> </span></span><span class="ff1">&#31471;&#21475;&#23492;&#23384;&#22120;&#35774;&#32622;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y6 ff3 fs1 fc0 sc1 ls1 ws0">5<span class="ff1">&#12289;&#23450;&#26102;&#22120;&#65306;&#30475;&#38376;&#29399;&#23450;&#26102;&#22120;&#12289;</span><span class="ls7">Ti<span class="_ _1"></span>m<span class="_ _1"></span>e<span class="_ _1"></span>r<span class="_ _1"></span>A<span class="_ _2"> </span></span><span class="ff1">&#23492;&#23384;&#22120;&#35774;&#32622;&#65288;</span>2<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y7 ff3 fs1 fc0 sc1 ls1 ws0">6<span class="ff1">&#12289;&#27604;&#36739;&#22120;&#65306;&#27604;&#36739;&#22120;<span class="_ _0"> </span></span>A<span class="_"> </span><span class="ff1">&#23492;&#23384;&#22120;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y8 ff3 fs1 fc0 sc1 ls1 ws0">7<span class="ff1">&#12289;</span><span class="ls8">Flash</span><span class="ff1">&#65306;</span><span class="ls9">flash<span class="_"> </span></span><span class="ff1">&#35835;&#20889;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 y9 ff3 fs1 fc0 sc1 ls1 ws0">8<span class="ff1">&#12289;&#24322;&#27493;&#36890;&#20449;&#65306;&#24322;&#27493;&#36890;&#20449;&#23492;&#23384;&#22120;&#35774;&#32622;&#65288;</span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x2 h3 ya ff3 fs1 fc0 sc1 ls1 ws0">9<span class="ff1">&#12289;</span><span class="lsa">ADC</span><span class="ff1">&#65306;</span><span class="lsb">ADC12<span class="_"> </span><span class="ff1 ls8">&#23492;&#23384;&#22120;&#35774;&#32622;&#65288;</span></span>1<span class="_"> </span><span class="ff1">&#20010;&#65289;</span> </div><div class="t m0 x1 h2 yb ff1 fs0 fc0 sc0 ls0 ws0">&#20108;&#12289;&#24320;&#21457;&#26495;&#27169;&#22359;&#31616;&#21333;&#31243;&#24207;&#12304;<span class="ff2 sc1 ls1">56<span class="_"> </span></span>&#20010;&#12305;<span class="ff2 sc1 ls1"> </span></div><div class="t m0 x2 h4 yc ff3 fs2 fc0 sc1 ls1 ws0">1<span class="ff1">&#12289;</span><span class="lsc">LED<span class="_"> </span><span class="ff1 lsd">&#27969;&#27700;&#28783;&#23454;&#39564;&#65288;&#32418;&#12289;&#40644;&#12289;&#32511;&#65289;</span></span> </div><div class="t m0 x3 h3 yd ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">1</span>&#65289;<span class="ff3 lsb">LED1</span>&#65306;&#26816;&#27979;&#24320;&#21457;&#26495;<span class="ff3"> </span></div><div class="t m0 x3 h3 ye ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">2</span>&#65289;<span class="ff3 lsb">LED2</span>&#65306;&#26222;&#36890;<span class="_ _0"> </span><span class="ff3 ls6">IO<span class="_"> </span></span>&#25511;&#21046;&#38378;&#28865;<span class="ff3"> </span></div><div class="t m0 x3 h3 yf ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">3</span>&#65289;<span class="ff3 lsb">LED3</span>&#65306;<span class="ff3 lse">PWM<span class="_"> </span></span><span class="ls8">&#20449;&#21495;&#25511;&#21046;&#38378;&#28865;</span><span class="ff3"> </span></div><div class="t m0 x2 h4 y10 ff3 fs2 fc0 sc1 ls1 ws0">2<span class="ff1 lsd">&#12289;&#34562;&#40483;&#22120;&#23454;&#39564;</span> </div><div class="t m0 x3 h3 y11 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">1</span>&#65289;&#34562;&#40483;&#22120;<span class="_ _0"> </span><span class="ff3">1</span>&#65306;&#21333;&#39057;&#38899;&#65288;&#27493;&#36827;&#21464;&#38899;&#35843;&#65289;<span class="ff3"> </span></div><div class="t m0 x3 h3 y12 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">2</span>&#65289;&#34562;&#40483;&#22120;<span class="_ _0"> </span><span class="ff3">2</span>&#65306;&#22863;&#20048;<span class="ff3"> <span class="_"> </span></span>&#65288;&#31069;&#20320;&#24179;&#23433;&#65289;<span class="ff3"> </span></div><div class="t m0 x2 h4 y13 ff3 fs2 fc0 sc1 ls1 ws0">3<span class="ff1 lsd">&#12289;&#25968;&#30721;&#31649;&#23454;&#39564;</span> </div><div class="t m0 x3 h3 y14 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">1</span>&#65289;&#25968;&#30721;&#31649;<span class="_ _0"> </span><span class="ff3">1</span>&#65288;&#26174;&#31034;<span class="_ _0"> </span><span class="ff3">123456</span>&#65289;<span class="ff3"> </span></div><div class="t m0 x3 h3 y15 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">2</span>&#65289;&#25968;&#30721;&#31649;<span class="_ _0"> </span><span class="ff3">2</span>&#65288;&#21160;&#24577;&#26174;&#31034;<span class="_ _0"> </span><span class="ff3 lsf">0~F</span>&#65289;<span class="ff3"> </span></div><div class="t m0 x3 h3 y16 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">3</span>&#65289;&#25968;&#30721;&#31649;<span class="_ _0"> </span><span class="ff3">3</span>&#65288;&#27969;&#21160;&#20809;&#22280;&#65289;<span class="ff3"> </span></div><div class="t m0 x3 h3 y17 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">4</span>&#65289;&#25968;&#30721;&#31649;<span class="_ _0"> </span><span class="ff3">4</span>&#65288;&#26469;&#22238;&#20809;&#26631;&#65289;<span class="ff3"> </span></div><div class="t m0 x2 h4 y18 ff3 fs2 fc0 sc1 ls1 ws0">4<span class="ff1">&#12289;</span><span class="ls10">4&#215;1<span class="_"> </span><span class="ff1 ls11">&#29420;&#31435;&#25353;&#38190;&#23454;&#39564;</span></span> </div><div class="t m0 x3 h3 y19 ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">1</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">1<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">1</span>&#65306;&#25195;&#25551;<span class="ff3"> <span class="_"> </span></span>&#25968;&#30721;&#31649;&#26174;&#31034;<span class="ff3"> </span></div><div class="t m0 x3 h3 y1a ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">2</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">1<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">2</span>&#65306;&#20013;&#26029;<span class="ff3"> <span class="_"> </span></span>&#25968;&#30721;&#31649;&#26174;&#31034;<span class="ff3"> </span></div><div class="t m0 x3 h3 y1b ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">3</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">1<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">3</span>&#65306;&#25511;&#21046;<span class="_ _0"> </span><span class="ff3 lsb">LED </span></div><div class="t m0 x3 h3 y1c ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">4</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">1<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">4</span>&#65306;&#25511;&#21046;&#34562;&#40483;&#22120;<span class="ff3"> </span></div><div class="t m0 x2 h4 y1d ff3 fs2 fc0 sc1 ls1 ws0">5<span class="ff1">&#12289;</span><span class="ls10">4&#215;4<span class="_"> </span><span class="ff1 ls11">&#30697;&#38453;&#38190;&#30424;&#23454;&#39564;</span></span> </div><div class="t m0 x3 h3 y1e ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">1</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">4<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">1</span>&#65306;&#34892;&#21015;&#25195;&#25551;&#25968;&#30721;&#31649;&#26174;&#31034;<span class="ff3"> </span></div><div class="t m0 x3 h3 y1f ff1 fs1 fc0 sc1 ls1 ws0">&#65288;<span class="ff3">2</span>&#65289;<span class="ff3">4</span>&#215;<span class="ff3">4<span class="_"> </span></span>&#38190;&#30424;<span class="_ _0"> </span><span class="ff3">2</span>&#65306;&#34892;&#21015;&#25195;&#25551;<span class="_ _0"> </span><span class="ff3">1602<span class="_"> </span></span>&#28082;&#26230;&#26174;&#31034;<span class="ff3"> </span></div></div><div class="pi" data-data='{"ctm":[1.611639,0.000000,0.000000,1.611639,0.000000,0.000000]}'></div></div></body></html>
评论
    相关推荐