Set correct prescaler

This commit is contained in:
Rihards Skuja 2018-01-21 20:29:39 +02:00
parent b3ce179b66
commit 363e2bfade
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B

View File

@ -38,7 +38,7 @@ int main(void)
// Set up TIMER1
TCNT1 = 0;
SET(TCCR1B, CS12); // Prescaler = 1024
SET(TCCR1B, CS12); // Prescaler = 256
SET(TIMSK1, TOIE1); // Enable overflow interrupts
ICR1 = 15625; // Interrupt after 0.25s