L
Lowell
Hello,
i need to read from a variable every 'x' microseconds. Someone can help
me?
Thanks!
i need to read from a variable every 'x' microseconds. Someone can help
me?
Thanks!
Lowell said:i need to read from a variable every 'x' microseconds. Someone can help
me?
Lowell said:Hello,
i need to read from a variable every 'x' microseconds. Someone can help
me?
Thanks!
Ben Pfaff said:Lowell said:i need to read from a variable every 'x' microseconds. Someone can
help
me?
Maybe you could explain what difficulty you're having. But I
should warn you, first, that the standard C language and library
don't provide much support for this kind of thing. You're likely
to need to resort to implementation-specific constructs, which
are more likely to be handled well by a newsgroup specific to
your implementation than by comp.lang.c.
--
int main(void){char
p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int
putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof
p-1;putchar(p\
);}return 0;}
Ben Pfaff said:Maybe you could explain what difficulty you're having. But ILowell said:i need to read from a variable every 'x' microseconds. Someone can
help
me?
should warn you, first, that the standard C language and library
don't provide much support for this kind of thing. You're likely
to need to resort to implementation-specific constructs, which
are more likely to be handled well by a newsgroup specific to
your implementation than by comp.lang.c.
--
int main(void){char
p[]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.\
\n",*q="kl BIcNBFr.NKEzjwCIxNJC";int i=sizeof p/2;char *strchr();int
putchar(\
);while(*q){i+=strchr(p,*q++)-p;if(i>=(int)sizeof p)i-=sizeof
p-1;putchar(p\
);}return 0;}
I use a DSP (ADSP 2181) and i must read from data bus and put the data into
array every 'x' microseconds. I believed that ansi C supported this
function...
Thanks however...
I think you can use signals...But, at the same time I will caution youLowell said:Hello,
i need to read from a variable every 'x' microseconds. Someone can help
me?
Thanks!
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.