In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Tinker wrote: Ok, I'm lost again as usual trying to update my project and bring it to a final clean state of being. What I want to do is take the pause statements out of a program and just use timing to continiously loop through. I understand the concept in theory to the point where I can get a 10hz signal without pausing but what I need to do is turn a solenoid on and off while continiously increasing the on time, and decreasing the off time so that it maintains 10hz frequency but the duty cycle increases with time. So, 10 cycles per second starting with say a 10% duty cycle, and ending with a 95% duty cycle at which point it simply locks on as long as input signal is maintained. On top of all that I need to be able to adjust the rate that it changes duty cycle so that I can control the period that it takes to transit from 10-95% over a range of .5 seconds or 5 pulses to 7.5 seconds or 75 pulses without pausing the program. I'm not asking anyone to solve this for me, just point me in the right direction to an example that may help if you could. Thanks in advance, Chris ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=104114 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)