This is very simple countdown timer implemented on 89C2051 microcontroller. One button is used to set time up to 99 seconds, another is for starting timer. Time is displayed on two 7 segment LED displays.
Buttons and display scanning share same pins so algorithm has to check buttons and display time on LED displays in a row sequence. Source code is included that allows yo modify program and compile.