how to set RBPU bit in OPTION register?

Status
Not open for further replies.

nikens

Junior Member level 2
Joined
Dec 20, 2009
Messages
23
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
slovenia
Activity points
1,503
I want to set rbpu bit to be 0 so I will enable portb internal pull ups in PIC mcu.
I am using mikropascal compiler and when I write "OPTION_REG:=value;" the command is excepted, but if I want to set particular bit as "OPTION_REG.RBPU:=0" the command isn't accepted.

For comparison the compiler excepts this line OSCCON.IRCF2:=1; where you set oscilator freq bits.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…