test

Committer:
itbusch
Date:
Mon Jan 31 06:59:34 2022 +0000
Revision:
1:d4eec4fcc366
020_LED_blink_wait_oszi

Who changed what in which revision?

UserRevisionLine numberNew contents of line
itbusch 1:d4eec4fcc366 1
itbusch 1:d4eec4fcc366 2 int a; //WICHTIG: Deklarieren HIER!
itbusch 1:d4eec4fcc366 3
itbusch 1:d4eec4fcc366 4 void Warten (void) //UP: Warten...
itbusch 1:d4eec4fcc366 5 {
itbusch 1:d4eec4fcc366 6 for (int i = 0; i < 1000000; i++) //ANNAHME: 1Takt = MZ: 32MhZ/32 MZ? => 1 ns * 10000000 => 1ms
itbusch 1:d4eec4fcc366 7 { // => tatsächluche Messung ~240 ms => 240*länger => Zyklen??...
itbusch 1:d4eec4fcc366 8 a = !a; // bei declaration Datentyp HIER => Compiler optmiert RAUS!
itbusch 1:d4eec4fcc366 9 }
itbusch 1:d4eec4fcc366 10 }
itbusch 1:d4eec4fcc366 11