A microprocessor-based tide measuring system