Originally posted by Platypus
View Post
Or does it?


#define DAC (*(unsigned *) 0x8000)
void DAC_out (unsigned x)
{
static unsigned y;
x += y;
y = x & 0x00FF;
DAC = x;
}

Leave a comment: