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.
Switch - Active Low - Pull up
Moderator: Benj
- 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
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.
And yes, you will need to provide an external pull-down resistor if the switch is wired in the active-high setting.