In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Sawmiller wrote: hi guys , still trying to get a position sensor working for a portable sawmill i have as a hobby... its a magnostrictive position sensor, you input a pulse and it returns 2 pulses with the time between them being representitive of the distance that the magnet is from the head... its signal is generated in rs485 .... which is where part of the problem is, it generates a positive pulse of 2.5 and a negitive pulse of 2.5 at the same time, i have disconnected the negative and am only reading the pos... using my code , i get a timer reading of timerL 001 timerH 001 everytime no matter where the magnet is. could you look over my set up and interuppt code and point out the mistakes ? thanks dan ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=103087 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)