You're right. Trisb=%1000 is setting the lower four bits, which are ignored. This command would set portb.3 as an input, but your particular PIC doesn't have a portb.3 port, so it doesn't work, and is ignored. Trisb=%10000000 will indeed set portb.7 as an input.
Jerry





Bookmarks