You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 15_TimerUndInterrupts.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -313,7 +313,7 @@ ISR(INT0_vect) {
313
313
int main (void) {
314
314
DDRB |= (1 << PB5);
315
315
DDRD &= ~(1 << DDD2); // Pin als Eingang
316
-
PORTD |= (1 << PORTD2); // Pullup-Konfiguration
316
+
PORTD |= (1 << PD2); // Pullup-Konfiguration
317
317
EIMSK |= ( 1 << INT0);
318
318
EICRA |= ( 1 << ISC01);
319
319
sei();
@@ -429,7 +429,7 @@ ISR(INT0_vect) {
429
429
int main (void) {
430
430
DDRB |= (1 << PB5);
431
431
DDRD &= ~(1 << DDD2);
432
-
PORTD |= (1 << PORTD2);
432
+
PORTD |= (1 << PD2);
433
433
EIMSK |= ( 1 << INT0);
434
434
EICRA |= ( 1 << ISC01);
435
435
sei();
@@ -645,7 +645,7 @@ Timer-Modi bestimmen das Verhalten des Zählers und der angeschlossenen Ausgäng
645
645
Die Periode über eine `OCnA` Ausgang ergibt sich entsprechend zu
646
646
647
647
$$
648
-
f_{OCnA} = \frac{f_{clk_i/o}}{2 \cdot N \cdot (1 + OCRnA)}
648
+
f_{OCnA} = \frac{f_{clk_i/o}}{2 \cdot N \cdot (1 + OCRnA)}
649
649
$$
650
650
651
651
Der Counter läuft zwei mal durch die Werte bis zum Vergleichsregister `OCRnA`. Die Frequenz kann durch das Setzen eine Prescalers korrigiert werden.
@@ -657,15 +657,15 @@ Der Counter läuft zwei mal durch die Werte bis zum Vergleichsregister `OCRnA`.
657
657
Die Periode des Signals an `OCRnA` wechselt während eines Hochzählens des Counters. Damit kann eine größere Frequenz bei gleicher Auflösung des Timers verglichen mit CTC erreicht werden.
f_{OCnA} = \frac{f_{clk_i/o}}{2 \cdot N \cdot TOP)}
668
+
f_{OCnA} = \frac{f_{clk_i/o}}{2 \cdot N \cdot (TOP)}
669
669
$$
670
670
671
671
[^megaAVR]: Firma Microchip, megaAVR® Data Sheet, [Link](http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061A.pdf)
0 commit comments