In this example the ATMEGA328 board is used. It is connected to a LCD 20x4 display which is connected to PORTD. The display shows the real time clock. As the clock source for the µ-controller an external X-tal is used that is connected to XTAL1 and XTAL2. This gives very accurate clock ticks. See the schemetic below.