Commit aa2eef0b321b29b7dfb3968b6f5fbe3263ead92c
1 parent
930282df
Initialisation watchdogs
Par Taky
Showing
1 changed file
with
9 additions
and
4 deletions
Show diff stats
principal.txt
... | ... | @@ -38,9 +38,6 @@ |
38 | 38 | .org 0x000 ; Vecteur RESET |
39 | 39 | jmp debut |
40 | 40 | |
41 | -.org 0x003A ; ADC | |
42 | - jmp adc | |
43 | - | |
44 | 41 | .org 0x0002 ; INT0 |
45 | 42 | jmp valider |
46 | 43 | |
... | ... | @@ -53,6 +50,13 @@ |
53 | 50 | .org 0x0008 ; INT3 |
54 | 51 | jmp decrementer |
55 | 52 | |
53 | +.org 0x0018 ; Watchdog | |
54 | + jmp watchdog | |
55 | + | |
56 | +.org 0x003A ; ADC | |
57 | + jmp adc | |
58 | + | |
59 | + | |
56 | 60 | .org 0x0080 |
57 | 61 | |
58 | 62 | ; Tableaux de la mémoire du programme |
... | ... | @@ -72,7 +76,8 @@ debut: |
72 | 76 | SREG <- 0b10000000 |
73 | 77 | |
74 | 78 | ; Watchdog |
75 | - WDTCSR <- | |
79 | + WDTCSR <- 0b00010000 | |
80 | + WDTCSR <- 0b01000111 | |
76 | 81 | |
77 | 82 | ; Interruptions externes |
78 | 83 | EIMSK <- 0b00001111 | ... | ... |