Guest
Hi, somebody can tell me how can I make a counter (that count 1,6ms
and other that count microseconds) I make it:
static macro proc espera2 (time)
{
unsigned 64 i;
for (i=0; i<(time/1000000)*80000000;i++)
delay;
} // wait miliseconds
static macro proc espera (time)
{
unsigned 64 i;
for (i=0; i<(time/1000)*80000000;i++)
delay;
} // wait microseconds
but don't do it well. The clock is 80MHz.
Thats
and other that count microseconds) I make it:
static macro proc espera2 (time)
{
unsigned 64 i;
for (i=0; i<(time/1000000)*80000000;i++)
delay;
} // wait miliseconds
static macro proc espera (time)
{
unsigned 64 i;
for (i=0; i<(time/1000)*80000000;i++)
delay;
} // wait microseconds
but don't do it well. The clock is 80MHz.
Thats