Title: The design of a microprocessor-based polarity correlator for flow measurement