In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Yes, the pin driver is being initialized as 0 so when the TRIS register make it an output it will go low. When the TRIS makes it an input the pull-up will take it high. Manipulating the TRIS has no impact on the pin driver, so it only needs to be initialized at the start of the process. If you switch to a driven mode (e.g., T31250) you'll see that after the start bit (0) is sent, the data bit (bit 0) is copied to the serial output pin and then the output value is shifted right for the next bit. It works like this: In driven modes you set the TRIS at the beginning and manipulate the port pin; in Open modes you set the port pin once and manipulate the associated TRIS bit. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=287096#m287138 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)