In SX Microcontrollers, SX/B Compiler and SX-Key Tool, TheBandit wrote: Thanks for the additional feedback. I am using the SX interrupt to monitor an incremental encoder and the 50mHz speed has prevented miscounts that I was having problems with at lower frequencies. For another part of my program I needed to be able to measure time, so I thought I'd also use the interupt to run a timer. I currently have it incrementing a counter variable on each interupt which I roll back to zero after 48827 counts or approximately 0.25sec. On each roll back, I increment another counter variable which essentially measures time in quarter seconds. It seems to work very well and has matched my stopwatch up to 15minutes. I would also like to reduce the power consumption, but I can't risk a miscount on the encoder for this application so dropping the frequency may not be an option. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=386944#m387107 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)