From the datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/41262E.= pdf Page 60, you have to use the WPUA, WPUB registers Of course, pull ups must be enabled in the OPTION_REG, so you would have to= clear the /RABPU bit by writing OPTION_REGbits.nRABPU =3D 0; (Well, if you write OPTION_REGbits. a menu should pop up and let you select= the bit you want to access) > From: rdawson16@hotmail.com > To: piclist@mit.edu > Subject: the weak pullups (RAPU) definitions are not recognized by the co= mpiler=FE > Date: Fri, 26 Sep 2014 10:33:15 -0700 >=20 > I am using MPLAB X and the xc8 compiler. > My target is a PIC16F690. > The header file I include, is either pic.h or xc.h whit the same results. >=20 > All of the header definitions are working, except RBPU, RAPU. >=20 > I am trying to configure a weak pullup for RA5, using this > RAPU =3D 0; // enable the weak pullup for port A >=20 > or this=20 > RABPU =3D0; >=20 > Neither are recognized by the compiler and header files. >=20 > Help! >=20 > Randy >=20 > PS the rest of the config bits work: >=20 > TRISA5 > RA5 > etc, whats up with the weak pullup configure bits? >=20 > =20 > --=20 > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist =0A= -- =0A= http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive=0A= View/change your membership options at=0A= http://mailman.mit.edu/mailman/listinfo/piclist=0A= .