In SX Microcontrollers, SX/B Compiler and SX-Key Tool, datacps wrote: Ok sorry about that guys.. I found my mistake.. PAUSEUS 100 UpdateEncoders IF delay <> tempW THEN LCDChar Home LCDStr " delay = " LCDWord delay ENDIF DO PULSOUT RB.4, 600 ' pulses from 100 to 1000 µs pauseus 2 pulsout RB.5, 600 pauseus 2 PAUSEUS 100 UpdateEncoders IF delay <> tempW THEN LCDChar Home LCDStr " delay = " LCDWord delay ENDIF DO PULSOUT RB.4, 600 ' pulses from 100 to 1000 µs pauseus 2 pulsout RB.5, 600 pauseus 2 loop do was after the LCD update and get delay value. I fixed it by putting do before what i wanted to be my main loop. do UpdateEncoders IF delay <> tempW THEN LCDChar Home LCDStr " delay = " LCDWord delay tempW2 = delay ENDIF PULSOUT RB.4, delay ' pulses from 100 to 1000 µs pauseus 2 pulsout RB.5, delay pauseus 2 LOOP NOW when I touch my encoder the value increments by it self. I can see my pulse width increase but I can't control it. Now all I have to do is get the encoder to work and I need a way to be able to adjust the frequency. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=226156#m228983 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)