From f951c39bbeacd0eef6314c6beeda42d1722b14a1 Mon Sep 17 00:00:00 2001 From: John D Date: Mon, 11 Mar 2019 18:36:58 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9EGeigerzaehler/main.c=E2=80=9C=20=C3=A4?= =?UTF-8?q?ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correcting EICRA for both interrupts --- Geigerzaehler/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index a27ad14..0d4a759 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -50,10 +50,10 @@ int main() // Interrupts // for INT0 Pin-D2 - Counter-click - EICRA |= (0 << ISC01)|(1 << ISC01); // On rising edge [Code: 01] + EICRA |= (1 << ISC01)|(1 << ISC00); // On rising edge [Code: 01] EIMSK |= (1 << INT0); // Activate Interrupt INT0 // for INT1 Pin-D3 - High-voltage check - EICRA |= (1 << ISC10)|(1 << ISC11); // On any edge [Code: 11] + EICRA |= (1 << ISC10); // On any edge [Code: 11] EIMSK |= (1 <