problem in reading adc through pic

Discussion in 'Embedded Systems and Microcontrollers' started by ranaz, Mar 29, 2007.

  1. ranaz

    Thread Starter New Member

    Mar 7, 2007
    5
    0
    hi!
    i m trying to read adc574 through pic.and whatever i get from adc i print it on hyperterminal. but the only thing that gets printed on my hyperterminal is "-1". i m unable to figure out the problem.
    any help is acknowledged.
     
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Have you been able to find whaich part of the system is not working? Does the PIC read the ADC?
     
  3. ranaz

    Thread Starter New Member

    Mar 7, 2007
    5
    0
    i think my pic is working fine. it is communicating with pc through hyperterminal. but i m not sure if pic is communicating right with adc. for twelve bit adc i get value "fff" printed on pc no matter what the input voltage is.
     
  4. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    It sounds like the ADC has not been initialized and/or enabled. Can you post a schematic and source code?

    hgmjr
     
Loading...