Page 1 of 1

Switch - Active Low - Pull up

Posted: Sun Aug 14, 2011 4:03 pm
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.

Re: Switch - Active Low - Pull up

Posted: Mon Aug 15, 2011 9:00 am
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.

Re: Switch - Active Low - Pull up

Posted: Mon Aug 15, 2011 10:26 am
by Jay Dee
Thanks Steve good to have that confirmed.
Cheers, John.