problem in reading adc through pic

Thread Starter

ranaz

Joined Mar 7, 2007
5
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.
 

Thread Starter

ranaz

Joined Mar 7, 2007
5
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.
 

hgmjr

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

hgmjr
 
Top