0
7.5kviews
Write C language program to generate a triangular wave by using DAC0808.
1 Answer
written 5.9 years ago by | • modified 5.9 years ago |
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:
}
}
}