PIC16F1936 Pull Up

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
allenkkwong
Posts: 20
Joined: Mon Apr 24, 2017 3:26 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

PIC16F1936 Pull Up

Post by allenkkwong »

Hello Benj,

I am configuring the PIC16F936 and want to enable the Pull up in port B. However, I have tried both of below and the compiler fails to compile. Can you advise how to deal with it?

cr_bit(OPTION_REG, WPUEN);
or
OPTION_REGbits.WPUEN = 0;

Thank you.
Allen

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: PIC16F1936 Pull Up

Post by medelec35 »

Hi Allen,
Does this help?
Note: Images have disappeared due to forum update.
Martin

allenkkwong
Posts: 20
Joined: Mon Apr 24, 2017 3:26 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: PIC16F1936 Pull Up

Post by allenkkwong »

Thank you medelec35.

Yes, it works. Appreciate your advice. :)

Rgds

Post Reply