cazz skrev:2)
Det andra är att jag inte skulle koppla + till AVCC utan skulle kolla den till en kondensator till grund?
Det hade med något man kunde sätta i mjukvaran, gäller det även här med?
Blandar du ihop lite?
AVCC skall alltid kopplas till + (eventuellt via en spole men strunta i den).
AREF skall kopplas till jord via kondensator. Det, och varför, står i databladet under "ADC Reference Voltage". Se utdrag nedan.
Tänker du inte använda ADC så kan du låta AREF vara (men inte AVCC).
Undantaget är om du har en extern referensspänning du vill använda som referens (troligen inte), i stället för AVCC eller den interna "bandgap reference", så kopplar du den till AREF. Men då kan du inte välja AVCC eller den interna referensen. Då blir det kortis.
In either case, the
external AREF pin is directly connected to the ADC, and the reference voltage can be made
more immune to noise by connecting a capacitor between the AREF pin and ground. VREF can
also be measured at the AREF pin with a high impedance voltmeter. Note that VREF is a high
impedance source, and only a capacitive load should be connected in a system.
If the user has a fixed voltage source connected to the AREF pin, the user may not use the other
reference voltage options in the application, as they will be shorted to the external voltage. If no
external voltage is applied to the AREF pin, the user may switch between AVCC and 1.1V as reference
selection.