Überlaufproblem: Sofern 'TimerCount' und 'old' unsigend sind, geht folgendes:
Code:
old = TimerCount;
while (Timercount-old < 20) ; // warte 20µs