Page 1 of 1

enable weak pullups on PIC16F818

Posted: Sun May 15, 2022 4:39 pm
by baz_w
Hi I am trying to enable the weak pullups on a pic 16F818 in FC9 have tried " OPTION_REG& bits.RBPU = 0; " in a C code icon . However on trying to compile I get an error (192) undefined identifier "OPTION_REG7". How do I set up the weak pullups, anybody got any idea.

Re: enable weak pullups on PIC16F818

Posted: Sun May 15, 2022 4:58 pm
by medelec35
hello.
I have used OPTION_REG register in this post.

Re: enable weak pullups on PIC16F818

Posted: Wed May 18, 2022 11:13 am
by BenR
Your C code is close but the ampersand and space is not required.

Code: Select all

OPTION_REGbits.RBPU = 0;

Re: enable weak pullups on PIC16F818

Posted: Wed May 18, 2022 5:00 pm
by baz_w
That got it. many thanks