摘要:宽频函数信号发生器主要完成各种波形信号的产生与任意波形的合成,本设计以单片机系统为控制核心,设计宽频函数信号发生器的硬件电路和单片机系统软件。实现正弦波、方波、三角波、脉冲等多种函数波形信号的输出。用户可根据实际需要,由键盘设定产生函数波形信号的类型、幅度、频率等参数。
本设计宽频函数信号发生器由89C51、四路D/A转换器TLC7226、四运放LM334、MAX038、程控模拟信号放大器和低通滤波器组成。通过键盘设定函数波形种类、频率、幅度、占空比等参数的一个信号进入单片机89C51控制,由MAX038产生各种波形信号,在此过程中信号通过四通道D/A转换器产生模拟电压和电流,它再通过运放将模拟的信号放大,它进入MAX038的频率粗调端IIN、微调端FADJ、占空比控制端DADJ、在它的COSC端口接一个继电器和三个振荡电容作为频率选择。
系统软件由主监控软件、键盘显示器管理模块、外设中断管理处理模块、各功能模块和数据表模块构成。监控主程序是系统软件的主程序,是整个仪器软件的核心,上电复位后仪器首先进入监控主程序。它的任务是识别命令、解释命令,并获得完成该命令的相应模块的入口,起着引导仪器进入正常工作状态,并协调各部分软件有条不紊地工作的重要作用。
本文设计的宽频函数信号发生器具有操作简单、低成本、高性能、可靠性与稳定性较好、易于控制的优点。
关键词:信号发生器;MAX038;单片机;宽频
Abstract:Wide-Frequency main function signal generator complete the various signals generated and arbitrary waveform synthesis,The design of a microcomputer system for the control of the core function of the design of Wide-Frequency signal generator hardware circuit and system software。Achieve sine,square,triangle wave,a variety of functions such as pulse waveform of the output signal。Users can light of the actual needs,from the keyboard settings have a function of the type of signal waveform,amplitude,frequency and other parameters。
The design of the Wide-Frequency signal generator function by 89C51,Four D/A converters TLC7226. 4 LM334 operational amplifier,MAX038,programmable analog signal amplifier and low-pass filter components。Keyboard function set through waveform type,frequency,amplitude,duty cycle,and other parameters of a signal to the microprocessor 89C51 control,MAX038 generated by the various signals,In this process,four-channel signal through D/A converters have simulated voltage and current,It transported up through the analog signal amplification,it enters the frequency MAX038 coarse-IIN,fine-tuning FADJ end,the duty cycle control-DADJ. In its COSC port received a three relays and oscillation frequency capacitance as a choice。
System software made by the monitoring software,keyboard monitor management module,peripherals interrupted management module,various functional modules and data tables modules。Monitoring software is the main program of the main program,the whole apparatus of the core software,After the reduction of electronic access control equipment first main program。Its mission is to identify order to explain the order and the order was completed in the corresponding module for the import,guide the machines into play a normal working condition,and to coordinate parts of the software in an orderly manner the important role。
This paper describes the design of the Wide-Frequency signal generator function is simple、low cost、high performance、reliability and stability is better easier to control the merits。
Key words:function generator;MAX038;microcontrolle;Wide -Frequency