// Count_v3.c // Count once per second // Use a wait routine // Beep each time you press and release RB7 // Subroutine Declarations #include // Subroutines void Wait(unsigned int X) { unsigned int i, j; for (i=0; i= 10) { RA0 = 1; Wait(1000); RA0 = 0; COUNT = 0; PORTC = COUNT; } } }