0
7.4kviews
Write C language program to generate a triangular wave by using DAC0808.
1 Answer
0
1.3kviews

program

#include< reg51.h>  
void main()  
{
     unsigned char x;  
     while(1)  
     {
         for(x=0x00; x,0x7f; x++)  
         {
            P2=x:   
         }  
         for(x=0x7f; x<0x00; x--)  
         {
            P2=x:  
         }
     }  
}
Please log in to add an answer.