您好,欢迎访问三七文档
当前位置:首页 > 电子/通信 > 综合/其它 > 基于MSP430单片机三相正弦波形发生器设计
吉林化工学院毕业设计说明书基于MSP430单片机三相正弦波形发生器设计DesignofThree-phaseSineWaveGeneratorBasedonMSP430Microcomputer学生学号:11510321学生姓名:周俊龙专业班级:自动1103指导教师:吴兴波职称:副教授起止日期:2015.03.09~2015.06.26吉林化工学院JilinInstituteofChemicalTechnology吉林化工学院毕业设计说明书-I-摘要随着科技的发展和现代科研的需要,信号发生器已经成为了很多行业进行研究测试不可或缺的工具。信号发生器是指产生所需参数的电测试信号的仪器。按信号波形可分为正弦信号、函数(波形)信号、脉冲信号和随机信号发生器四大类。信号发生器又称信号源或振荡器,在生产实践和科技领域中有着广泛的应。本系统采用MSP430F169单片机为控制核心,通过对单片机内部的D/A进行编程,在单片机的DAC0和DAC1两端输出两相相位差为120度的A相和B相正弦波,正弦波的频率由编程决定。通过外接反相加法器(uc=-ua-ub),合成为C相电压。外接程控放大电路,对输出的正弦波形进行幅值放大,最后通过显示器LCD1602将输出的幅值和频率显示出来。波形的产生是通过MSP430单片机执行波形发生程序,向D/A转换器的输入端按一定的规律输入数据,从而在D/A转换电路的输出端得到相应的电压波形。通过软件编程来确定波形的形状、幅值和频率。此方案的特点是电路原理比较简单,实现起来比较容易。关键词:MSP430F169;信号发生器;LCD1602;D/A转换器基于MSP430单片机三相正弦波形发生器设计-II-AbstractWiththedevelopmentofscienceandtechnologyandmodernscientificresearch,thesignalgeneratorhasbecomeatoolformanysectorsofresearchandtestingindispensable.Signalgeneratormeansgenerateselectricaltestsignalsrequiredparametersfortheinstrument.Pressthesignalwaveformcanbedividedintoasinusoidalsignal,function(waveform)signals,pulsesignalandrandomsignalgeneratorfourcategories.Alsoknownasthesignalsourcesignalgeneratororoscillator,inproductionpracticesandtechnologyareasithasawiderangeofapplications.ThesystemusesMSP430F169microcontrollercore,microcontrollerviatheinternalD/AtobeprogrammedatbothendsofthemicrocontrollerDAC0andDAC1outputtwo-phasephasedifferenceof120degreesofA-phaseandB-phasesinewave,sinewavefrequencyisProgrammingdecisions.Anti-adder(uc=-ua-ub)byanexternal,synthesizedasC-phasevoltage.Externalprogrammableamplifier,theoutputsinewaveAmplitudeamplification,amplitudeandfrequencyFinallyLCD1602displayoutputisdisplayed.WaveformgenerationisperformedthroughMSP430microcontrollerwaveformgenerationprogram,theD/Aconverterinputoftheinputdataaccordingtocertainrules,sothatD/Aconversioncircuitoftheoutputofthecorrespondingvoltagewaveform.Todeterminetheshape,amplitudeandfrequencyofthewaveformbysoftwareprogramming.Thisprogramfeaturesisacircuitprincipleisrelativelysimple,relativelyeasytoimplement.Keywords:MSP430F169;signalgenerator;LCD1602;D/Aconverter吉林化工学院毕业设计说明书-III-目录摘要....................................................................................................................................IAbstract.....................................................................................................................................II第1章概述...........................................................................................................................11.1信号发生器设计背景...............................................................................................11.2信号发生器的发展现状...........................................................................................11.3本设计采用的研究方法和技术路线......................................................................2第2章芯片介绍.....................................................................................................................32.1MSP430单片机技术的发展特点及应用...............................................................32.1.1MSP430单片机技术的发展特点.................................................................32.1.2单片机的应用................................................................................................52.2MSP430F169概述.....................................................................................................52.2.1DAC模块的主要性能指标...........................................................................92.2.2MSP430F169单片机中的D/A功能...........................................................92.1.3MSP430F169单片机的引脚......................................................................102.2LCD1602液晶显示器简介...................................................................................112.2.1LCD1602液晶显示器的引脚说明............................................................112.2.2寄存器选择控制表.....................................................................................11第3章系统硬件设计.........................................................................................................133.1基于MSP430F169信号发生器构成及工作原理..............................................133.2MSP430F169小系统构成.....................................................................................143.3信号发生器的键盘电路........................................................................................153.4反相加法器电路设计............................................................................................163.5程控放大电路设计................................................................................................163.6信号发生器的LCD1602显示模块.....................................................................183.7正弦基波数值计算方法........................................................................................193.7.1幅值计算方法.............................................................................................193.7.2定时中断时间常数计算方法....................................................................193.7.3A和B相相位移调整方法........................................................................193.8电源电路设计....................
本文标题:基于MSP430单片机三相正弦波形发生器设计
链接地址:https://www.777doc.com/doc-2534600 .html