A digital clock in current world hardly needs any introduction, this project is basically going to deal with making a simple digital clock using ATmega 16 and a 16*2 LCD.

The pin connection diagram goes something like the shown image

Timer 1 of ATmega 16 has been used to deal with the main processing part of the clock and timing
It is a 16 bit Timer
16*2 LCD has been used to display the time
TIMSK register is also used i.e. masked interrupts ar also used in the processing
The CPU clock of ATmega 16 is kept at 8 MHz
the clock can be set by changing the h,s and m variable in the source code