Design a frequency meter with a single chip microcomputer