I'm trying to enable the pullup pin on portB.7 only, and looking at page 114 at Table 10-3 I do not seem to find the variable I need to configure the pin. Hope anyone can give a hint.
Thanks in advance,
Tacbanon
I'm trying to enable the pullup pin on portB.7 only, and looking at page 114 at Table 10-3 I do not seem to find the variable I need to configure the pin. Hope anyone can give a hint.
Thanks in advance,
Tacbanon
PORTB pull-ups are enabled with INTCON2.7 = 0
That turns on pull-ups for ALL PORTB pins.
There are no individual controls for each pin.
Pull-ups are only enabled on pins with the TRIS bit set to INPUT (1).
DT
Thanks Darrel for the information...INTCON2.7 = 0 (enable pull-ups) affects only with input pins like TRISB = %10000000.
Bookmarks