Hallo, habe dieses Programm eingehackt:
1 | #include "asuro.h" |
2 | int main(void) { |
3 | Init(); |
4 | StatusLED(RED); |
5 | while(1) |
6 | {
|
7 | unsigned long int i; |
8 | for(i=10000000;i>0;i--); |
9 | StatusLED(RED); |
10 | for(i=10000000;i>0;i--); |
11 | StatusLED(GREEN); |
12 | };
|
13 | return 0; |
14 | }
|
Der ATMEGA8 hat einen 8MHz Keramikschwinger. Die Statusled braucht für 10 Rot-Grün-wechsel ca. 8 Sekunden. Wie kann das sein?