200 Inch Water Level Measurement. Note that this is in hexadecimal. FFFF indicates no ECHO was received. Thus, in all cases, the sequence is intitiated by sending a character and the result is a string. The following C routine may be used as a template.
Prints result to terminal.
It then receives each character in turn from the PIC measurement unit up to the receipt of the new line character and places these in locations beginning at the specified address . My software license does not permit me to distribute these materials which are protected by copyright. The template program has been successfully run on one of the earliest PCs from 1993 running DOS 3.3 and on a Pentium, both from DOS 6.0 and from DOS running under Windows95. Once the result string is obtained, conversion to numbers is relatively simple and I will leave it for you to take it from there.