enable weak pullups on PIC16F818

For general Flowcode discussion that does not belong in the other sections.
Post Reply
baz_w
Posts: 5
http://meble-kuchenne.info.pl
Joined: Thu Dec 23, 2021 11:26 am

enable weak pullups on PIC16F818

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

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: enable weak pullups on PIC16F818

Post by medelec35 »

hello.
I have used OPTION_REG register in this post.
Martin

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: enable weak pullups on PIC16F818

Post by BenR »

Your C code is close but the ampersand and space is not required.

Code: Select all

OPTION_REGbits.RBPU = 0;

baz_w
Posts: 5
Joined: Thu Dec 23, 2021 11:26 am

Re: enable weak pullups on PIC16F818

Post by baz_w »

That got it. many thanks

Post Reply