In SX Microcontrollers, SX/B Compiler and SX-Key Tool, rwatts wrote: I'm learning how to format my posts. Here's a more readable version of the code snippet: CountRPMS: MagnetoPulses = 0 DO Temp = 0 WKPND_B = Temp 'Temp gets the value of WKPND_B and WKPND_B is cleared and ready for the next pulse IF Temp.4 = 1 THEN INC MagnetoPulses ENDIF LOOP UNTIL OneSecondFlag = 1 OneSecondFlag = 0 'Update ServoVal here GOTO CountRPMS ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=147881#m147929 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)