abilashjoseph
Member level 1
hi,
i am try to run the timer0 in the atmega16, but there is no increment on the TCNT0 register, i am using oshonsoft avr simulator. if any other needs in the code?
my code is given below
int main(void)
{
sei();
TCCR0= 0x01;
TIFR = 0x01;
TIMSK = 1<<TOIE0;
while(1)
{
}
}
thanks in advance..
i am try to run the timer0 in the atmega16, but there is no increment on the TCNT0 register, i am using oshonsoft avr simulator. if any other needs in the code?
my code is given below
int main(void)
{
sei();
TCCR0= 0x01;
TIFR = 0x01;
TIMSK = 1<<TOIE0;
while(1)
{
}
}
thanks in advance..