In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: TRIS_C = %11110000 will make RC.7,6,5,4 inputs and RC.3,2,1,0 outputs PLP_C = %00001111 will hold RC.7,6,5,4 high Aside from having the wrong bits shown, the code WILL do what you want. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=146108#m146115 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)