Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
vinke said:Hey guys,i was wondering what would happen if i put a negative voltage on an analog input pin of an adc module of a pic,given tat +Vref=5v and -Vref=0V.
vinke said:Would the pic burn if ever it happens?
vinke said:Ok but i want to know what would be the digital result of this negative voltage if +vref=Vdd and -Vref=Vss=0V
ericgibbs said:The device manufacturers produce datasheets for their products so we have guide lines on their use.
Even if you applied a -V to an ADC input, you would not be able to convert it to a usable value within your program,
so why waste time and money trying!.
If you can afford it, just do it and lets us know what happens
vinke said:In the datasheet it doesnt specify what happens in such circumstances,else i wouldnt ask the question.
Im not trying to put a -ve voltage deliberately ,but im using a deflection bridge
which at some sensor extreme range may produce a negative differential voltage(less than -0.2V).I can design the bridge for this not to occur.Infact i was thinking to use that -ve voltage as signal that my sensor is under extreme conditions,thats why i was wondering what would happen if a -ve voltage appeared on an analog input pin.I didnt try it till now because I cant afford to burn my PIC
ericgibbs said:I would expect the PIC to tolerate a -0.2Vdc signal without any problems.
I'll double check the PIC datasheet to make sure, will get back to you.
If the ADC input could go over say -1Vdc I would suggest a 220R in series with ADC input and a schottky diode from the ADC input to 0V, in order to clamp the pin at -0.4V
vinke said:Hi eric,
was thinking that it could be tolerated too.but my point is would the adc module read that -ve voltage as zero or something else.Ive been trying to simulate it using oshon soft simulator but the analog input cannot be decreased further below zero.
ok thanks dude.ericgibbs said:hi,
I would expect the PIC/ADC to see the -0.2V as 0.0V
I also use Oshonsoft, I believe the way Vladimir has written the software it wouldnt recognise it anyway.
Did you see the analog.zip for Oshonsoft I downloaded today to this forum?
The thread is named 'Oshonsoft Simulator'
https://www.electro-tech-online.com/threads/oshonsoft-pic-simulator.32483/
Well, he said "less than -0.2 V"... The minimum voltage is -0.3 V with respect to Vss (BTW which datasheet are you reading? which PIC?), but that's an 'absolute minimum'. I wouldn't think about applying a voltage below Vss (or Vref-) and above Vdd (or Vref+) though.ericgibbs said:I would expect the PIC to tolerate a -0.2Vdc signal without any problems.
How are you measuring a differential voltage with a PIC? can you give more details? a schematic?vinke said:im using a deflection bridge which at some sensor extreme range may produce a negative differential voltage(less than -0.2V).
eng1 said:Well, he said "less than -0.2 V"... The minimum voltage is -0.3 V with respect to Vss (BTW which datasheet are you reading? which PIC?), but that's an 'absolute minimum'. I wouldn't think about applying a voltage below Vss (or Vref-) and above Vdd (or Vref+) though.
How are you measuring a differential voltage with a PIC? can you give more details? a schematic?
A negative differential voltage does not imply that the PIC has a negative voltage with respect to Vss on its analog inputs.
eng1 said:Hi Eric, I was asking the OP.
My point is if the bridge is powered by a single supply source, the differential output can be negative but the two output voltages must be positive with respect to ground, do you agree?
eng1 said:Hi Eric, I was asking the OP.
My point is if the bridge is powered by a single supply source, the differential output can be negative but the two output voltages must be positive with respect to ground, do you agree?
Single supply.normally if the differential input becomes negatives so should be the output.ericgibbs said:hi vinke,
Is the instrumentation amp powered from a dual supply or single.?
Yep,a single supplyI assume you are powering the bridge from a single +V referenced to 0V?
the output with reference to the ground!The bridge output at balance should be +V/2.