|
![]() ADC/DAC/VREF/Comparators
![]() Question Regarding VREF On C8051F020
|
| next newest topic | next oldest topic |
| Author | Topic: Question Regarding VREF On C8051F020 |
|
tct9999 New Member |
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 |
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 |
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 |
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 |
"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 |
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 |
![]() |
|
Have you seen our MCU Knowledge Base?