【正文】
/ XFER. Figure 23, when the ILE is high, the chip select signal / CS and the write signal / WR1 is low, the input register control signal, in which case, the output of the input register with the input changes. Thereafter, when the high / WR1 low, the control signals bee low at this time, the data is latched into the input register, input register output is no longer with the change of the external data second stage latch transfer control signal / XFER and write signal / WR2 at the same time is low, the two latch control signal is high, the output of the 8bit DAC register with the input, then when / WR2 from low, the control signal goes low, so the input register is latched into the DAC register.Figure 23 the rest of the pin function defined as follows:(DI7 ~ DI0 in: 1) 8bit data input, DI7 highest.(2) IOUT1: analog current output terminal 1, when the data in the DAC register are all 1, the maximum output current, the DAC register data are all 0, the output current is 0.(3) IOUT2??: analog current output, IOUT2 ??and IOUT1 and is a constant, that is IOUT1 the + IOUT2 ??= constant.(4) the RFB: feedback resistor terminal of DAC0832 internal feedback resistor, RFBside can be directly connected to an external op amp39。s central processing unit CPU, memory, registers, the I / O interface to production in an integrated circuit chip, which constitute a relatively plete puter, and its cheap.1 by the MCU to control the D / A output three kinds of waveforms.4), need to display the waveform types and frequency device selection3) The waveform frequency is adjustable2), three waveforms can be selected via the keyboard1), the use of singlechip software design produces three waveformsDesign requirementsThe design of microcontrollerbased signal generatorHuang Pengyong(Meizhou Bay Vocational Technical College, Putian, Fujian, 351 254)Abstract Waveform generator, a simple function signal generator, a produce a variety of waveforms, such as the triangle wave, sawtooth wave, square wave, sine waveform circuit. Function signal generator circuit experiments and equipment, instruments with a wide range of uses. By the principle of the function generator, as well as structure analysis, can be designed one can transform the triangle wave, sawtooth wave, square wave, sine function waveform generator. Function signal generator signals in industrial production and scientific research to measure the performance and parameters of the ponents, electrical and electronic products index validation, parameter adjustment, and performance appraisal. Most of the monly used signal generator by an analog circuit, this analog signal generator for lowfrequency signal output often requires the RC value, so that not only the parameters of accuracy is difficult to guarantee, but the size and power consumption are large by the digital circuit posed of lowfrequency signal generator, although its performance is good, but larger, more expensive, highprecision, wide amplitude modulation will bee the trend of the digital signal generator. This article describes the 89C52 microcontroller and digital to analog converter DAC0832 to produce the desired signal of the low frequency signal source, the signal amplitude and frequency can be controlled as required. The article briefly describes the structure of principles and use of the DAC0832 digitaltoanalog converter, the 89C52 basic theory and design of circuits a variety of chips. The paper focuses on how to use microcontroller to control the D / A converter to produce the hardware and software programming of the above signals. The signal frequency range is also adjustable as required.The core of the design tasks are: AT89C52 as the D / A converter and DAC0832 devices, circuit simulation software, design hardware drivers written in C, in order to achieve process control to produce sine wave, triangle wave, square wave, three monly used lowfrequency signals. Waveforms and enter any frequency value can be selected via the keyboard.Key words: on AT89C52 function waveform generator DAC0832 square wave, triangle wave, sine wave1 Introduction SCM is an integrated circuit chip, VLSI technology with data processing capability of the ce