adc reference bug fixed

This commit is contained in:
Tristan Krause 2019-05-16 10:44:38 +02:00
parent 2c36fe05f8
commit 708b35c295
7 changed files with 9 additions and 18 deletions

View file

@ -3,7 +3,7 @@
void ADU::init() volatile
{
// externe Referenz an AREF
ADMUX = 0;
ADMUX = _BV(REFS0);
// ADC aktiviert, Interruptbetrieb, prescaler = 128
ADCSRA = _BV(ADEN) | _BV(ADIE) | _BV(ADPS2) | _BV(ADPS1) | _BV(ADPS0);