Sign in

username:

password:



Not a member?

Search piclist



Search tips

Subscribe to piclist



piclist by Keywords

12F675 | 16F628 | 16F84 | 16f877 | 16F877A | 16F88 | 18F458 | ADC | AVR | Bootloader | CAN | CCS | CRC | EAGLE | EEPROM | ICD | ICSP | IDE | JDM | LED | Macros | Microchip | MPLAB | PCB-CAD | PIC10F | Pic12f675 | PIC16F84 | PIC16F84A | PIC16F877 | PIC18 | PIC18F452 | PicBasic | PICC | PICSTART | PWM | RS-485 | RS232 | SMT | SPI | UART | USART | USB | Wireless | Wisp628 | Xilinx

Ads

Discussion Groups

Discussion Groups | Piclist | Pull up resistors ?

A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.

Pull up resistors ? - wdavis364 - Jan 1 11:22:18 2007

pic16F88, using dip, tactile, and toggle switches what size resistors
are recommended for pullups? Would 10k be ok for this? From what I
understand, some F88 pins has build in resistors built in?
thanks
bill



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )


Re: Pull up resistors ? - Alan KM6VV - Jan 1 13:10:43 2007

Hi Bill,

10K should work fine.

Alan KM6VV

wdavis364 wrote:

>pic16F88, using dip, tactile, and toggle switches what size resistors
>are recommended for pullups? Would 10k be ok for this? From what I
>understand, some F88 pins has build in resistors built in?
>thanks
>bill
>
>
>


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Bill Davis - Jan 1 13:42:00 2007

Thanks Alan
----- Original Message -----
From: Alan KM6VV
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 12:05 PM
Subject: Re: [piclist] Pull up resistors ?
Hi Bill,

10K should work fine.

Alan KM6VV

wdavis364 wrote:

>pic16F88, using dip, tactile, and toggle switches what size resistors
>are recommended for pullups? Would 10k be ok for this? From what I
>understand, some F88 pins has build in resistors built in?
>thanks
>bill
>
>
>



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - JCullins - Jan 1 14:05:57 2007

I usually use a 10k with a .1uf ceramic cap placed as close to the pin as
you can to decouple it.
Jim Cullins
Sound Logic
----- Original Message -----
From: "wdavis364"
To:
Sent: Monday, January 01, 2007 10:17 AM
Subject: [piclist] Pull up resistors ?
> pic16F88, using dip, tactile, and toggle switches what size resistors
> are recommended for pullups? Would 10k be ok for this? From what I
> understand, some F88 pins has build in resistors built in?
> thanks
> bill
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> Yahoo! Groups Links
>


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Bill Davis - Jan 1 16:21:26 2007

Thanks Jim, I have .1uf coming off the supply line. The .1uf is located on the supply side of the bank of switches (5) that connects to the Pic. Will this work ok?
thanks
----- Original Message -----
From: JCullins
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 12:50 PM
Subject: Re: [piclist] Pull up resistors ?
I usually use a 10k with a .1uf ceramic cap placed as close to the pin as
you can to decouple it.
Jim Cullins
Sound Logic
----- Original Message -----
From: "wdavis364"
To:
Sent: Monday, January 01, 2007 10:17 AM
Subject: [piclist] Pull up resistors ?

> pic16F88, using dip, tactile, and toggle switches what size resistors
> are recommended for pullups? Would 10k be ok for this? From what I
> understand, some F88 pins has build in resistors built in?
> thanks
> bill
>
>
>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the
> instructions
> Yahoo! Groups Links
>
>
>



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - rtstofer - Jan 1 18:02:20 2007

--- In p...@yahoogroups.com, "Bill Davis" wrote:
>
> Thanks Jim, I have .1uf coming off the supply line. The .1uf is
located on the supply side of the bank of switches (5) that connects
to the Pic. Will this work ok?
> thanks

Bill,

Different thing.. The decoupling capacitor between Vcc and ground is
for noise suppression. The capacitor on the input does this also but
it is really there to help debounce the switch contacts.

Yes, PORTB has internal pull-ups - see the second paragraph of
section 5.2 of the datasheet. You have to turn them on as described.

You may find some heavy duty switches don't switch well without some
serious current. You could wind up having to use values as low as
470 ohms for pull-up. But, more often than not, 10k will work. I
typically use 4.7k for no particular reason.

Richard



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - JCullins - Jan 1 18:37:55 2007

