Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

Commit

Permalink
Update Timer.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BackInBash committed Jan 23, 2022
1 parent dd73afe commit 1067bdb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Jahr 2/MC/Timer.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ Zyklen bis zum Overvlow / 2 = Zeitspanne in MHz
```

## Timer Konfiguration
Zu aller erst müssen die Globalen Interrupts und Timer Interrupts aktiviert werden

```c
sei();
TIMSK = (1<<TOIE0);
```

Um den Timer zu Konfigurieren steht das 8-Bit Timer0 Register `TCCR0` zur Verfügung.
Dieses wird mit den Prescalern `CS02 CS01 CS00` bestückt.

Expand Down

0 comments on commit 1067bdb

Please sign in to comment.