In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: You have mentioned many times that you're trying to keep to bytes -- does that include RPM? One would assume a practical value is RPM/100 -- if that's the case see the attached program. It simply counts the 0->1 transitions on the TachIn pin for 0.6 seconds and then updates a program variable called rpm. This happens in the ISR which means you don't have to do anything. Use the ISR means you can have background serial, too. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=320764#m332378 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)