0
7.7kviews
Draw a labelled interfacing diagram of DAC 0808 with 8951 microcontroller. Also write a C program to generate triangular waveform using DAC. OR Draw the interfacing of DAC 0808 with 89C51.
1 Answer
0
358views

enter image description here

#include< reg51.h>

unsigned char d;

void main(void)

{

    while(1)

    {

        for(d=0; d<255; d++)

        {

            P1 = d;

        }

        for(d=255; d>0; d--)

        {

            P1 = d;

        }

    }

}
Please log in to add an answer.