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.

negative V into A/D on 16F877?

Status
Not open for further replies.

JimS

Newbie level 1
Joined
Jan 11, 2003
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
13
16f877a adc negative vref

Hi,
I'm trying to read in a pH sensor that outputs anywhere from +1.6v to -1.6v by using a PIC16F877's A/D converter. Unfortunately, I can't figure out how to deal with the negative voltage range. Can I just apply a -1.6v to RA2/AN2/VREF- and have the ADC give me my 10bits scaled from -1.6v to +1.6v?

thank you
 

16f877 quale vref max

No you can't

You must shift voltage before apply it to the pic.
Use an AOP to sum the PH voltage with a constant one.
You can also use two resistors so that the middle point
is always > 0V
 

It may burn adc of pic for higher voltages.
 

Isn't the PIC ADC a capacitive type?

If so it'll accept negative inputs to the ADC and you will have to tell (program) the ADC that you want bipolar input.
 

Here are max ratings voltage for 16f876 :
 
here is another method,
 

Why not use any single supply, 5V opamp configuration, with 2.5V ref. so -1.6 -> 0.9, 1.6 -> 4.1

regards
KamW
 

PIC ADC input voltage must be in 0 to Vcc range.
You can use voltage adder using single opamp, If you want to measure negative voltages.

If your input signal levels -1.6 to +1.6v you can add 1.6v
now your range 0..3.2v and you can apply the pic.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top