In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Lightfoot wrote: How do you program an SX to transmit the bitstream in the attached picture (taken from this ? [url]http://www.nmra.org/standards/DCC/standards_rps/S-92-2004-07.pdf[/url] pdf). I used this code to experiment and connect the RA.0 pin to an h bridge: DO ra.0 = ~ra.0 pauseus 58 'Pause duration LOOP It gives me the bipolar AC necessary but you cannot do anything with it. The digital command decoder interprets a logic level high as two pulses. The first pulse is a 58us -14 volt pause. The second is a +14 volt pulse at the same duration. A logic level low is read as a 100us -14 volt pause and then a +14 volt pause. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=198278#m198655 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)