adc help


Closed Thread
Results 1 to 4 of 4

Thread: adc help

  1. #1
    Join Date
    Sep 2006
    Location
    Venezuela - Caracas
    Posts
    48

    Default adc help

    in my circuit i have - 16f872

    pin 1 = 0,5 to 4 v
    pin 2 = 0,5 to 4 v
    pin 3 = 0,5 to 4 v

    pin 4 = 0,5 to 4 v
    pin 5 = 0,5 to 4 v
    pin 6 = 0,5 to 4 v
    pin 7 = 0,5 to 4 v

    then i press 1 and 4,
    pin 1 = 0v
    pin 4 = 0v

    obs: 0,5 to 4 is variant not estable
    0 v = estable


    i use this circuit for read one keypad, but i can't
    because 0,5 = 0 then keypress all time

    can i help me?

  2. #2
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Default

    It is not possible to read this voltages by a digital input.
    You have to use a lot of analog-inputs or design another keyboard !
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

  3. #3
    Join Date
    Sep 2006
    Location
    Venezuela - Caracas
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    i use 16f872 and adc input A0, ...
    I use 4 pin for test 2 row and 2 col,
    if i read with 4 pins....i'll be change the pic 16f877 or other 40píns

  4. #4
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    I'm not sure what your input is, are you saying with no key pressed you have between 0,5 and 4 volts, but with key pressed you get a solid 0V?

    If so, then you need to use the analog to digital input feature. Unfortunately, the 16f872 only has 5 such inputs, and you need 7 inputs.

Similar Threads

  1. Stable Adc Reading Routine
    By gebillpap in forum General
    Replies: 27
    Last Post: - 13th May 2015, 02:18
  2. 10 bit ADC display on LCD using 16f873
    By pr2don in forum mel PIC BASIC
    Replies: 3
    Last Post: - 6th March 2010, 18:29
  3. Can't get ADC to loop
    By TravisM in forum mel PIC BASIC
    Replies: 2
    Last Post: - 11th October 2009, 15:33
  4. ADC value with 2 decimals on an LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd December 2005, 15:54
  5. 12F675 ADC 'Issues'
    By harrisondp in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 31st March 2005, 01:55

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