In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Stefano, The easiest way would be to use one timer to generate the "TIMER1 PWM" command (see the help file), then measure the cap with a traditional RCTIME or PULSIN command. If you want to use the hardware timer you would use the TIMER2 CAPTURE mode. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=170635#m171183 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)