Up/Down Counter



Simulation













Using Two General Purpose I/O Pins as Control Inputs     Using One Interrupt Pin as a Control Pin