On Thursday 12 April 2007 22:47, andi wrote:

> I want to use ADC in AVR Atmega8 and using the  2.56V internal voltage for 
> the reference.
> It said in datasheet we have to decouple the AREF pin with capacitor, but it 
> didn't said the value.
> Does anyone know the value ?

 0.1uF works.

Make sure you look at the 'fine print' in the parameter tables.
I found that the "2.56V reference" varied from ~2.3V to ~2.7V
across devices in the CAN64 parts I have been using.
The values still fell within what the table said where acceptable.

If you need repeatability from device to device, then use
an external reference.

Our programmer decided to use an A/D input
to show the battery voltage for a level indicator.
That resulted in Quality Control constantly coming
to me saying "this unit shows the battery is 'full',
while the unit besides it is not 'full', but they have
the same battery voltage" for the first few dozen
units.  They never went to the programmer to
tell him to get rid of the gauge, that was
not part of the design specification.
Who also didn't consider that voltage
is not the best indication of charge state.

 Programmer and management thought the guage
 was a nice addition,  so we are now "dead bugging"
a external reference on each board, until the new board rev.
comes in, so the battery gauge works consistently, from
unit to unit.

Maybe we should start a "tip from the trenches"
section for these annoying "been there done
that" kind of problems?  AVR-Chat list
would be more appropriate.

-- 
 http://www.softwaresafety.net/ http://www.designer-iii.com/
                 http://www.unusualresearch.com/


_______________________________________________
AVR-GCC-list mailing list
[EMAIL PROTECTED]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to