Maker Pro
Maker Pro

how to set RBPU bit in OPTION register

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.
 
Top