基于MSP430单片机三相正弦波形发生器设计解析.doc
文本预览下载声明
吉林化工学院毕业设计说明书
基于MSP430单片机三相正弦波形发生器设计
Design of Three-phase Sine Wave Generator Based on MSP430 Microcomputer
学生学号:
学生姓名: 周俊龙
专业班级: 自动1103
指导教师: 吴兴波
职 称: 副教授
起止日期: 2015.03.09~2015.06.26
吉 林 化 工 学 院
Jilin Institute of Chemical Technology摘 要
随着科技的发展和现代科研的需要,信号发生器已经成为了很多行业进行研究测试不可或缺的工具。信号发生器是指产生所需参数的电测试信号的仪器。按信号波形可分为正弦信号、函数(波形)信号、脉冲信号和随机信号发生器四大类。信号发生器又称信号源或振荡器,在生产实践和科技领域中有着广泛的应。本系统采用MSP430F169单片机为控制核心,通过对单片机内部的D/A进行编程,在单片机的DAC0和DAC1两端输出两相相位差为120度的A相和B相正弦波,正弦波的频率由编程决定。通过外接反相加法器(uc=-ua-ub),合成为C相电压。外接程控放大电路,对输出的正弦波形进行幅值放大,最后通过显示器LCD1602将输出的幅值和频率显示出来。
波形的产生是通过MSP430单片机执行波形发生程序,向D/A转换器的输入端按一定的规律输入数据,从而在D/A转换电路的输出端得到相应的电压波形。通过软件编程来确定波形的形状、幅值和频率。此方案的特点是电路原理比较简单,实现起来比较容易。
关键词:MSP430F169;信号发生器;LCD1602;D/A转换器
Abstract
With the development of science and technology and modern scientific research, the signal generator has become a tool for many sectors of research and testing indispensable. Signal generator means generates electrical test signals required parameters for the instrument. Press the signal waveform can be divided into a sinusoidal signal, function (waveform) signals, pulse signal and random signal generator four categories. Also known as the signal source signal generator or oscillator, in production practices and technology areas it has a wide range of applications. The system uses MSP430F169 microcontroller core, microcontroller via the internal D / A to be programmed at both ends of the microcontroller DAC0 and DAC1 output two-phase phase difference of 120 degrees of A-phase and B-phase sine wave, sine wave frequency is Programming decisions. Anti-adder (uc = -ua-ub) by an external, synthesized as C-phase voltage. External programmable amplifier, the output sine wave Amplitude amplification, amplitude and frequency Finally LCD1602 display output is displayed.
Waveform generation is performed through MSP430 microcontroller waveform generation program, the D / A converter input of the
显示全部