In SX Microcontrollers, SX/B Compiler and SX-Key Tool, descott wrote: I am using an SX 28 to transmit some data via SEROUT to an RF Module. The transmit code is as follows: DO ' send a few junk bytes to wake up the receiver FOR i = 1 TO 5 TX_BYTE JUNK NEXT checksum = arg1 + arg2 TX_BYTE SYNC TX_BYTE arg1 TX_BYTE arg2 TX_BYTE checksum Snooze 40 LOOP where TX_BYTE wraps SEROUT and Snooze wraps PAUSE. Everything works fine when the sleep value is less than 40 ms. Any value higher produces junk on the receiving end. This is very counter-intuitive as it seems that the faster I send the data the better. The same transmit code running on a BasicStamp works perfectly, no matter what the pause value is, so I know the problem is in the SX\B transmit code. Interrupts are not enabled. Is the IO pin somehow being inactivated or does a longer pause somehow interfere with a subsequent SEROUT? Any help would be greatly appreciated. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=149705 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)