利用AT89C51单片机为核心模块,设计了一种智能信号发生器,可实现锯齿波、三角波、方波和正弦波4种波形.给出了信号发生器结构框图和硬件接口电路图,结合键盘来控制波形的选择和频率的变化,编写软件算法可实现信号频率按百分比、指数、对数方式递增或递减,产生的信号经D/A转换器转换成模拟波形,再通过12864液晶输出显示其波形和频率值.利用Proteus软件进行仿真实验,结果表明,该信号发生器可输出多种信号和频率可调节功能,信号稳定,频率值精确,为教学和科研提供了极大的便利.
Using AT89C51 as the core modules,this article designed an intelligent signal generator,which can produce sawtooth wave, triangle wave, square wave and sine wave. Signal generator structure diagram and the Hardware interface circuit diagram are given, combining with the keyboard to control the choice and frequency of waveform changes,write the software algorithm can realize signal frequency according to the percentage increasing or decreasing, exponential,logarithmic way,through D/A converter converts the signals produced by analog waveform, and by 12864 output liquid crystal display the waveform and frequency values. Using computer software Proteus simulation and experimental results show that the generator can output a variety of signals and frequency adjustable function, and stable signals, frequency accuracy,it brings great convenience to school teaching and research.