sefat
Newbie level 4
i want interrupt every 20ms.this code is not invoking the isr. where is the problem ? plz help.
{
TCNT1=-625;
TCCR1A=0x00;
TCCR1B=0x04;
TIMSK|=(1<<TOIE1);
sei();
}
ISR (TIMER1_OVF_vect)
{
//code}
{
TCNT1=-625;
TCCR1A=0x00;
TCCR1B=0x04;
TIMSK|=(1<<TOIE1);
sei();
}
ISR (TIMER1_OVF_vect)
{
//code}