摘要随着时代的进步和科技的快速发展,信号发生器在人类生活中的运用变得越来越普 遍。从科技实验到生产制造,无不存在它的影子,它在许多方面都发挥着重要的作用。 那么,什么是信号发生器呢?信号发生器是指在电子测量中被用来产生测试信号的信号 来源,因此常常被称为信号源,它能够提供稳定的可靠的信号。信号发生器够通过设置 来调控波形、幅度、频率等信号参数。信号发生器有多种设计模式,本课题就对用 MSP 单片机设计信号发生器做出了简要的设计。83861
在本篇文章中,首先就本设计的研究背景和发展现状进行了简单的介绍,接着详细 地说明了单片机与信号发生器主要的工作机理,最后以本工作机理为依据,构建出一套 硬软件的设计方案,并且还对各个工作模块进行了详细的介绍。
该设计在单片机 MSP430F149 上进行的,方案主要研究的是函数信号发生器。首先, 通过 MSP430 系统产生数字信号,再通过 D/A 转换器按照一定的规律将发生数据转换成 相对应的电压与波形。之后利用 MSP430 上的键盘模块来控制三种波形(三角波、正弦 波和 PWM 波)的种类、峰峰值(或占空比)与频率,能够按不同的按键产生相对应的波 形。最后在通过 LCD1602 显示所选择的波形与其频率和峰峰值(或占空比)。总的系统 由硬件设计与程序设计两大模块组成。此方案能够简单的实现且电路原理也十分简单。 关键词:MSP430F149 信号发生器 LCD1602
ABSTRACT With the progress of the times and the rapid development of science and technology, the use of signal generator in human life is becoming more and more common。 From science and technology to the production and manufacture, without exception, there is its shadow。 It plays an important role in many aspects。 So, what is the signal generator? Signal generator is used to generate the signal source of the test signal in the electronic measurement, so it is often called the signal source。 It can provide a stable and reliable signal。 Signal generator can control the waveform, amplitude, frequency and other signal parameters through settings in advance。 Signal generator has a variety of design patterns, the topic on design of signal generator based on MSP microcontroller made a brief demonstration。
In this article, first of all, the research background and development status of the design are briefly introduced。 Then the main work mechanism of SCM and signal generator is explained in detail。 Finally, based on the mechanism of this work, a set of hardware and software design scheme is constructed, and each work module is introduced in detail。
The design on the MCU MSP430F149 mainly studies the function signal generator。 First, the digital signals generated by the MSP430 system, and then it will be converted into corresponding voltage and waveform through the D/A converter according to a certain law of the data。 After that, it can control three waveform (triangle wave, sine wave and PWM wave) species, peak to peak (or empty ratio) and frequency to generate the corresponding waveform according to the different buttons by using the MSP430 keyboard module。 Finally, the selected waveform and its frequency and peak value (or duty cycle) are displayed by LCD1602。 The total system consists of two modules: hardware design and program design。。 This scheme can be simple to achieve and the circuit is also very simple。
Keywords: LCD1602 MSP430F149 signal generator
目录
第一章绪论 1
1。1 本设计的研究背景 1
1。2 本设计的研究现状与发展趋势