Interface and program design of 12-bit AD converter ADS7804 and 51 single chip microcomputer