In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Lightfoot wrote: I am trying to receive a word value like this. This is the reciever code, the transmitter code works just find and is below the stars: temp var byte result var word DO PULSIN, RA.0, temp if temp = 4 then ' Append a binary 1 to the word variable result. else ' Append a binary 0 to the word variable result. endif LOOP *****************************************************Transmitter Code********************************************************** TXData var word ctr var byte DO TXData = 78 for ctr = 1 to 16 if TXData.7 = 1 then pauseus 40 ra.0 = ~ra.0 pauseus 40 ra.0 = ~ra.0 else pauseus 120 ra.0 = ~ra.0 pauseus 120 ra.0 = ~ra.0 TXData = TXData << 1 next LOOP ******************************************************************************************************************************* Thanks ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=199177 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)