ADC user definable + and - Vreffs - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: October 13, 2011, 11:55:59 am
content: So I have a project where I will need to sense the current in a high side line. Naturally I want the voltage drop to be quite low so I'll be sensing in the low mV range, I could of course set my +Vreff and -Vreff to suitable values so as to avoid other circuitry. but will that work ? how small a range can I give to a pic's ADC ?say i wanted it to be 10 mV, can I ?As always there is no information at all readily available from micro chip, their datasheet only talks registers and the so called separate pic manual is just the datasheet stripped of the part numbers it is seriously worrying that they even bothered as it takes the piss

author: Psi
author_rank: Super Contributor
timestamp: October 13, 2011, 12:10:31 pm
content: i think you will run into noise issues with a difference that low, but just how bad i'm not sure.Only way to find out is to try it first.I know some avrs have a programmable differential adc gain of up to 200x so it probably is possible with an equivlent pic.If you cant get it to work there are some quite nice current sense chips designed for monitoring the voltage across a low R resistor and generating an amplified analog output

author: Simon
author_rank: Unknown
timestamp: October 13, 2011, 12:13:19 pm
content: Yes so far my design has incorporated a current sensing chip, I thought that if I can make the pic do what i what i may be able to do away with it, I mean if you specify the two limits surely the chip know no better. Or does it reference to another voltage as well ?

author: ChrisKiwi
author_rank: Contributor
timestamp: October 13, 2011, 12:33:26 pm
content: Quote from: Psi on October 13, 2011, 12:10:31 pmSome of the PIC's do allow that, some also allow you to apply a DC offset to the differential amp as well. I have a feeling they might be 16 bit parts but I can't remember any part numbers of the top of my head, sorry. I have gone down to 512mV but not 10mV (on 18F13K50). I would have thought a differential amp with some gain would have been the best bet (apart form a dedicated IC)

author: Simon
author_rank: Unknown
timestamp: October 13, 2011, 12:35:14 pm
content: yes looks like I'd best use a dedicated chip

author: baljemmett
author_rank: Unknown
timestamp: October 13, 2011, 12:41:32 pm
content: Quote from: AcHmed99 on October 13, 2011, 12:25:14 pmYep -- to pick an example part (the 16F88, since Simon has been looking at it recently in another thread!), the relevant ADC specs under Electrical Characteristics are:Code:Param Sym Characteristic Min Typ Max UnitsA20 VREF Reference Voltage 2.0 — VDD + 0.3 V(VREF+ – VREF-)A21 VREF+ Reference Voltage High AVdd – 2.5 — AVdd + 0.3 VA22 VREF- Reference Voltage Low AVss – 0.3 — VREF+ – 2.0 VA25 VAIN Analog Input Voltage Vss – 0.3 — VREF + 0.3 V... so a VREF of 10mV is going to be a fair way out of spec.

author: Simon
author_rank: Unknown
timestamp: October 13, 2011, 01:15:11 pm
content: yes I was actually lookig into the 16F88 for this too. so yes it is impossible to do what i planned. you say these specs were under the electrical specs ? I think i looked there but maybe not hard enough

author: baljemmett
author_rank: Unknown
timestamp: October 13, 2011, 02:02:43 pm
content: Quote from: Simon on October 13, 2011, 01:15:11 pmYep, table 18-13 on page 190 of the datasheet (which is 192 in PDF page numbers) -- there's a whole lot of stuff in those tables at the back, so it can take some careful reading to spot what you're after!