>From the data book.... Port latch = 1 and TRISB = 1 enables weak pullup if RBPU = 0 You mention that your port latch = 0. -- Best regards Tony http://www.picnpoke.com mailto:sales@picnpoke.com