Connecting avref and avcc in atmega8

  • Thread starter manshuk89
  • Start date
In summary: SKU=109In summary, the Atmega8 does not have AVcc shorted internally, so you would need to connect AVcc to a power supply (Vcc or otherwise) if you're not using the ADC.
  • #1
manshuk89
7
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
  • #2
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
 
  • #3
in ATmea8 avcc and vcc are shorted internaly, mega88 works better
7805 as reference?
 
Last edited:
  • #4
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.
 
  • #6
Last edited by a moderator:

FAQ: Connecting avref and avcc in atmega8

What is the purpose of connecting avref and avcc in atmega8?

The avref and avcc pins in the atmega8 microcontroller are used to provide the reference voltage for the analog-to-digital converter (ADC). These pins are connected to the internal voltage reference circuitry and are essential for accurate conversion of analog signals to digital values.

How should I connect avref and avcc in atmega8?

The avref and avcc pins should be connected to a stable voltage source, typically VCC or an external voltage reference, depending on the application. It is important to ensure that the voltage source used is clean and free from noise, as this can affect the accuracy of the ADC conversion.

Can I leave the avref and avcc pins unconnected?

No, it is not recommended to leave the avref and avcc pins unconnected. The ADC requires a stable reference voltage to accurately convert analog signals, and leaving these pins unconnected can result in inaccurate readings.

Is it possible to use a different voltage reference for the ADC in atmega8?

Yes, it is possible to use an external voltage reference for the ADC in atmega8. This can be done by connecting the avref pin to the external reference voltage, instead of the internal reference. However, it is important to ensure that the external reference voltage meets the requirements of the ADC.

What happens if I accidentally connect avref or avcc to a different voltage source?

Connecting avref or avcc to a different voltage source can damage the atmega8 microcontroller and affect the accuracy of the ADC. It is important to double check the connections and ensure that the correct voltage source is used to prevent any damage.

Back
Top