In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sawmiller wrote: hi guys, time for another eye to look at my code... i'm stumped what i have is a sx48 proto board with a rs-422 chip on it sending and reciving signals to a magnostrictive linear position sensor...which sends a magnetic pulse out a rod to a movable magnet,interacts with the field and returns, thus giving me a timed pulse on RB.4 to measure now the hard part.. it will read the position of themovable magnet the first time thru and report it to my lcd, but after that it will keep reporting the same time delay, even it i move the magnet.. however if i press the reset button, it will then give me another reading, which seems to be logical.. i want it to change the reading when it looks at the capture registers again. it seems as if it will not change the cap registers the second or third time thru , unless its reset with the reset button... what am i missing ? tried doing a jmp $FFF just to test, but that did not work.... heres the code thanks for any and all pointers ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=105120 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)