enable weak pullups on PIC16F818
-
- Posts: 13
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 23, 2021 11:26 am
enable weak pullups on PIC16F818
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.
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 503 times
- Been thanked: 686 times
Re: enable weak pullups on PIC16F818
Your C code is close but the ampersand and space is not required.
Code: Select all
OPTION_REGbits.RBPU = 0;
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel