Commit 236701f8d6a1b00739ebd369ba3180704f9f5188
1 parent
7d9ecd24
Modification algo avec ajout initialisation
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
Algorithme
@@ -23,6 +23,12 @@ debut: | @@ -23,6 +23,12 @@ debut: | ||
23 | EIMSK = 0x037 | 23 | EIMSK = 0x037 |
24 | EICRA = 0x06 | 24 | EICRA = 0x06 |
25 | EICRB = 0x00 | 25 | EICRB = 0x00 |
26 | + OCR0A <- 255 | ||
27 | + OCR0B <-0b00000000 | ||
28 | + TCCR0A <- 0b00000010 | ||
29 | + TCCR0B <- 0b 0000 0100 | ||
30 | + TIMSK0 -> 0b00000010 | ||
31 | + TIFR0 -> 0b00000010 | ||
26 | ADMUX <- 0b00010000 | 32 | ADMUX <- 0b00010000 |
27 | ADCSRB <- 0b00000000 | 33 | ADCSRB <- 0b00000000 |
28 | ADCSRA <- 0b11100101 | 34 | ADCSRA <- 0b11100101 |