Function generator using 8051

6,329 views

Published on

Function generator using 8051 microcontroller

Published in: Education
  • Be the first to comment

  • Be the first to like this

Function generator using 8051

  1. 1. Prepared by <br />Mr. Paresh R. Kamble<br />Guided by<br />Prof. AnishGoel<br />
  2. 2. Overview<br /><ul><li>Aim: To generate sine, rectangular and triangular waveforms using 8051.
  3. 3. DAC 0808 will convert 8-bit digital output of 8051 to analog value.
  4. 4. It uses R/2R ladder method for conversion from D 2 A.
  5. 5. Iout = Iref{(D7/2)+(D6/4)+(D5/8)+(D4/16)+(D3/32)+(D2/64)+(D1/128)+(D0/256)}</li></ul> where, D0 – LSB, D7 – MSB, Iref– 2mA fixed current<br /><ul><li>Output is available in the form of current at Iout pin of DAC.
  6. 6. After amplification it is provided to the Oscilloscope.</li></li></ul><li>Block Diagram<br /> +5v <br /> 1k<br /> 1.5k<br />Vref(+) <br />Vref(-)<br /> 2.5k CRO<br />IoutVout = 0 – 10v<br />Comp. 5k pot<br /> 100pF<br />Vee<br /> -12v<br />8051<br />DAC 0808<br />Vcc<br />D0<br />D7<br /> GND<br />P1.0<br />P1.7<br />
  7. 7. Sine wave details:<br />
  8. 8. Wavefrom<br />Volts<br />10<br />9<br />8<br />7<br />6<br />5<br />4<br />3<br />2<br />1<br /> 0 30 60 90 120 150 180 210 240 270 300 330 360 <br /> Degrees<br />Angle vs Voltage Magnitude for Sine wave<br />
  9. 9. Thank you !<br />

×