Design of real-time clock based on single chip microcomputer