Background running program


i wondering if possible run function in parallel main loop. trying run interrupt delay turn on , off output @ same time want keep main program running. not worried main program making sure interupt function works ( runs @ 120hz).

thanks help!

an interrupt input far know.  so on basis use timer ic pulse input use ensure call subroutine invert output pin.

how critical 120hz output?  if float between 120-122hz, don't see why couldn't have subroutine compares current millis previous execution millis, , if enough time has passed, invert output pin?  you call sub routine between each section of main program (depending how heavy main loop is) ensure didn't miss it.  hope makes sense.


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Background running program


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums