In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Bugg wrote: [code] TRIS_A = %1111 'Set all pins to input TRIS_B = %01111111 'Set RB0-RB6 as input RB7 as output TRIS_C = %00000000 'Set all pins to output ST_B = %01111111 'Set all RB outputs to schmidt trigger PLP_A = %1111 'Set all pullups on PLP_B = %01111111 'Pullup pins RB0-RB6 [/code] I just read(and this helped me alot with my own program) that the ST and PLP registers use 1 to disable, 0 to enable. From one SX'er to another, RoboGeek ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=104114#m104639 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)