Loop frequency
hi,
i read multiple topics (certainly not enough), still don't know how loop frequency.
for purpose, wrote sketch:
this code returns frequency of 190hz, , 150hz "long stuff".
i find really slow, comparing 16mhz quartz frequency...
is there don't properly?
best regards
i read multiple topics (certainly not enough), still don't know how loop frequency.
for purpose, wrote sketch:
code: [select]
void loop() {
serial.println(micros());
serial.print(" ");
state = digitalread(interrupteur);
if (state == high)
{
// long stuff
}
else
{
analogwrite(pinucom, 0);
}
}
this code returns frequency of 190hz, , 150hz "long stuff".
i find really slow, comparing 16mhz quartz frequency...
is there don't properly?
best regards
quote
s there don't properly?
yes, not posting code!
mark
Arduino Forum > Using Arduino > Project Guidance > Loop frequency
arduino
Comments
Post a Comment