From aa2eef0b321b29b7dfb3968b6f5fbe3263ead92c Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Thu, 11 May 2017 09:53:42 +0200 Subject: [PATCH] Initialisation watchdogs --- principal.txt | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/principal.txt b/principal.txt index 77e68f5..b68a119 100644 --- a/principal.txt +++ b/principal.txt @@ -38,9 +38,6 @@ .org 0x000 ; Vecteur RESET jmp debut -.org 0x003A ; ADC - jmp adc - .org 0x0002 ; INT0 jmp valider @@ -53,6 +50,13 @@ .org 0x0008 ; INT3 jmp decrementer +.org 0x0018 ; Watchdog + jmp watchdog + +.org 0x003A ; ADC + jmp adc + + .org 0x0080 ; Tableaux de la mémoire du programme @@ -72,7 +76,8 @@ debut: SREG <- 0b10000000 ; Watchdog - WDTCSR <- + WDTCSR <- 0b00010000 + WDTCSR <- 0b01000111 ; Interruptions externes EIMSK <- 0b00001111 -- libgit2 0.21.2