On 15 Feb 2003 at 18:11, Alexander Luis Perez wrote: > I want to make rb0 on my 16f84be an input for a > pushbutton and the rest of portb outputs. so far I > have not been able to create working code.I am using > hitech's freeware compiler. This should do it: TRISB = 0b00000001; But that sounds too easy. What is the next part of the problem? -- Brent Brown, Electronic Design Solutions 16 English Street, Hamilton, New Zealand Ph/fax: +64 7 849 0069 Mobile/txt: 025 334 069 eMail: brent.brown@clear.net.nz -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu