In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: If you talking about the bitstream A/D then all you really have to do in the interrupt is: IF counter > 0 THEN value = value + InPin OutPin = ~InPin DEC counter ENDIF and in the main code to this to get a reading: value = 0 counter = 255 DO LOOP UNTIL counter = 0 ' value holds the a/d value I haven't tried it, but that should get you started... Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=118487#m118573 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)