In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Unless you really need a VP, you could just use PULSIN, it will timeout during the long 20ms "reset" time and PULSIN will return 0. Something along the lines of: ' Wait for reset DO PULSIN pin, 1, x LOOP UNTIL x = 0 ' Read next 4 pulses cnt = 0 DO PULSIN pin, 1, x IF x > 0 THEN values(cnt) = x INC x ENDIF LOOP UNTIL cnt > 3 Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=109161#m109183 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)