Series resistor when using weak pull-up


Closed Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31

    Post Series resistor when using weak pull-up

    Hi, I am designing a board that is connected to a momentary switch,
    normally i just use a pull-up resister and a series resistor and a capacitor,
    the series resistor and capacitor work as a low-pass filter to suppres noise.

    See the attached drawing.


    But now I want to use the weak pull-up, so I just removed R1 and programmed RA4 to have weak-pull-up but it don't work if I still use R2!

    Should I remove R2 or just use a smaller resistor.

    Sharky
    Attached Images Attached Images  
    Last edited by Sharky; - 18th October 2006 at 18:03.
    *Let's do it*

  2. #2
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Hi Sharky,

    Weak pull ups work on PORTB.

    Also, for some reason forum servers have some issues with attachements now.


    -----------------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  3. #3
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Question

    Quote Originally Posted by sayzer
    Hi Sharky,

    Weak pull ups work on PORTB.

    Also, for some reason forum servers have some issues with attachements now.


    -----------------------------
    Hmm, really on the 16F630 I use it work on PORTA.

    I am not having problems programming the weak pull ups.
    I just want to know if I should use a serie resistor and a decoupling capacitor
    as I do when I use an externally pull up resistor.
    Because if I use a 10K serie resistor as I use to do, it does not work!

    Yes, I can see that it is impossible to view my attachment, but I don't know why?

    Sharky
    *Let's do it*

  4. #4
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    For PIC16F630, PORTA weak pull-ups OK!

    No schematic, bad guess.

    Forum has some issue.

    Let see your schematic if you can upload it to http://picsplace.to and then put the link here.


    --------------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  5. #5
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Lightbulb

    Quote Originally Posted by sayzer
    For PIC16F630, PORTA weak pull-ups OK!

    No schematic, bad guess.

    Forum has some issue.

    Let see your schematic if you can upload it to http://picsplace.to and then put the link here.


    --------------------
    Here is the link:

    http://img4.picsplace.to/img.php?file=img4/26/weakP.JPG

    Sharky
    *Let's do it*

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    1. 10K is too high. <1K could do... usually not needed.

    2. the capacitor is usually useless as you can do the debounce in software in most case.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Question

    Hi Mister_e,

    I normally do the debounce in software.
    I have always used capacitors on inputs to suppres noise, but maybe they are not necessary?

    Sharky
    *Let's do it*

  8. #8
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i don't remind to have used capacitor on any of my design to supress noise when debouncing and handling could be done in software.

    Now if your buttons are far of your main board, it's another story.. but even in this case, i doubt capacitor will do some magic stuff.

    Maybe someone else have another point of view?
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  9. #9
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Smile

    The touchpad that is connected to the board have 1.5 metre of cable.

    I have only used the capacitors and the serie resistors for products that needed
    to have an approval.

    But if I understand you right you also mean that the software debouncing will do the job.
    I think that I will just try to make the board without capacitors and serie resistors on the input's and see what happen when it goes to approval.

    Sharky
    *Let's do it*

  10. #10
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    So in this case don't use the internal weak up. Use 1K-4.7 K instead. Safer.

    It's a long debate...'to use or not to use internal pull-up?'
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  11. #11
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Post

    I have used pull-ups up to 100 K without problems.

    I know that you don't like weak pull-ups I remember from one of my other thread's, but I would really like do know what the problem about them should be?

    Because I really can see myself save some space on my PCB if I use the WPU's
    but if it is to risky I will of course not use them, I would just like to know why I
    should not use them!

    I have read that Melanie often use them even in industrial applications and I must admit that a lady that have a catsuit gives even a Shark some respect!

    Sharky
    *Let's do it*

  12. #12
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    ...and who is being the Shark here, I really wonder?


    --------------
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

  13. #13
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    so you should know a part of the story. I had some issue in car application, after i switch for external one i nerver ever had issue... this is why.

    BUT if it works for you... use it.

    Also, don't forget, if the unit is not always powered.... there's no pull-up, those pins comes 'floating' ...

    But i'm from the old school. I have my own fear that some don't have.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Pull Up enabled and PWM question
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th September 2009, 09:21
  2. Weak pull Up 12F629
    By Lionheart in forum General
    Replies: 1
    Last Post: - 9th December 2008, 22:07
  3. switch on 1 weak pullup on portb?
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th December 2008, 19:32
  4. 12F683 internal pull up
    By hvacrtech in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 27th July 2008, 03:35
  5. 16f684 Porta.2 Instability
    By JDM160 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th November 2006, 03:38

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts