Connecting avref and avcc in atmega8

  • Thread starter Thread starter manshuk89
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the connections of AVcc and AVref in the ATmega8 microcontroller, particularly in relation to powering an LCD and using the Analog to Digital Converter (ADC). Participants explore whether AVcc should be connected to Vcc and the implications of such connections for functionality and noise immunity.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant mentions using an IC7805 voltage regulator to provide Vcc for the ATmega8 and questions whether AVcc should also be shorted to Vcc or require a different external reference.
  • Another participant explains that AVcc is the power supply for the ADC and that AVref can be decoupled for noise immunity, suggesting that it does not necessarily need to be connected to anything unless a capacitor is used.
  • Some participants assert that AVcc and Vcc are shorted internally, while others challenge this claim, stating that AVcc should be connected to a supply even if the ADC is not in use.
  • There is a mention of the 7805 voltage regulator being used to supply Vcc, with questions about its suitability as a reference.
  • Links to external resources are provided for further reference, but their relevance to the discussion remains unclear.

Areas of Agreement / Disagreement

Participants express differing views on whether AVcc and Vcc are internally shorted and whether AVcc needs to be connected to a supply. The discussion remains unresolved with multiple competing perspectives.

Contextual Notes

Some participants reference the ATmega8 datasheet, but there are conflicting interpretations regarding the internal connections and requirements for AVcc and AVref. The discussion highlights potential oversights in understanding the microcontroller's specifications.

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:

Similar threads

  • · Replies 7 ·
Replies
7
Views
15K
Replies
3
Views
1K
Replies
80
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
39
Views
6K
Replies
68
Views
7K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K