Good reply Richard.
Yes the decoupling form the power supply is a must with the pic but
the one I was talking about is as Richard stated for debouncing the switch.
So you need to put one on each input that has a switch on it.
Jim
On 1/1/2007 4:42:59 PM, rtstofer (r...@pacbell.net) wrote:
> --- In p...@yahoogroups.com, "Bill Davis" wrote:
> >
> > Thanks Jim, I have .1uf coming off the supply line. The .1uf is
> located on the supply side of the bank of switches (5) that connects
> to the Pic. Will this work ok?
> > thanks
>
> Bill,
>
> Different thing.. The decoupling capacitor between Vcc and ground is
> for noise suppression. The capacitor on the input does this also but
> it is really there to help debounce the switch contacts.
>
> Yes, PORTB has internal pull-ups - see the second paragraph of
> section 5.2 of the datasheet. You have to turn them on as described.
>
> You may find some heavy duty switches don't switch well without some
> serious current. You could wind up having to use values as low as
> 470 ohms for pull-up. But, more often than not, 10k will work. I
> typically use 4.7k for no particular reason.
>
> Richard
> to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
> Yahoo! Groups Links
>
> <*


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - Bill Davis - Jan 1 19:11:42 2007

Thanks Richard, good to hear from you again. I'll go the 10k route and check the datasheet on portb pull-ups.
bill
----- Original Message -----
From: rtstofer
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 4:42 PM
Subject: [piclist] Re: Pull up resistors ?
--- In p...@yahoogroups.com, "Bill Davis" wrote:
>
> Thanks Jim, I have .1uf coming off the supply line. The .1uf is
located on the supply side of the bank of switches (5) that connects
to the Pic. Will this work ok?
> thanks

Bill,

Different thing.. The decoupling capacitor between Vcc and ground is
for noise suppression. The capacitor on the input does this also but
it is really there to help debounce the switch contacts.

Yes, PORTB has internal pull-ups - see the second paragraph of
section 5.2 of the datasheet. You have to turn them on as described.

You may find some heavy duty switches don't switch well without some
serious current. You could wind up having to use values as low as
470 ohms for pull-up. But, more often than not, 10k will work. I
typically use 4.7k for no particular reason.

Richard



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - Bill Davis - Jan 1 19:21:05 2007

Thanks Jim, I'll add them in.

----- Original Message -----
From: JCullins
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 5:35 PM
Subject: Re: [piclist] Re: Pull up resistors ?

Good reply Richard.
Yes the decoupling form the power supply is a must with the pic but
the one I was talking about is as Richard stated for debouncing the switch.
So you need to put one on each input that has a switch on it.
Jim
On 1/1/2007 4:42:59 PM, rtstofer (r...@pacbell.net) wrote:
> --- In p...@yahoogroups.com, "Bill Davis" wrote:
> >
> > Thanks Jim, I have .1uf coming off the supply line. The .1uf is
> located on the supply side of the bank of switches (5) that connects
> to the Pic. Will this work ok?
> > thanks
>
> Bill,
>
> Different thing.. The decoupling capacitor between Vcc and ground is
> for noise suppression. The capacitor on the input does this also but
> it is really there to help debounce the switch contacts.
>
> Yes, PORTB has internal pull-ups - see the second paragraph of
> section 5.2 of the datasheet. You have to turn them on as described.
>
> You may find some heavy duty switches don't switch well without some
> serious current. You could wind up having to use values as low as
> 470 ohms for pull-up. But, more often than not, 10k will work. I
> typically use 4.7k for no particular reason.
>
> Richard
>
>
>
>
> to unsubscribe, go to http://www.yahoogroups.com and follow the instructions
> Yahoo! Groups Links
>
> <*



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - JCullins - Jan 1 19:50:29 2007

What is your project?
It is nice to hear what others are doing with the PIC.
Do you porgram with C , BASIC , or assemaly ?
Jim
On 1/1/2007 6:18:06 PM, Bill Davis (w...@texoma.net) wrote:
> Thanks Jim,
> I'll add them in.
>
> ----- Original Message -----
> From: JCullins [link: mailto:j...@sbcglobal.net]
> To: p...@yahoogroups.com
> Sent: Monday, January 01, 2007 5:35 PM
> Subject: Re: [piclist] Re: Pull up resistors ?
>
> Good reply Richard.
> Yes the decoupling form the power supply is a must with the pic but
> the one I was talking about is as Richard stated for debouncing the switch.
> So you need to put one on each input that has a switch on it.
> Jim
> On 1/1/2007 4:42:59 PM, rtstofer (r...@pacbell.net [link: mailto:r...@pacbell.net]) wrote:
> > --- In p...@yahoogroups.com, "Bill Davis" wrote:
> > >
> > > Thanks Jim, I have .1uf coming off the supply line. The .1uf is
> > located on the supply side of the bank of switches (5) that connects
> > to the Pic. Will this work ok?
> > > thanks
> >
> > Bill,
> >
> > Different thing.. The decoupling capacitor between Vcc and ground is
> > for noise suppression. The capacitor on the input does this also but
> > it is really there to help debounce the switch contacts.
> >
> > Yes, PORTB has internal pull-ups - see the second paragraph of
>


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - Bill Davis - Jan 1 20:35:10 2007

