Log in

View Full Version : RBPU question..



tacbanon
- 15th December 2011, 16:13
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

tacbanon
- 15th December 2011, 16:31
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.

I forgot to mentioned I'm using Pic18F4550.

Darrel Taylor
- 15th December 2011, 17:20
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).

tacbanon
- 15th December 2011, 22:19
Thanks Darrel for the information...INTCON2.7 = 0 (enable pull-ups) affects only with input pins like TRISB = %10000000.