"Each of the PORTB pins has a weak internal pull-up. A single control bit can turn on all the pull-ups. This is performed by clearing bit, RBPU (INTCON2<7>). The weak pull-up is automatically turned off when the port pin is configured as an output. The pull-ups are disabled on a Power-on Reset."Code:INTCON2.7 = 0 'switch pull-ups ON
(Page 96 on PIC18F4520 manual)
BR,
-Gusse-
Bookmarks