Program in C, I'm wanting to a control board to test stepper motors. The idea is to be able to activate a push switch to add say in 100 revs increments (counting as I go) until the motor gets rough than I would activate push switch to decrease the speed in 5 or 10 revs to find where the motor run at it smoothest. At this point I would tweak the driver to improve this. Then maybe try another driver for comparison. I know to some this may seem a waste of time, but it is fun for me and a way for learning about all this.
thanks for your interest and maybe your thoughts on this.
bill
----- Original Message -----
From: JCullins
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 6:32 PM
Subject: Re: [piclist] Re: Pull up resistors ?

What is your project?
It is nice to hear what others are doing with the PIC.
Do you porgram with C , BASIC , or assemaly ?
Jim
On 1/1/2007 6:18:06 PM, Bill Davis (w...@texoma.net) wrote:
> Thanks Jim,
> I'll add them in.
>
> ----- Original Message -----
> From: JCullins [link: mailto:j...@sbcglobal.net]
> To: p...@yahoogroups.com
> Sent: Monday, January 01, 2007 5:35 PM
> Subject: Re: [piclist] Re: Pull up resistors ?
>
>
>
> Good reply Richard.
> Yes the decoupling form the power supply is a must with the pic but
> the one I was talking about is as Richard stated for debouncing the switch.
> So you need to put one on each input that has a switch on it.
> Jim
> On 1/1/2007 4:42:59 PM, rtstofer (r...@pacbell.net [link: mailto:r...@pacbell.net]) wrote:
> > --- In p...@yahoogroups.com, "Bill Davis" wrote:
> > >
> > > Thanks Jim, I have .1uf coming off the supply line. The .1uf is
> > located on the supply side of the bank of switches (5) that connects
> > to the Pic. Will this work ok?
> > > thanks
> >
> > Bill,
> >
> > Different thing.. The decoupling capacitor between Vcc and ground is
> > for noise suppression. The capacitor on the input does this also but
> > it is really there to help debounce the switch contacts.
> >
> > Yes, PORTB has internal pull-ups - see the second paragraph of
>



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Harold Hallikainen - Jan 1 20:39:13 2007

10k is what I typically use. PORTB, on most, if not all, PICs have weak
pull-ups that can be enabled in software. Read the PORTB portion of the
datasheet for more info.

Harold

> pic16F88, using dip, tactile, and toggle switches what size resistors
> are recommended for pullups? Would 10k be ok for this? From what I
> understand, some F88 pins has build in resistors built in?
> thanks
> bill
>
--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Bill Davis - Jan 1 20:59:15 2007

Thanks for the information.
bill
----- Original Message -----
From: Harold Hallikainen
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 7:22 PM
Subject: Re: [piclist] Pull up resistors ?
10k is what I typically use. PORTB, on most, if not all, PICs have weak
pull-ups that can be enabled in software. Read the PORTB portion of the
datasheet for more info.

Harold

> pic16F88, using dip, tactile, and toggle switches what size resistors
> are recommended for pullups? Would 10k be ok for this? From what I
> understand, some F88 pins has build in resistors built in?
> thanks
> bill
>
>
>

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Re: Pull up resistors ? - JCullins - Jan 1 21:25:16 2007

