// --- CLOCK.C ------------------- // Global Variables // Subroutine Declarations #include void Wait(unsigned int DATA) { unsigned int i, j; for (i=0; i 59) { SEC = 0; MIN = MIN + 1; } if (MIN > 59) { MIN = 0; HR = HR + 1; } if (HR > 12) HR = 1; PORTD = SEC; PORTC = MIN; PORTB = HR; Wait(1000); } }