Safety resistor


Closed Thread
Results 1 to 4 of 4

Thread: Safety resistor

  1. #1

    Post Safety resistor

    Hi,
    In one test circuit I have a voltage (0 -1.6volts) going into the PIC ADC directly.. Although this works well, I suppose its safe practice to put a resistor (under 10K) in between as a precautionary measure... just incase that pin turns to being an output. I'm guessing any value that restricts current to under 20 mA is ok...as long as the sample times are adjusted...In this case the PIC is running at 3.3 Volts so the worst case is probably 3.3volts shorting to ground... anything over 165Ohms should be ok, right? I appreciate any insights/confirmation...
    greets,
    Mike

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Michael Wakileh View Post
    Hi,
    In one test circuit I have a voltage (0 -1.6volts) going into the PIC ADC directly.. Although this works well, I suppose its safe practice to put a resistor (under 10K) in between as a precautionary measure... just incase that pin turns to being an output. I'm guessing any value that restricts current to under 20 mA is ok...as long as the sample times are adjusted...In this case the PIC is running at 3.3 Volts so the worst case is probably 3.3volts shorting to ground... anything over 165Ohms should be ok, right? I appreciate any insights/confirmation...
    greets,
    Mike
    Looks right to me Mike.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Actually, the consideration is the other way around...

    Are you likely to have a voltage, spikes or other undesirables on your incomming line likely to damage your PIC? The PIC is unlikely to be set to OUTPUT (unless you explicitly do it) since Microchip put some effort into ensuring the PIC initialises at Power-ON into Input (High-Impedence) mode. Because if it DOES initialise as OUTPUT, will it be HIGH or LOW? Then that negates the common practice of tying unused pins to VDD or GROUND.

    You are now intoducing a new problem - Since the INPUT ADC Impedance is around 10K, putting such a high (10K) Resistor in series as per your suggestion is going to seriously affect your ADC readings and deviate them from what is true and expected.

    I wouldn't worry about the PICs inputs becoming outputs (unless you are deliberately including a self-destruct routine into your PIC) as much as potentially what you are likely to be feeding the PIC.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    I ended up using the 250 Ohms... (I'm working on some open source hardware (sparkfun widgets) which can be reprogrammed by anyone.) I really like the idea of the Pic self destruct routines. That should really become a thread of its own!

Similar Threads

  1. MCLR resistor
    By The Master in forum Off Topic
    Replies: 20
    Last Post: - 5th November 2007, 17:01
  2. Reading A Photo Resistor using ADC
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 25th January 2007, 10:28
  3. Series resistor when using weak pull-up
    By Sharky in forum General
    Replies: 12
    Last Post: - 20th October 2006, 14:17
  4. Replies: 5
    Last Post: - 2nd March 2006, 10:21
  5. Do I need that Resistor with my LCD?
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 0
    Last Post: - 15th July 2004, 11:50

Members who have read this thread : 1

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

Tags for this Thread

Posting Permissions

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