I would like to thank anyone who takes the time to read this and can help me in any way possible.
What I have in hardware is a de-bounced push-button that, when pushed, needs to cycle through 6 different case statements.
I have a square wave coming into my atmega16 and pretty solid frequency counter code. The frequency needs to be monitored the whole time, and depending on which case I am in an LED will be lit, a 7-seg display will be lit, as well as a signal will be sent to my motor driver if the frequency is not correct for the selected case.