From e6ff57b8045d1a384e0de38bd80f980a377e5df2 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Mon, 11 Mar 2019 14:52:45 +0100 Subject: [PATCH] Flipped PinD2 and PinD3 (including ISR) --- Geigerzaehler/main.c | 48 +++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index c291437..9ed238a 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -49,11 +49,11 @@ int main() DDRB |= (1 << PORTB5); // Onboard-Led // Interrupts - // for INT0 Pin-D2 High-voltage check - EICRA |= (0 << ISC01)|(1 << ISC00); // On at any edge [Code: 01] + // for INT0 Pin-D2 - Counter-click + EICRA |= (0 << ISC01)|(1 << ISC01); // On rising edge [Code: 01] EIMSK |= (1 << INT0); // Activate Interrupt INT0 - // for INT1 Pin-D3 Counter-click - EICRA |= (1 << ISC11)|(1 << ISC10); // On rising edge [Code: 11] + // for INT1 Pin-D3 - High-voltage check + EICRA |= (1 << ISC10)|(1 << ISC11); // On any edge [Code: 11] EIMSK |= (1 <