Thanks for sharing.
I have designed testers for steppers mostly to exercise machines that are in
production to make sure the machine is set up properly mechanically.
I agree a lot of what we do is for fun... do it myself. But you are correct every thing you do you learn something. Sometimes what not to do. (:-)
Jim
On 1/1/2007 7:29:26 PM, Bill Davis (w...@texoma.net) wrote:
> Program in C,
> I'm wanting to a control board to test stepper motors. The idea is to be able to activate a push switch to add say in 100 revs increments (counting as I go) until the motor gets rough than I would activate push switch to decrease the speed in 5 or 10 revs to find where the motor run at it smoothest. At this point I would tweak the driver to improve this. Then maybe try another driver for comparison. I know to some this may seem a waste of time, but it is fun for me and a way for learning about all this.
> thanks for your interest and maybe your thoughts on this.
> bill
> ----- Original Message -----
> From: JCullins [link: mailto:j...@sbcglobal.net]
> To: p...@yahoogroups.com
> Sent: Monday, January 01, 2007 6:32 PM
> Subject: Re: [piclist] Re: Pull up resistors ?
>
> What is your project?
> It is nice to hear what others are doing with the PIC.
> Do you porgram with C , BASIC , or assemaly ?
> Jim
> On 1/1/2007 6:18:06 PM, Bill Davis (w...@texoma.net [link: mailto:w...@texoma.net]) wrote:
> > Thanks Jim,
> > I'll
> add them in.
> >
> > ----- Original Message -----
> > From: JCullins [link: mailto:j...@sbcglobal.net]
> > To: piclist@yahoogroup


(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Harold Hallikainen - Jan 1 22:06:22 2007

A capacitor across the switch (or between the +5V and the switch) may weld
contacts on some switches when the switch closes. This is especially the
case with reed switches and membrane switches. I'd do debounce in software
instead of hardware.

Harold

> Thanks Jim, I have .1uf coming off the supply line. The .1uf is located on
> the supply side of the bank of switches (5) that connects to the Pic. Will
> this work ok?
> thanks
> ----- Original Message -----
> From: JCullins
> To: p...@yahoogroups.com
> Sent: Monday, January 01, 2007 12:50 PM
> Subject: Re: [piclist] Pull up resistors ?
> I usually use a 10k with a .1uf ceramic cap placed as close to the pin
> as
> you can to decouple it.
> Jim Cullins
> Sound Logic
> ----- Original Message -----
> From: "wdavis364"
> To:
> Sent: Monday, January 01, 2007 10:17 AM
> Subject: [piclist] Pull up resistors ?
>
> > pic16F88, using dip, tactile, and toggle switches what size resistors
> > are recommended for pullups? Would 10k be ok for this? From what I
> > understand, some F88 pins has build in resistors built in?
> > thanks
> > bill
> >
> >
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the
> > instructions
> > Yahoo! Groups Links
> >
> >
> >
--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Bill Davis - Jan 1 23:17:49 2007

Debounce in software? I got some reading to do here.
bill
----- Original Message -----
From: Harold Hallikainen
To: p...@yahoogroups.com
Sent: Monday, January 01, 2007 7:53 PM
Subject: Re: [piclist] Pull up resistors ?
A capacitor across the switch (or between the +5V and the switch) may weld
contacts on some switches when the switch closes. This is especially the
case with reed switches and membrane switches. I'd do debounce in software
instead of hardware.

Harold

> Thanks Jim, I have .1uf coming off the supply line. The .1uf is located on
> the supply side of the bank of switches (5) that connects to the Pic. Will
> this work ok?
> thanks
> ----- Original Message -----
> From: JCullins
> To: p...@yahoogroups.com
> Sent: Monday, January 01, 2007 12:50 PM
> Subject: Re: [piclist] Pull up resistors ?
>
>
> I usually use a 10k with a .1uf ceramic cap placed as close to the pin
> as
> you can to decouple it.
> Jim Cullins
> Sound Logic
> ----- Original Message -----
> From: "wdavis364"
> To:
> Sent: Monday, January 01, 2007 10:17 AM
> Subject: [piclist] Pull up resistors ?
>
> > pic16F88, using dip, tactile, and toggle switches what size resistors
> > are recommended for pullups? Would 10k be ok for this? From what I
> > understand, some F88 pins has build in resistors built in?
> > thanks
> > bill
> >
> >
> >
> >
> > to unsubscribe, go to http://www.yahoogroups.com and follow the
> > instructions
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Harold Hallikainen - Jan 1 23:50:52 2007


> Debounce in software? I got some reading to do here.
> bill

One simple way to do debounce in software is to use a timer interrupt to
read the port every 20ms or so. Save the port value in RAM, then have your
software interpret that.

Harold
-- The ideal design has zero parts.

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )

Re: Pull up resistors ? - Lez - Jan 2 6:40:01 2007

Easiest de-bounce for switches is not to read them too fast, IE only read
them every half a second, as most humans press for more than that etc, very
'cheap' and simple but not a good way, and useless if you need to see
exactly when something was pressed, ie a limit/level switch, but for a
keypad for selecting a function, more than adequate.



(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )