Switch - Active Low - Pull up

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Switch - Active Low - Pull up

Post by Jay Dee »

Hi,
The switch component has the option to set the switch 'active low' i.e. Input is logic 1 when a pulled to ground.
Does this function automatically enable a weak internal pull-up in the PIC or do I need to apply a weak pull-up in my hardware?

And the flip-side of that question...I assume you always need a weak pull-down when using the 'Active high' setting as the PIC does not have any internal pull down option?
Thanks, J.

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Switch - Active Low - Pull up

Post by Steve »

No - you need to provide the pull-up yourself (either by enabling the internal pull-up or by using an external one).

And yes, you will need to provide an external pull-down resistor if the switch is wired in the active-high setting.

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: Switch - Active Low - Pull up

Post by Jay Dee »

Thanks Steve good to have that confirmed.
Cheers, John.

Post Reply