Design of electronic clock based on single chip microcomputer