Posted by Will Coffey on September 8, 2009 at 9:02pm
Hi Guys,Having trouble with implementing my arduino328 based multiplexer. Problem is with the "pulsein" command being too slow to read more than one channel. As a result the output pulses are sporadic on all the channels. The code is attached. A better description can be found at http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1252467952/0#0Thankyou very much to anyone who can help resolve this problem.Regards,Will
Pulsein sucks for more than one channel; it takes something like 40% of available CPU cycles per channel!. Use interrupt-driven code instead (see our Blimpduino code for an example)
Replies