ADC/DAC/VREF/Comparators
  Question Regarding VREF On C8051F020

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Question Regarding VREF On C8051F020
tct9999
New Member
posted March 25, 2004 06:16 PM     Click Here to See the Profile for tct9999   Click Here to Email tct9999     Edit/Delete Message
I am using ADC0 on the C8051F020 device which use VREF0 pin as the reference.

My question is, what is the maximum reference voltage that I can input to this pin, is it AV+ or (AV+)-0.3v?

IP: Logged

Brent W
Administrator
posted March 25, 2004 07:01 PM     Click Here to See the Profile for Brent W   Click Here to Email Brent W     Edit/Delete Message
tct9999,

The maximum voltage is (AV+ - 300mV). Voltages higher than this will result in a gain error.

Regards,

Brent

IP: Logged

Brent Brown
New Member
posted August 01, 2010 09:48 PM     Click Here to See the Profile for Brent Brown     Edit/Delete Message
Brent W said "The maximum voltage is (AV+ - 300mV). Voltages higher than this will result in a gain error."

Hmmmm. That would explain the symptoms I'm seeing here. But why can't I find this spec in the data sheet?

I have a design that uses either an F020/F120, in which AV+, VREF, VREF0, VREF2, VREFD are all linked together in hardware to +3.3V (too late to change now, units in the field).

Yes, I am seeing a gain error of about +6%. So now how to fix this? Prefferably in software only as I can do updates with bootloader. I could look at using the DAC for ADC reference voltage, or maybe I should just scale my ADC result by -6% and be done with it?

Would appreciate any tips, thanks.

IP: Logged

vanmierlo
Member
posted August 02, 2010 05:36 AM     Click Here to See the Profile for vanmierlo   Click Here to Email vanmierlo     Edit/Delete Message
But why can't I find this spec in the data sheet?

Because you're not looking right? It's mentioned in table 9.1 in both datasheets for F020/F120.

If you're lucky it's only a gain error, but I expect you'll also see non-linear behaviour.

Maarten

IP: Logged

Tsuneo
Member
posted August 02, 2010 06:26 AM     Click Here to See the Profile for Tsuneo   Click Here to Email Tsuneo     Edit/Delete Message
"non-linear behavior" including latch up / break down of the chip.

On "Devices keep dying" topic, Joe experienced that devices were damaged by applying AV+ to VREF on 'F022, whose maximum input voltage of VREF is (AV+)-0.3 V.

Tsuneo

IP: Logged

Brent Brown
New Member
posted August 02, 2010 10:07 PM     Click Here to See the Profile for Brent Brown     Edit/Delete Message
Thanks for the replies. Yes, my mistake, I must have been looking wrong - the spec is in the datasheet at the bottom of table 9.1.

I read the thread suggesting devices are damaged when connecting AV+ to VREF. In my case I appear to have been lucky, perhaps because I have RFBE = 0 (ref buffer off). Running for a considerable time now on both F020 and F120 devices with no failures. ADC result is approx +6% high (varies a little between devices), linearity appears ok but I haven't checked it thoroughly. (I did check the basic error against temperature variations and it's actually surprisingly good, approx +/-0.04% from "can of freeze" to "hot air gun" on the chip).

But I will have to fix my mistake in hardware. In this design I have AV+ and my analog sources connected to +3.3V analog rail. Easiest solution will probably be to create a new VREF of say 1.65V using a resistor divider from AV+, and drop the PGA gain from 1 to 0.5.

Many thanks, Brent.

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | MCU User Forum

Have you seen our MCU Knowledge Base?


Ultimate Bulletin Board 5.47b