adc reference bug fixed
This commit is contained in:
parent
2c36fe05f8
commit
708b35c295
7 changed files with 9 additions and 18 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue