The microcontroller-based digital clock is constructed with PIC16F877A and its software program is written with CCS C program language. Various types of digital clocks and modules are available in the market nowadays but this clock is different at least in the accurate time. To be controlling in microcontroller is only the feature of the clock. The input frequency is taken from the 50 Hz clock frequency circuit. To show the time, seven-segment Light Emitting Diodes (LEDs) and four LEDs are used.