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
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
I can't figure out if this could be homework or not, but I will say that milliseconds are normally larger than microseconds, not smaller.
Marc
In message , snipped-for-privacy@wanadoo.es writes
-- 8< - snip - 8< --
Try re-arranging the _integer_ division and multiplication.
e.g. for a wait of 5 us
(5 / 1000000) = 0 (5 / 1000000) * 80000000 = 0
5 * (80000000 / 1000000) = 400Rich
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.