Connecting avref and avcc in atmega8

  • Thread starter Thread starter manshuk89
  • Start date Start date
AI Thread Summary
The discussion centers on connecting AVcc and AVref in the ATmega8 microcontroller while controlling an LCD. AVcc serves as the power supply for the Analog to Digital Converter (ADC), and it should be connected to a supply even if the ADC is not in use. AVref can be decoupled with a capacitor for improved noise immunity but does not require a connection unless needed. There is confusion regarding whether AVcc and Vcc are internally shorted, with clarification that they are not, and both should be supplied appropriately. The use of a 7805 voltage regulator is confirmed for providing Vcc, stepping down from a higher voltage.
manshuk89
Messages
7
Reaction score
0
i am currently using an atmega8 to control my lcd.
i am using ic7805 voltage regulator to provide for its vcc.

i have shorted avcc to vcc. should i do the same for avcc as well... or does it need some other external reference?
 
Engineering news on Phys.org
manshuk89 said:
i am currently using an atmega8 to control my lcd.
i am using ic7805 voltage regulator to provide for its vcc.

i have shorted avcc to vcc. should i do the same for avcc as well... or does it need some other external reference?

AVcc is the power supply for the Analog to Digital Converter (ADC), and AVref can be used for decoupling of the internal reference (i.e. it doesn't need to be connected to anything, unless you want to use a capacitor here to increase noise immunity while using the ADC). From the Atmega8 datasheet:

Atmega8 Datasheet said:
The ADC converts an analog input voltage to a 10-bit digital value through successive approximation. The minimum value represents GND and the maximum value represents the voltage on the AREF pin minus 1 LSB. Optionally, AVCC or an internal 2.56V reference voltage may be connected to the AREF pin by writing to the REFSn bits in the ADMUX Register. The internal voltage reference may thus be decoupled by an external capacitor at the AREF pin to improve noise immunity.
http://www.atmel.com/dyn/resources/prod_documents/doc2486.pdf
 
in ATmea8 avcc and vcc are shorted internaly, mega88 works better
7805 as reference?
 
Last edited:
Xitami said:
in ATmea8 avcc and vcc are shorted internaly, mega88 works better
7805 as reference?

AVcc and Vcc are *not* shorted internally, according to the (short) pin description, and AVcc should be connected to a supply (Vcc or otherwise) even if the ADC is not being used (page 6):
http://www.atmel.com/dyn/resources/prod_documents/2486S.pdf

The 7805 is being used to supply Vcc, stepping it down from whatever >5V supply is being supplied.
 
Last edited by a moderator:
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top