In SX Microcontrollers, SX/B Compiler and SX-Key Tool, lordsteve wrote: Kramer, Use port B. Set the 4 pins you need to interrupt on the first edge you want. When an edge-detect interrupt fires off, change the direction of the edge detect for the pin that caused the interrupt. When the second interrupt for that pin fires, record the time difference between the two. You can use prescalers to scale the resolution of RTCC so that 255 fits over your maximum pulse width. Or you could have a timer interrupt. Is this at all what we're talking about? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=109161#m109614 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)