PDA

View Full Version : Weak Pull-ups



markcadcam
- 12th June 2006, 17:53
Hello All,

I want to enable the weak pull-up resistors on PORTB for an 18F452 micro. After reading over the data sheet, it looks like to turn the weak pull-ups off you use INTCON.2 = 7. I cannot find what command to use to turn them on. What command is used to turn them on?

Thanks,
Mark

paul borgmeier
- 12th June 2006, 19:33
datasheet - section 8.1

INTCON2.7 = 0 ' weak pullups on
or
INTCON2.7 = 1 ' weak pullups off

Paul Borgmeier
Salt Lake City, Utah
USA

markcadcam
- 12th June 2006, 19:41
Thanks Paul,

I guess I didn't understand how to read it. I think I do now.

Mark