摘要单片微型计算机(简称单片机)作为微型计算机的一个很重要的分支,自它诞生以来至今,以其极高的性能价格比以及一系列人所共识的优点,受到越来越多的工程技术人员的重视。现在,单片机已广泛地应用在智能仪器仪表、机电设备过程控制、自动检测、家用电器和数据处理等各个方面,有着宽阔的进展前景。 本文介绍一种用 AT89C51 单片机构成的波形发生器,可产生方波、三角波、正弦波、锯齿波等多种波形,波形的周期可用程序改变,并可根据需要选择单极性输出或双极性输出,具有线路简单、结构紧凑、性能优越等特点。文章给出了源代码,通过仿真测试,其性能指标达到了设计要求。关键词:单片机;DAC;信号发生器 Abstract Single chip microcomputer ( referred to as the single chip microcomputer ) as a very important branch, since its birth date, with its high performance price ratio and a series of well known advantages, being more and more the attention of project technology personnel. Now, SCM has been widely used in intelligent instrumentation, electrical and mechanical equipment process control, automatic detection, household appliances and data processing and other aspects, there are broad prospects for development. This paper introduces a kind of AT89C51single chip waveform generator, can produce square wave, triangle wave, sine wave, sawtooth wave and other wave, waveform cycle can be used to change procedures, and in accordance with the need to select the output unipolar or bipolar output, has simple circuit, compact structure, superior performance characteristics. The article gives the source code, through simulation test, the performance indicators have reached the design requirements.Keywords :Single chip microcomputer; DAC; signal generator 目 录1 绪论 近年来,单片微型计算机以其强大的生命力飞速进展,在工业控制、智能仪器仪表、智能化设备和家用电器等领域得到了广泛的应用,因而引起了各行各业的极大关注,有着宽阔的进展前景。论文设计的是一个单片机控制多功能信...