Maker Pro
Maker Pro

Pull Up Resistor

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
Hi,

I understand about simple pull up resistor.To keep the pin HIGH when the button is not being pressed so it is not connected to GND.

However, if let say I connect a LED from RB0 to a resistor then to GND , how can I apply the pull up resistor concept in this case ?

Thank you
 

Rleo6965

Jan 22, 2012
585
Joined
Jan 22, 2012
Messages
585
I don't think you need a pull up resistor in RB0. It was set as output and also you already have pull down resistor connected to the LED to Gnd. You need only to place pull up resistor in Input pin of PIC. But its also depend of your program to expext in its input i.e. High or Low input.
 
Last edited:

jackorocko

Apr 4, 2010
1,284
Joined
Apr 4, 2010
Messages
1,284
Look at it like this, You use a pull-up/dn resistor when you need to set the state to anything other then floating. What state that is will depend on its purpose.
 

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
Look at it like this, You use a pull-up/dn resistor when you need to set the state to anything other then floating. What state that is will depend on its purpose.

This is when I need to add a button/switch to it ?
 

jackorocko

Apr 4, 2010
1,284
Joined
Apr 4, 2010
Messages
1,284
The purpose is either to set the pin to be in HIGH or LOW state forever ?

Yes, it will be in either one of the two states forever(but it can change states, circuitry dependent), but it will never be floating.
 
Last edited:

Balrock

Mar 1, 2012
39
Joined
Mar 1, 2012
Messages
39
Have a look at the following diagram of my mE board. It uses a 10k with the switch and a 4k7 with the LED.

http://www.mikroe.com/eng/downloads/get/312/easypic6_schematic_v101.pdf

Acording to something I read switches must be tied high or low (depending on what is required) When I had my project switches not set to tie the port low it couldn't read the logic state of the button properly.

I am no expert though but the diagram should help as I have found from experience it works in the real world.
 

vick5821

Jan 22, 2012
700
Joined
Jan 22, 2012
Messages
700
Have a look at the following diagram of my mE board. It uses a 10k with the switch and a 4k7 with the LED.

http://www.mikroe.com/eng/downloads/get/312/easypic6_schematic_v101.pdf

Acording to something I read switches must be tied high or low (depending on what is required) When I had my project switches not set to tie the port low it couldn't read the logic state of the button properly.

I am no expert though but the diagram should help as I have found from experience it works in the real world.

Do you have link ? I wanna read too ><
 

Balrock

Mar 1, 2012
39
Joined
Mar 1, 2012
Messages
39
Top