View Full Version : Internal pullups 16C72
Michael
- 23rd December 2011, 16:25
I can't remember if these are enabled by default or not (looks like not) -- could someone please help, don't have time to google it.
Using 16C72 port B
If not, what do I put in the code header?
THANKS !
spcw1234
- 23rd December 2011, 16:45
OPTION_REG register
The OPTION_REG register is a readable and writable
register, which contains various control bits to configure
the TMR0 prescaler/WDT postscaler (single assignable
register known as the prescaler), the External INT
Interrupt, TMR0 and the weak pull-ups on PORTB.
bit 7:
RBPU: PORTB Pull-up Enable bit
1=PORTB pull-ups are disabled
0= PORTB pull-ups are enabled for all PORTB inputs
Page 12 in the datasheet
Michael
- 23rd December 2011, 17:53
I know about the OPTION reg
OPTION_REG.7 = 0 ?
Enabled?
Sort of pressed for time today and having a hard time deciphering the datasheet
What bits are the other ports A and C? THANKS !
Michael
- 23rd December 2011, 17:55
could it be?
only portb has the internal pullups?
spcw1234
- 23rd December 2011, 17:57
Only port B has internal pull ups
OPTION_REG.7 = 0
should be what you need to turn on the internal pull ups on port b
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.