In SX Microcontrollers, SX/B Compiler and SX-Key Tool, VelocitąPaola wrote: PAUSEUS is the SX/B command to pause a program in uS increments. Just remember that the PULSOUT command is specified in terms of resolution AND duration in microseconds. If the maximum pulsewidth you need is 3ms, then the resolution should be set to 12 (3_000us / 255) or higher to fit in a byte. That means PULSOUT YourPin, 83, 12 is roughly equal to 1ms (or 1% capacity), and PULSOUT YourPin, 254, 12 is roughly equal to 3ms (or 100% capacity). 254 - 83 is 171, so you have approximately 171 steps of resolution to deal with. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=273862#m273865 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)