Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Hi! ADC reading problem

Status
Not open for further replies.

Amali_SL

Newbie level 2
Joined
Nov 22, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
I want to make a voltage monitor circuit. 0V to 2.5V LED on and 2.5V to 5V LED off .When I test with Proteus this circuit works well. But practical circuit, analog input pin cannot get to zero volts. It’s always show about 2V. From 2v to 5v range works. I disconnect analog input pin and measure voltage but it’s not zero (Show about 2.5v).
What’s the problem? Please help me.

test.gif

void main() {
unsigned int read;
ANSEL=0x28;
CMCON=7;
ADCON0=0x0F;
TRISIO=0x10;
GPIO=0x00;
while(1){

read=ADC_Read(3);
if(read>510){
GPIO.B0=0;
}
if(read<510){
GPIO.B0=1;
}

}
}
 

Which controller you are using? Please Specify that.. The TRIS resister should be configured as input. and configure analog mode and it never give an out put voltage of 2V!!!!.. Check your circuit.. And also check grounds of the connection.
 

Which controller you are using? Please Specify that.. The TRIS resister should be configured as input. and configure analog mode and it never give an out put voltage of 2V!!!!.. Check your circuit.. And also check grounds of the connection.

Thanks for reply.
I’m using 12F675.

When I disconnect ADC pin, but still has about 2.5V that pin. Why?
 
Last edited:

did you share true schematic that you made? i think your trouble about ground of connection.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top