|
Counter Compare Match Interrupt zur Takterzeugung
Ver.1.0.
kner 2016
|
Hauptprogramm (Arduino Style) More...
#include <Arduino.h>#include "_debug.h"Go to the source code of this file.
Macros | |
| #define | F_CPU 1000000UL |
| #define | OUTPUT PORTC0 |
Functions | |
| void | setup () |
| void | loop () |
| ISR (TIMER2_COMPA_vect) | |
Hauptprogramm (Arduino Style)
Takt erzeugen mit Output Compare; Periodendauer über PORTB einlesen; Compare Wert berechnen
Anmerkung: laut Aufgabenstellung soll der Takt von Aussen kommen, zu Simulationszwecken wurd auf internen Takt umgeschaltet – der Simulator muss auf 1MHz umgestellt werden.
Definition in file start.cpp.
1.8.11