In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote: I concur with Bean, your code seems ok. I haven't tried to conduct communications with a PC, but make sure your PC is sampling the data on the rising edge of ra.1 and not the falling edge. If the docs for your PC IO board doesn't say which is the case, switch the setb and clrb instructions and see if that works, if that doesn't work try adding some 'nop's after the 'clrb ra.1'. Also as side note, you can replace 'jnz noInc' with 'snz' and save a few processor cycles. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89898#m89920 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)