It's my first forum. I'll try to write very clear, because I don't speak english, I speak Spanish.
I am beginning with AVR microcontrollers, specially with Atmega8. I am using Eclipse Neon to do it. And I was making a program to blink a Led, the typicall program.
But I have a problem: In my program I made a delay of 1000 ms (1 s), so the led should blink every 1 second. But in fact it doesn't every 1 second. The Led blink more than 1 second.
I think, maybe is about the frecuency of work of the atmega8 and my computer? I don't Know exactly.
DDRD = 0b00000010; //PD0 as input, PD1 as output
//DDRD = 0x02;
PORTD = 0x00; //Led OFF
PORTD = 0x02; //Led ON
Thanks. Maybe It's a silly question, but I want to learn.