From 5b86a7d644f456726a4d3aa954012cedfb4a2301 Mon Sep 17 00:00:00 2001 From: Alexander B Date: Tue, 19 Mar 2019 07:40:33 +0100 Subject: [PATCH] Reduced signalOutput-time to 150ms Edited some comments --- Geigerzaehler/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index 0d0e1ad..0c83495 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -20,18 +20,18 @@ */ // Set frequencys and general stuff uint16_t boost_frequency = 10000; // 10kHz frequency -uint16_t signalOutput_piezo_time = 200; // 200ms -uint16_t signalOutput_led_time = 200; // 200ms +uint16_t signalOutput_piezo_time = 150; // 150ms +uint16_t signalOutput_led_time = 150; // 150ms -// Used for execution-timing (with timer) [0 = disabled, >0 = nextTimerTick] (1 is next avaible execution) -uint16_t boost_highVoltage_nextTick = 1; // Execute at start +// Used for execution-timing (with timer) [0: disabled, >0: nextTimerTick] +uint16_t boost_highVoltage_nextTick = 1; // Begin to boost from start uint16_t signalOutput_piezo_nextTick = 0; uint16_t signalOutput_led_nextTick = 0; // Prescaling of timer [timer-speed: cpu-clock / prescaler] // Modes: [1, 8, 64, 256, 1024] uint16_t timer1_prescaler = 256; -uint16_t timer1_overflow_value = 65535; // For calculations +uint16_t timer1_overflow_value = 65535; // For calculations: 2^16 -1 (16-bit timer) int main() {