0 - 10V input on PIC 16F876


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Thumbs up

    Quote Originally Posted by Kamikaze47 View Post
    Charles hit the nail on the head.

    Code:
    0-10v input  ----------+
                           |
                          _|_
                          | |
                          |R|
                          |_|
                           |
                           |
                           +--------- PIC ADC Input (0-5v)
                           |          |
                          _|_         |
                          | |        __
                          |R|         /  5V
                          |_|        /\
                           |         --
                           |          |
                           | ________ |
                         Ground
    You should make sure that more than five volts not to be loaded to microcontrollers pin otherwise it could become foul. For example if for any case you have more than 10V as an input you will get more than 5V on the resistor and on PIC as well, so it is not bed to think about some zener diode on PIC ADC input. Or maybe is better to use a scheme with comparator LM239 which will sharply cut any voltage bigger than Vcc ref+ loaded on pin 6 of LM239.

    Regards
    Last edited by Robinzon Kruso; - 11th February 2008 at 11:44.

  2. #2
    Join Date
    Feb 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    ah, yes, I see.... if the voltage over the pin exceeds 5 V, the zener will pull the pin to 0...
    it is yet a prototype, but when I make a final design, I should probably add it for safety...
    thanks...
    I think my prototype is ready for testing, Thanks all

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    slayerizer, The zener does not pull the pin to 0 volts but, starts to conduct at the breakover voltage it is designed for. It will then maintain that voltage as long as the power of the component is not exceeded. In other word it is acting as a limiter....

    Dave Purola,
    N8NTA

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dave View Post
    ...

    In other word it is acting as a limiter....
    Yes but not like a switch! It is like a normal diode in characteristics slightly steeper. But has a knee. That means if voltage is increasing above about 4,3Volts the zener might start to conduct and spoil the readings of the ADC.

    I may have not stated correctly in engineering terms. If anyone with native english understood, please help here.

    Ioannis

Similar Threads

  1. Replies: 67
    Last Post: - 8th December 2009, 03:27
  2. input logic threshold level for pic 16F628
    By aratti in forum General
    Replies: 4
    Last Post: - 29th December 2008, 12:35
  3. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 01:26
  4. Can a PIC PIC a PIC?
    By afbecker in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2008, 20:55
  5. Little pic trainer for 16F876
    By chkdsk in forum Schematics
    Replies: 1
    Last Post: - 8th August 2004, 18:21

Members who have read this thread : 0

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