In SX Microcontrollers, SX/B Compiler and SX-Key Tool, eagletalontim wrote: I have found the RPM signal wire which is a 5v output max. So far, this is what I have : RPM_signal VAR RB.4 RPM VAR Byte COUNT RPM_signal, 30, RPM IF RPM < 1 THEN RC = %00110000 ELSEIF RPM = 1 THEN RC = %01101110 ELSEIF RPM = 2 THEN RC = %01111010 ELSEIF RPM = 3 THEN RC = %00110011 ENDIF I actually need to get it to read to the thousands. I just need a variable to be equal to the exact value + - 100 RPM so I can use it in other areas of my program. The program I have shown above will display a 1 if it is under 1000, 2 if it is under 2000, a 3 if it is under 3000 and so on. I need it to read at least 500 RPM increments. The only problem I have now is that as I rev up the engine, the numbers will bounce back and forth when it reaches a close value for the next digit to be displayed. I have no way of showing what RPM would be equal to while the engine is revving up. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=274144#m274152 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)