Loop frequency


hi,

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

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support