In SX Microcontrollers, SX/B Compiler and SX-Key Tool, sunruh wrote: Thanks, Paul. For a test code I am not reading the encoder, but incrementing the count with a delay between each increment. Here is a code snipet. I have also removed the 573's and jumpered straight across. I am using an extra output line, ra.1, to tell the PC when the lines should be stable to read. I have seperated my delay into two delays to give time for the outputs to settle Main call BitTime1 setb ra.1 ; OK for PC to read call BitTime2 clrb ra.1 ; Not OK for PC to read inc lowbyte jnz noInc inc highbyte noInc mov rb, lowbyte mov rc, highbyte jmp Main ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89898#m89912 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)