please i'm beginner,i wanna generate deferent analog signal by using the dac08 and a PIC,how can i increment the output (PORTF for exemple)from 0x00 to 0xff using a loop of course
i wanna get something like that
void delay(void)
{
unsigned int i;
while(++i!=1000);
}
I have assumed that u are programming in C.
It can also be done in assembly quite easily.
I have used the delay function to generate some delay after sending a particular value to the port. You can increase or decrease this delay depending upon the type of signal that u want to generate.