In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: The [b]CLRB IND.1[/b] statement is actually clearing the associated bit in the "shadow" TRIS register for the port (SX/B saves this as you cannot read the TRIS registers in the SX28). The next line, [b]MOV !RA, IND[/b], writes the shadow register to the TRIS port which makes the pin an output. The [b]CLRB MidiOut[/b] is actually manipulating your serial pin. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=287096#m287132 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)