From 5ce03e1d6462988f7ee30e1d0d585e235989e547 Mon Sep 17 00:00:00 2001 From: JohnD Date: Thu, 28 Feb 2019 16:24:37 +0100 Subject: [PATCH] Added comments --- Geigerzaehler/main.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index 3d6ffac..d8a6495 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -13,17 +13,17 @@ int main(void) { - DDRD &= ~(1<<2); // Eingang PD2 - DDRD &= ~(1<<3); // Eingang PD3 - - PORTD |= (1<<2); // Enable Pull Up Resistor Pin D2 - PORTD |= (1<<3); // Enable Pull Up Resistor Pin D3 + DDRD &= ~(1<<2); // Activate PD2 + DDRD &= ~(1<<3); // Activate PD3 + + PORTD |= (1<<2); // Enable Pull Up Resistor Pin D2 + PORTD |= (1<<3); // Enable Pull Up Resistor Pin D3 - EICRA |= (1 << ISC01)|(1 << ISC00); - EIMSK |= (1 << INT0); + EICRA |= (1 << ISC01)|(1 << ISC00); // Only at raising edge + EIMSK |= (1 << INT0); // Activate Interrupt INT0 - EICRA |= (1 << ISC11)|(1 << ISC10); - EIMSK |= (1 <