Set correct prescaler
This commit is contained in:
parent
b3ce179b66
commit
363e2bfade
@ -38,7 +38,7 @@ int main(void)
|
|||||||
|
|
||||||
// Set up TIMER1
|
// Set up TIMER1
|
||||||
TCNT1 = 0;
|
TCNT1 = 0;
|
||||||
SET(TCCR1B, CS12); // Prescaler = 1024
|
SET(TCCR1B, CS12); // Prescaler = 256
|
||||||
SET(TIMSK1, TOIE1); // Enable overflow interrupts
|
SET(TIMSK1, TOIE1); // Enable overflow interrupts
|
||||||
ICR1 = 15625; // Interrupt after 0.25s
|
ICR1 = 15625; // Interrupt after 0.25s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user