In SX Microcontrollers, SX/B Compiler and SX-Key Tool, ShadowsSoldier wrote: I guess I really don't understand the relationship between the port bit direction setting (0 - output, 1 - input) and the associated logic level. I thought if you changed the direction register for a bit to "output", for example, the assocaited pin would go LOW (Logic 0) and if you set the port configuration direction register to "input" its associated PIN would go "HIGH" (logic 1). So it seems you can change the logic level of a PIN indirectly by changing its port direction. I guess I am confused about TRIS setting in the register and logic level on the output pin, you know, how one is related to the other. Thank you, BBAL ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=107816#m107851 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)