At 07:28 AM 9/24/99 +1000, Paul wrote: >David Williams wrote: > >> So this leads me to my second, and finally final question: Why does >> hyperterminal put a 0D alongside every 0A and why does it forget 00s? > > 00 is ASCII NUL, used in text communications as an idle character and >thus ignored by terminal programs. 0D is Carriage Return and 0A Line >Feed. If it sees Line Feed without Carriage Return, it assumes UNIX >mode and adds the necessary CR automatically. > > For a text mode terminal, you need a routine in your PIC to break >bytes into halves (Nibbles) and display them as printables (add $30 to >values below $0A, and $40-9 = $37 to values $0A to $0F). > > Or use a terminal with a binary mode. You can configure this under "settings" for hyperterminal. ================================================================ Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral@lcfltd.com Least Cost Formulations, Ltd. URL: http://lcfltd.com/ 824 Timberlake Drive Tel: 757-467-0954 Virginia Beach, VA 23464-3239 Fax: 757-467-2947 "Vere scire est per causae scire" ================================================================