Maker Pro
Maker Pro

Vref again

S

strider02

Jan 1, 1970
0
hi,
we need to use internal 2.56 Vref on ATmega16....an external super
stable vref as: zenner or other voltage regulators(if they can assure
very stable vref). If you can find any then it will be great.
thanx in advance..
 
S

strider02

Jan 1, 1970
0
strider02 said:
hi,
we need to use internal 2.56 Vref on ATmega16....an external super
stable vref as: zenner or other voltage regulators(if they can assure
very stable vref). If you can find any then it will be great.
thanx in advance..



i forget to add that we can't use vcc to avcc cause its not stable
enough
 
T

Tom Bruhns

Jan 1, 1970
0
strider02 said:
hi,
we need to use internal 2.56 Vref on ATmega16....an external super
stable vref as: zenner or other voltage regulators(if they can assure
very stable vref). If you can find any then it will be great.
thanx in advance..

'lo.

Why, yes, I can find some, so "it" must be great.

(What exactly do you mean by "super stable"? 0.01ppm/C? 0.01ppm/year?
Or something a bit more practical? Have you looked at the usual
suspects, like National Semiconductor, Linear Technology, Maxim, Analog
Devices, Thaler?)
 
G

Genome

Jan 1, 1970
0
strider02 said:
hi,
we need to use internal 2.56 Vref on ATmega16....an external super
stable vref as: zenner or other voltage regulators(if they can assure
very stable vref). If you can find any then it will be great.
thanx in advance..

Sounds like your problem is some other sort of problem. Unless you really
try to explain what you are doing then you will just sound like some
ignorant sort of person.

I'd like to know the reasoning behind producing a 2.56V reference....

DNA
 
A

Arlet

Jan 1, 1970
0
strider02 said:
we need to use internal 2.56 Vref on ATmega16....an external super
stable vref as: zenner or other voltage regulators(if they can assure
very stable vref). If you can find any then it will be great.
thanx in advance..

If you need to use the *internal* 2.56V reference, you don't need an
external reference. Just decouple the AVcc, put a cap on Vref pin, and
select 'internal reference' in the applicable ADC register.
 
E

Eeyore

Jan 1, 1970
0
strider02 said:
i forget to add that we can't use vcc to avcc cause its not stable
enough

*Stable* ? You mean noisy perhaps ? Why not filter it ?

Graham
 
R

Rich Grise

Jan 1, 1970
0
Sounds like your problem is some other sort of problem. Unless you really
try to explain what you are doing then you will just sound like some
ignorant sort of person.

I'd like to know the reasoning behind producing a 2.56V reference....

Probably because it's 2^8 / 100, and they want 10 mv steps in their
ADC.

Cheers!
Rich
 
E

Eeyore

Jan 1, 1970
0
Rich said:
Probably because it's 2^8 / 100, and they want 10 mv steps in their
ADC.

Except it doesn't give 10mV steps !

Graham
 
R

Robert Baer

Jan 1, 1970
0
Genome said:
Sounds like your problem is some other sort of problem. Unless you really
try to explain what you are doing then you will just sound like some
ignorant sort of person.

I'd like to know the reasoning behind producing a 2.56V reference....

DNA
Why he is using a 256 bit DAC!
 
A

Arlet

Jan 1, 1970
0
Eeyore said:
Except it doesn't give 10mV steps !

Correct, the ATmega16 has a 10 bit ADC, and according to the datasheet
produces an ADC value equal to:

ADC = ( Vin * 1024 ) / Vref

So, with a 2.56V Vref, it has 2.5mV steps.
 
E

Eeyore

Jan 1, 1970
0
Arlet said:
Correct, the ATmega16 has a 10 bit ADC, and according to the datasheet
produces an ADC value equal to:

ADC = ( Vin * 1024 ) / Vref

So, with a 2.56V Vref, it has 2.5mV steps.

2.50244 mV in fact ( 2.56/1023 )

Graham
 
A

Arlet

Jan 1, 1970
0
Eeyore said:
So not actually 2.56 V then !

Graham

Correct, the highest ADC output 0x3FF does not correspond to the 2.56V
reference voltage, but 2.5575V, for a step of 2.5575V/1023 = 2.5mV per
LSB.
 
S

Spehro Pefhany

Jan 1, 1970
0
Correct, the highest ADC output 0x3FF does not correspond to the 2.56V
reference voltage, but 2.5575V, for a step of 2.5575V/1023 = 2.5mV per
LSB.

Taking this a bit further, for Microchip's on-chip ADCs.

Code Ideal input voltage Ideal Middle input voltage
0x000 0.. 1 LSB 0.5 LSB
0x001 1.. 2 LSB 1.5 LSB
....
0x3FF 1023LSB..1024 LSB* 1023.5 LSB

Where LSB = Vref/1024

*Actually anything higher than 1023 LSB gives 0x3FF

So, the middle (most likely?) input voltage is
Vref * (code + 0.5)/1024, and a 2.56V reference would (ideally) give
0..2.55875V with steps of 2.500 mV.


Best regards,
Spehro Pefhany
 
Top