08.01.2013 Aufrufe

Download - Projektlabor

Download - Projektlabor

Download - Projektlabor

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

49: /****************************************************<br />

50: * Intterupt: input capture *<br />

51: * Beschreibung: liest den Timerstand aus *<br />

52: * Parameter: void *<br />

53: * Rückgabe: void *<br />

54: ****************************************************/<br />

55: SIGNAL (SIG_TIMER1_CAPT) {<br />

56: // sicherer Timerstand und resete Timer<br />

57: uint16_t TimerStand = ICR1;<br />

58: TCNT1 = 0x00;<br />

59:<br />

60: // Berechne Periodendauer<br />

61: ov = overflows;<br />

62: dt = ((((uint32_t)ov)

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!