1、简易低频信号源设计 I 摘 要 信号发生器是一种经常使用的设备,由纯粹物理器件构成的传统的设计方法存在许 多弊端,如体积较大、重量较沉、移动不方便、信号失真较大,无法满足用户对精度、 便携性、稳定性等要求。本课题设计一种基于单片机控制技术与数模转化技术的低频信 号发生系统,涉及单片机最小系统、D/A转换电路、放大电路及电源电路等硬件模块, 涉及主程序、三角波产生函数、方波产生函数、正弦波产生函数、键处理函数及显示函 数等软件模块。通过硬件电路和软件程序相结合,,输出自定义波形,波形的频率和幅 度在一定范围内可任意改变。从调试结果看,该系统能控制产生方波、三角波、正弦波, 频率范围1-1KHz、
2、信号幅度0-5V,实现了设计任务规定的功能。该低频信号发生器具有 频率稳定、准确、波形质量好、操作方便、体积小、耗电少等特点, 满足了工业领域对 信号源的要求。 关键词:低频信号, D/A 转换,单片机 简易低频信号源设计 II ABSTRACT Signal generator is a kind of device that is used frequently,design method is constituted by a purely physical and traditional device that has many drawbacks, such as the large
3、r weight than the sink, mobile inconvenient larger, the signal distortion, and can not meet the user on the accuracy, portable and stability requirements. This topic is to design a low-frequency signal generation system which based on the single-chip control technology and digital-to-analog conversi
4、on techniques, involving hardware module of the micro controller minimum system, D / A conversion circuit, amplifier circuit, and a power supply circuit, and relates to the main program, the triangle wave generating function, square wave generating function, sine wave generator function, a function
5、of the key processing and display functions such as software modules. Combination of hardware circuitry and software program, the output of the custom waveform, frequency and amplitude of the waveform within a certain range can be arbitrarily changed. From the debug result, the system can be control
6、led to generate a square wave, triangle wave, sine wave, the frequency range 1-1KHz signal amplitude 0-5V, to achieve design mandate. The low frequency signal generator with a frequency stability, accurate, waveform quality, easy operation, small size, low power consumption and other features to meet the requirements of the industrial areas of the signal source. Key words: low-frequency signal, D/A converter, single-ch