Function Generator Using 8051
Function Generator Using 8051
Overview
Aim: To generate sine, rectangular and triangular waveforms using 8051. DAC 0808 will convert 8-bit digital output of 8051 to analog value. It uses R/2R ladder method for conversion from D 2 A.
Iout = Iref {(D7/2)+(D6/4)+(D5/8)+(D4/16)+(D3/32)+(D2/64)+(D1/128)+(D0/256)} where, D0 LSB, D7 MSB, Iref 2mA fixed current
Output is available in the form of current at Iout pin of DAC. After amplification it is provided to the Oscilloscope.
Block Diagram
+5v
8051
DAC 0808
Vref(+) Vcc
1k 1.5k
P1.0
D0
Vref(-)
CRO
P1.7
D7
Comp.
5k pot 100pF
Wavefrom
Volts 10 9 8 7 6 5 4 3 2 1 0 30 60 90 120 150 180 Degrees 210 240 270 300 330 360
8LERO]SY