Frequency measurement program based on 51 single chip microcomputer and LCD1602