Pages

program for Dual DAC, RAMP wave in 8051


#include <REG51xD2.H>
main()
{
unsigned char i=0;
P0 = 0x00; /* P0 as Output port */
while(1)
{
for(i=0;i<0xff;i++)
{
P1 = i;
P0 = i;
}
P0 = 0;
P1 =0;
}
}

0 comments:

Post a Comment